Interface XSLTProcessor

    An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate xsl:param parameter values, and to apply the transformation to documents.

    MDN Reference

    interface XSLTProcessor {
        clearParameters(): void;
        getParameter(namespaceURI: string, localName: string): any;
        importStylesheet(style: Node): void;
        removeParameter(namespaceURI: string, localName: string): void;
        reset(): void;
        setParameter(namespaceURI: string, localName: string, value: any): void;
        transformToDocument(source: Node): Document;
        transformToFragment(source: Node, output: Document): DocumentFragment;
    }

    Methods

    • Parameters

      • namespaceURI: string
      • localName: string

      Returns any

    • Parameters

      • namespaceURI: string
      • localName: string

      Returns void

    • Parameters

      • namespaceURI: string
      • localName: string
      • value: any

      Returns void