Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSLT Element

XSLT xsl:text Element


XSLT Element Reference Manual 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">

My CD Collection

Titles:

xsl:text,

xsl:text, and

xsl:text!


XSLT Element Reference Manual Complete XSLT Element Reference Manual