xsl:text
Causes its content to be output. The main reason for enclosing text within an
xsl:text
element is to allow whitespace to be output.
Whitespace nodes in the stylesheet are ignored unless they appear immediately
within an xsl:text
element.
Category: instruction
Content: #PCDATA
Permitted parent elements:
any XSLT element whose content model is
sequence-constructor; any literal result element
Attributes
|
| If set to
|
Saxon availability
Available in XSLT 1.0 and later versions. Available in all Saxon editions. Available for all platforms.
Details
In XSLT 3.0, note that generally text value templates (expressions within curly
braces) are NOT recognized within xsl:text
. However the standard
attribute expand-text
can be used to enable their use. Text value
templates can be used within an xsl:text
element if the nearest
ancestor which has an expand-text
attribute has the value
yes
for this attribute. (See xsl:stylesheet for details on the standard
attribute expand-text
.)