RE: [xsl] How to match a cdata section

Subject: RE: [xsl] How to match a cdata section
From: "Carlos Fragoso Mariscal" <cfragoso@xxxxxxxx>
Date: Thu, 6 Sep 2001 18:07:35 +0200
Thnx to all of those who answered

As you said, the CDATA determines a section
who is text and the output should be escaped.

   <!CDATA[    The text   ]]>

In the stylesheet i matched the text like this

<xsl:value-of select='textBody/text()'/>

If I try the select only with textBody it doesn't


-----Mensaje original-----
De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de Michael Kay
Enviado el: jueves, 06 de septiembre de 2001 14:30
Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Asunto: RE: [xsl] How to match a cdata section

> How can I match the Cdata Section?!?
You can't, the XPath data model regards CDATA as merely an input shortcut,
not as an information-bearing part of the XML content. In other words,
"<![CDATA[x]]>" and "x" look exactly the same to the XSLT processor.

Mike Kay

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread