Class S201PortrayalCatalogue
S-201 portrayal catalogue. Delegates all XSLT-based portrayal infrastructure to GmlPortrayalCatalogueBase.
public sealed class S201PortrayalCatalogue : GmlPortrayalCatalogueBase, IVectorPortrayalCatalogue, IPortrayalCatalogue, IXsltRuleSource, ILuaRuleSource, IPortrayalAssetSource
- Inheritance
-
S201PortrayalCatalogue
- Implements
- Inherited Members
Remarks
The S-201 Edition 2.0.0 Portrayal Catalogue (Annex D) ships a single
top-level template main_PaperChart.xsl declared with
ruleType="TopLevelTemplate"; BuildRules()
auto-discovers it. Sub-templates (per-feature rules under
Rules/) are loaded on demand via
GmlPortrayalCatalogueBase.FetchRuleFallbackXmlResolver.
Constructors
S201PortrayalCatalogue(PortrayalCatalogueProvider)
Initializes a new S201PortrayalCatalogue.
public S201PortrayalCatalogue(PortrayalCatalogueProvider provider)
Parameters
providerPortrayalCatalogueProvider
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).