XSLT Elements <xsl:text>

 

- Info :

- Displays text to output.

- Optional attribute 'disable-output-escaping' can have following values:

- yes means that special characters (like "<") should be output as is

- no is default.

 

- Example:

 

test.xml

<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="test.xsl"?>

<people>

<student>

<name>Jack</name>

<name>Anton</name>

</student>

</people>

test.xsl

<?xml version="1.0" ?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/people/student/name">

<xsl:text>Found name</xsl:text>

<br/>

</xsl:template>

</xsl:stylesheet>

result

Found name
Found name