Quickly transforming files using XSL stylesheets

You can apply an XSL file to any file that contains XML content (generally an XML file or an XML schema file) to generate a new output file.

The following instructions were written for the Resource perspective, but they will also work in many other perspectives.

To quickly run an XSL transformation on any file that contains XML content, follow these instructions:

  1. In the Navigator view, select your XSL file and the file you wish to transform.

  2. Right-click them and, from the pop-up menu, click Run > XSL Transformation.

The Console view lists the XSL and input file names, and the name of the output file, which will be named as follows:

The type of output file created is determined by the contents of the <xsl: output> element in your XSL file. Normally, in your <xsl: output> element, you would specify the output method to be XML, HTML, or text

Your output file will be saved to the same location your XML file is located.

 

Parent topic

Transforming and debugging XML and XSL files

 

Related tasks

Quickly transforming and debugging files using XSL stylesheets
Creating a Run configuration to transform your files
Creating a Debug configuration to transform and debug your files