XML Tutorial 6: Working with XSLT
Transforming an XML Document
Additional Topics
Using Other XSLT Processors
XML Spy uses a version of MSXML to perform XSLT transformations on your XML documents and XSLT style sheets. To specify a different XSLT processor, install the processor and do the following:
- Start XML Spy
- Click Tools from the menu bar and then click Options.
- Click the XSL tab from the Options dialog box.
- Click the External XSL transformation program option button and then enter the command line for the program performing the external XSLT transformation (you must include the path information.)
- Click the OK button.
You can download additional XSLT processors from the XML Spy Web site at the address http://link.xmlspy.com/components_processors.html . Currently the Web site contains command-line processors for:
- Altrova XSLT engine
- Apache FOP processor 0.20.5rc
- RenderX XEP Plug-In
- Microsoft XML Core Services (MSXML) 4.0
You can also download XSLT processors from other sites on the Web.
Using Netscape with XSLT
The processor supplied with Netscape 6 and Netscape 7 does not always render the result document properly when the result document is attached to an external Cascading Style Sheet. For example, the solution for the tutorial case in Internet Explorer appears as:
The same file in Netscape 7 appears as:
To get around this problem, you can use XML Spy to generate the HTML code of the result document and then open the result document in the browser of your choice.