Interface XSLTProcessor
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;
}
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
clearParameters
getParameter
importStylesheet
removeParameter
reset
setParameter
transformToDocument
transformToFragment
- transformToFragment(source: Node, output: Document): DocumentFragment
Returns DocumentFragment
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