This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to match a cdata section


Thnx to all of those who answered

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

<textBody>
   <!CDATA[    The text   ]]>
</textBody>

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
work.

Bye

-----Mensaje original-----
De: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]En nombre de Michael Kay
Enviado el: jueves, 06 de septiembre de 2001 14:30
Para: xsl-list@lists.mulberrytech.com
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:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]