Table of Contents

Class S421PortrayalCatalogue

Namespace
EncDotNet.S100.Datasets.S421
Assembly
EncDotNet.S100.Datasets.S421.dll

S-421 portrayal catalogue. Delegates all XSLT-based portrayal infrastructure to GmlPortrayalCatalogueBase and uses GmlPortrayalCatalogueBase.FetchRuleFallbackXmlResolver to resolve unregistered sub-templates.

public sealed class S421PortrayalCatalogue : GmlPortrayalCatalogueBase, IVectorPortrayalCatalogue, IPortrayalCatalogue, IXsltRuleSource, ILuaRuleSource, IPortrayalAssetSource
Inheritance
S421PortrayalCatalogue
Implements
Inherited Members

Constructors

S421PortrayalCatalogue(PortrayalCatalogueProvider)

Creates an S-421 portrayal catalogue backed by the given provider.

public S421PortrayalCatalogue(PortrayalCatalogueProvider provider)

Parameters

provider PortrayalCatalogueProvider

The portrayal catalogue provider that supplies rule files and assets.

Exceptions

ArgumentNullException

provider is null.

Properties

Spec

The product specification (name + edition) this catalogue targets.

public override SpecRef Spec { get; }

Property Value

SpecRef

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

registeredBytes IReadOnlyDictionary<string, byte[]>

Returns

XmlResolver

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).