xsl:stylesheet
The xsl:stylesheet element is always the top-level element of an
XSLT stylesheet. The name xsl:transform may be used as a
synonym.
Content: ( declarations )
Attributes
|
| Used to reference stylesheet modules embedded in a document. |
|
|
Standard attribute that may appear on any XSLT element. Indicates the version of XSLT required by the stylesheet. A value greater than |
|
| Standard attribute that may appear on
any XSLT element. Defines the default value for the |
|
| Standard attribute that may
appear on any XSLT element. Defines the default value for the
|
|
| Used to request stripping of
type annotations. The default is |
|
| Standard attribute that may
appear on any XSLT element. Specifies the default collation used by all XPath
expressions appearing in attributes or text value templates within its scope
(unless overridden by another |
|
| Standard attribute that may appear on any XSLT element. Used to declare the use of extension instructions in a particular namespace. |
|
| Standard attribute that may appear on any XSLT element. Used to designate namespaces as excluded. |
|
| Standard attribute that may appear on
any XSLT element. New in XSLT 3.0, and Saxon 9.5. If set to |
|
| New in XSLT 4.0. Defines the fixed namespace bindings for a stylesheet module. |
|
| New in XSLT 4.0. Not implemented in Saxon 13. Purely documentary - used to identify the principal stylesheet module of a package. |
|
| New in XSLT 4.0. Standard attribute that may appear on any XSLT element. Used to allow different parts of a stylesheet to use different schemas. |
|
| Standard attribute that may appear on any XSLT element. Used to conditionally include or exclude elements. The value is an XPath expression that can be evaluated statically. If the effective boolean value is false, then the element and all its descendants are effectively excluded from the stylesheet module. |
|
| Standard attribute that may
appear on any XSLT element. Determines the namespace used for any unprefixed
element name or type name within an XPath expression. The value may be
overridden by another |
Saxon availability
Available in XSLT 1.0 and later versions. Available in all Saxon editions. Available for all platforms.
Notes on the Saxon implementation
The XSLT 4.0 attributes fixed-namespaces and
schema-role are implemented since Saxon 13; while the attribute
main-module is not yet implemented in Saxon.