Home >
Online Product Documentation >
Table of Contents >
xsl:text
xsl:text
Adds a text node to the result tree.
Format
Description
The XSLT processor reports an error if instantiating text_node_contents results in anything other than characters.
You can also add text nodes to result documents by embedding the text in elements that you define.
You can specify the
disable-output-escaping
attribute of the
xsl:text
instruction. The allowed values are
yes
or
no
. The default is
no
. If the value is
yes
, the text node generated by instantiating the
xsl:text
element is output without any escaping. For example:
This instruction generates the single character <.
Examples
The following fragment adds two text nodes by embedding text.
The next example specifies the
xsl:text
instruction: