Table of Contents

Class S129PortrayalCatalogue

Namespace
EncDotNet.S100.Datasets.S129
Assembly
EncDotNet.S100.Datasets.S129.dll

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

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