Class S129PortrayalCatalogue
S-129 portrayal catalogue. Extends GmlPortrayalCatalogueBase with a custom XML resolver that handles S-129's sub-directory-based XSLT template references.
public sealed class S129PortrayalCatalogue : GmlPortrayalCatalogueBase, IVectorPortrayalCatalogue, IPortrayalCatalogue, IXsltRuleSource, ILuaRuleSource, IPortrayalAssetSource
- Inheritance
-
S129PortrayalCatalogue
- Implements
- Inherited Members
Constructors
S129PortrayalCatalogue(PortrayalCatalogueProvider)
Creates an S-129 portrayal catalogue backed by the given provider.
public S129PortrayalCatalogue(PortrayalCatalogueProvider provider)
Parameters
providerPortrayalCatalogueProviderThe portrayal catalogue provider that supplies rule files and assets.
Exceptions
- ArgumentNullException
providerisnull.
Properties
Spec
The product specification (name + edition) this catalogue targets.
public override SpecRef Spec { get; }
Property Value
Methods
CreateXmlResolver(IReadOnlyDictionary<string, byte[]>)
Creates an XmlResolver used to resolve
xsl:include/xsl:import URIs during XSLT compilation.
protected override XmlResolver CreateXmlResolver(IReadOnlyDictionary<string, byte[]> registeredBytes)
Parameters
registeredBytesIReadOnlyDictionary<string, byte[]>
Returns
Remarks
The default implementation resolves filenames against the pre-fetched rule-file bytes dictionary. Override to add fallback resolution strategies (e.g. FetchRuleAsync(string, CancellationToken) for specs whose sub-templates are not registered as rule files).