Generates text in the output.
<xsl:text disable-output-escaping = "yes" | "no"> </xsl:text>
<xsl:text disable-output-escaping="yes"><</xsl:text>
generates the single character "<"
.
Note disable-output-escaping="yes" can be used to generate non-well-formed documents, and thus should be used with caution, since non-well-formed output may generate errors in certain circumstances. For instance, 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-formedness of the document. We recommend considering disable-output-escaping="yes" as an advanced feature to be used only when the potential dangers are understood.
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) |
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.