Selecting xsl:stylesheet or xsl:transform as your root element
You can have either xsl:stylesheet or xsl:transform as the root element of your XSL style sheet. The root element defines the namespace used by the XSL style sheet and the version of XSL being used in the document.
xsl: stylesheet and xsl:transform have the exact same meaning and syntax. You can use whichever one you prefer.
To select which option to use, perform the following steps:
- Select Window > Preferences > Web and XML > XSL
- Select the Use <xsl:stylesheet> radio button if you want to use xsl:stylesheet as your style sheet root element.
- Select the Use <xsl:transform> radio button if you want to use xsl:transform as your style sheet root element.
- Click Apply and 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.
Parent topic
Creating XSL files