Next / Previous / Contents / Shipman's homepage

9.1. xsl:text: Output literal text

To send some text to the output, embed that text in the content of an xsl:text element. For example, this would send the text "not", followed by a newline, followed by the text "insane":


There is one optional attribute:


For output to XML or HTML, special characters like "<" are translated to their escaped equivalents, such as "&lt;. If your xsl:text element has attribute disable-output-escaping="yes", however, such characters will be sent as is, untranslated. The default value is "no". This option is ignored for text output.