Easy Tutorial
❮ El Import El Copy Of ❯

XSLT <xsl:text> Element



Definition and Usage

The <xsl:text> element is used to write text to the output, i.e., to generate text nodes through the stylesheet.

Tip: This element can contain text, entity references, and #PCDATA.


Syntax

Attributes

Attribute Value Description
disable-output-escaping yes <br>no Optional. If the value is "yes", the text node generated by instantiating the <xsl:text> element will not be escaped in the output. For example, "<" will be output as "<". If the value is "no", then "<" will be output as "<". The default is "no". Netscape 6 does not support this attribute.

Example 1

Displays the title of each CD. If it is not the last or second-to-last CD, insert ", " between each cd-title. If it is the last CD, append "!" after the title. If it is the second-to-last CD, append ", and " after the title:


❮ El Import El Copy Of ❯