The xsl:stylesheet element is always the top-level element of an XSLT stylesheet. The name xsl:transform may be used as a synonym.

The following attributes may be specified:


Mandatory. A value other than "2.0" invokes forwards compatibility mode.


"yes" or "no" (default "no"). This attribute is introduced in XSLT 3.0 (and Saxon 9.5) to enable "text value templates" - the use of expressions enclosed in curly braces within text nodes, behaving the same way as attribute value templates in attribute nodes.


Value "yes" or "no": default no. If set to "yes", causes activation of templates to be traced on System.err for diagnostic purposes. The value may be overridden by specifying a saxon:trace attribute on the individual template.

For other attributes, see the XSLT specification.