Selecting xsl:stylesheet or xsl:transform as your root element

You can select to have either xsl:stylesheet or xsl:transform as the root element of your XSL style sheet - they both have the exact same meaning and syntax. You can use whichever one you prefer.

The root element is used to define the namespace used by the XSL style sheet and the version of XSL being used in the document.

To select the option you want to use, perform the following steps:

  1. Click Window > Preferences > Web and XML > XSL.
  2. Click the Use <xsl:stylesheet> radio button if you want to use xsl:stylesheet as your style sheet root element.
  3. Click the Use <xsl:transform> radio button if you want to use xsl:transform as your style sheet root element.
  4. Click Apply, then OK to save your changes.
If you change the root element, this change will not affect any existing XSL files; it will only affect XSL files created after you click Apply and OK.
Related tasks
Creating XSL files

Feedback