Performing an XSL Transformation

See Also 

You can use an existing XSL stylesheet to transform the data in any of your XML documents. You can initiate the XSL transformation from an XSL stylesheet or an XML document.

To perform an XSL transformation on a single file:

  1. In the Files window, right-click any XSL stylesheet (XSL stylesheet node icon) or XML document (XML object node icon) and choose XSL Transformation.
  2. In the XML Source combo box, select the XML document you want to transform. The XML Source combo box contains all the XML documents you have previously transformed with the selected XSL stylesheet. If you chose the XSL Transformation command on an XML document, this value is already filled in and is read-only. You can type the full path to the XML document or use the Browse button to select the document.
  3. In the XSLT Script combo box, specify the XSL stylesheet you want to use to transform the document. The XSLT Script combo box lists all of the XSL stylesheets you have previously used to transform the selected XML document. If you chose the XSL Transformation command on an XSL stylesheet, this value is already filled in and is read-only. You can type the full path to the XSL stylesheet or use the Browse button to select the script.
  4. Specify the output of the transformation in the Output combo box.

    By default, the IDE generates an HTML file with the same name as the XML document. If the XSL stylesheet creates a different type of output, it is automatically specified in the Output combo box.

  5. If you want to change the name and location of the output path, type the relative path and file name in the Output combo box.

  6. Specify how you want the IDE to handle the output file in the Process Output combo box. You have the following choices:
  7. Click OK.

    The IDE performs the transformation and directs any output and errors to the Output window. You can click any error message to go to the line in the source where the error occurred.

The IDE uses the Apache XALAN 2.3.1 XSL processor. For more information about XSL transformations, see:

See Also
Creating and Editing an XSL Stylesheet
Creating an XML Document
Editing an XML Document

Legal Notices