XSLT xsl:text Element
Complete XSLT Element Reference Manual
Definition and Usage
xsl:text The element writes text to the output, generating a text node from the stylesheet.
**Tip:** This element can contain text, entity references, and #PCDATA.
Syntax
disable-output-escaping="yes|no">
property
| property | Value | Description |
|---|---|---|
| disable-output-escaping | yes | |
| no | Optional. If the value is "yes", text nodes generated by instantiating the xsl:text element will not be escaped in any way in the output. For example, "<" will be output as "<". If the value is "no", then "<" will be output as "<". Default is "no".
Netscape 6 does not support this attribute. |
Example 1
Display the title of each CD. If it is neither the last nor the second-to-last CD, insert ", " between each cd-title. If it is the last CD, add "!" after the title. If it is the second-to-last CD, add ", and " after the title:
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> Titles: xsl:text, and My CD Collection
Complete XSLT Element Reference Manual