ddn.data.xml.catalog
OASIS XML Catalog support.
This module provides in-library support for resolving external identifiers (system/public IDs) and URIs using OASIS XML Catalog files.
Supported entry types:
systempublicrewriteSystemrewriteURIdelegatePublicdelegateSystemdelegateURInextCatalog
Notes:
- The legacy
resolveSystem/resolvePublicAPIs perform exact-map only lookups for backward compatibility. - The
resolve*FullAPIs implement rewrite/delegation/nextCatalog processing.
struct XmlCatalog
Types 1
structXmlCatalog
An in-memory XML Catalog.
Fields
string basePathCatalog file path (used for resolving relative catalog references).string[string] systemMapping from system identifiers to URIs.string[string] public_Mapping from public identifiers to URIs.RewriteRule[] rewriteSystemRewriteRule[] rewriteUriDelegateRule[] delegatePublicDelegateRule[] delegateSystemDelegateRule[] delegateUristring[] nextCatalogMethods
string resolveSystemFull(string systemId, size_t maxDepth = 16) const @safeResolves a system identifier using rewrite/delegation/nextCatalog rules.string resolvePublicFull(string publicId, size_t maxDepth = 16) const @safeResolves a public identifier using delegation/nextCatalog rules.string resolveUriFull(string uri, size_t maxDepth = 16) const @safeResolves a URI using rewrite/delegation/nextCatalog rules.Nested Templates
RewriteRuleA rewrite rule (`rewriteSystem`/`rewriteURI`).DelegateRuleA delegation rule (`delegate*`).XmlCatalogCache