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 )
Permitted parent elements: xsl:package

Attributes

id?

id

version?

decimal

A value other than 2.0 invokes forwards compatibility mode.

default-mode?

eqname | "#unnamed"

default-validation?

"preserve" | "strip"

input-type-annotations?

"preserve" | "strip" | "unspecified"

default-collation?

uris

extension-element-prefixes?

prefixes

exclude-result-prefixes?

prefixes

expand-text?

boolean

New in XSLT 3.0, and Saxon 9.5. If set to yes, enables the use of text value templates - expressions enclosed in curly braces within text nodes, behaving the same way as attribute value templates in attribute nodes. The default is no.

use-when?

expression

xpath-default-namespace?

uri

Links to W3C specifications

XSLT 2.0 Specification

XSLT 3.0 Specification

See also

xsl:transform