xslt-processor - v4.8.0
    Preparing search index...

    Class XPath

    XPath class that uses the new lexer/parser implementation while maintaining API compatibility with the old implementation.

    Index

    Constructors

    Methods

    • Parse an XPath expression and return an Expression object.

      Parameters

      • expression: string

        The XPath expression string.

      • Optionalaxis: string

        Optional axis override for relative paths.

      • version: XPathVersion = '1.0'

        Optional XPath version (defaults to 1.0).

      Returns Expression

    • Parse and evaluate an XPath expression.

      Parameters

      • select: string

        The XPath expression string.

      • context: ExprContext

        The expression context.

      Returns NodeValue

    • Sort nodes in context according to sort specifications.

      Parameters

      • context: ExprContext

        The expression context with nodes to sort.

      • sort: any[]

        Array of sort specifications.

      Returns void

    • Clear parse cache (useful for testing or memory management).

      Returns void