xsl:text Element (Compact 2013)
3/26/2014
Generates text in the output.
Syntax
<xsl:text
disable-output-escaping = "yes" | "no">
</xsl:text>
Attributes
disable-output-escaping
Default is "no". If the value is "yes", a text node generated by instantiating the <xsl:text> element will be output without any escaping. For example, the following generates the single character"<"
.<xsl:text disable-output-escaping="yes"><</xsl:text>
Note
disable-output-escaping="yes" can be used to generate non-well-formed documents, and thus should be used with caution, because non-well-formed output may generate errors in certain circumstances. For example, transformNodeToObject to an XML document requires that the result be well-formed and thus may not complete if disable-output-escaping has affected the well-formed appearance of the document. Consider disable-output-escaping="yes" an advanced feature to be used only when the potential dangers are understood.
Element Information
Number of occurrences |
Unlimited |
Parent elements |
xsl:attribute, xsl:comment, xsl:copy, xsl:element, xsl:for-each, xsl:if, xsl:otherwise, xsl:param, xsl:processing-instruction, xsl:template, xsl:variable, xsl:when, xsl:with-param, output elements |
Child elements |
(No child elements) |
Remarks
A text node is created for each <xsl:text> element appearing in a template. White space is stripped, and adjacent text nodes are automatically merged.