The xsl:text
element causes its content to be output.
The main reason for enclosing text within an xsl:text
element is
to allow white space to be output.
White space nodes in the stylesheet are ignored unless they appear immediately within
an xsl:text
element.
The optional disable-output-escaping
attribute may be set to "yes" or "no"; the default is
"no". If set to "yes", special characters such as "<" and "&" will be output as themselves,
not as entities. Be aware that in general this can produce non-well-formed XML or HTML. It is useful,
however, when generating things such as ASP or JSP pages. Escaping may not be disabled when writing
to a result tree fragment.
Saxon 7.4 has reverted to the XSLT 1.0 specification of xsl:text
: the instruction
must contain only text, it cannot contain a child element.