@designliquido/xpath
    Preparing search index...

    Interface XSLTExtensions

    XSLT Extensions bundle that can be passed to the XPath parser.

    This interface allows the xslt-processor package to provide XSLT-specific functions while keeping the xpath library pure XPath 1.0.

    interface XSLTExtensions {
        functions: XSLTFunctionMetadata[];
        version: "1.0" | "2.0" | "3.0";
        contextExtensions?: {
            keys?: Record<string, { match: string; use: string }>;
            documentLoader?: (uri: string, baseUri?: string) => XPathNode;
            decimalFormats?: Record<string, any>;
            systemProperties?: Record<string, string>;
        };
    }
    Index

    Properties

    List of XSLT extension functions to register.

    version: "1.0" | "2.0" | "3.0"

    XSLT version these extensions implement.

    contextExtensions?: {
        keys?: Record<string, { match: string; use: string }>;
        documentLoader?: (uri: string, baseUri?: string) => XPathNode;
        decimalFormats?: Record<string, any>;
        systemProperties?: Record<string, string>;
    }

    Optional: Additional context properties needed by XSLT functions. For example, key definitions for key() function, or document cache for document().

    Type Declaration

    • Optionalkeys?: Record<string, { match: string; use: string }>

      Key definitions from xsl:key elements. Format: { keyName: { match: string, use: string } }

    • OptionaldocumentLoader?: (uri: string, baseUri?: string) => XPathNode

      Document loader for document() function.

    • OptionaldecimalFormats?: Record<string, any>

      Decimal format definitions from xsl:decimal-format elements. Used by format-number() function.

    • OptionalsystemProperties?: Record<string, string>

      System properties for system-property() function.