25.335. XSLTProcessor: transform XML with XSLT stylesheetsFirefox 1.0, Safari 2.01, Opera 9: Object XSLTProcessor25.335.1. Constructornew XSLTProcessor( ) 25.335.2. Methods
25.335.3. DescriptionThe XSLTProcessor transforms XML document nodes using XSLT stylesheets. Create an XSLTProcessor object with the no-argument constructor, and initialize it with an XSLT stylesheet with the importStylesheet( ) method. If your stylesheet uses parameters, you can set those with setParameter( ). Finally, perform an actual XSL transformation with TRanformToDocument( ) or transformToFragment( ). Internet Explorer supports XSLT but does not implement the XSLTProcessor object. See the IE-specific transformNode( ) and transformNodeToObject( ) methods of Node, and see Chapter 21 for XSLT examples and cross-platform utility functions. 25.335.4. See AlsoNode.transformNode( ), Node.transformNodeToObject( ); Chapter 21 |