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: Parsing of CDATA


> Is there a way of parsing 'out' the contents of
> a CDATA section, inside a stylesheet ?
>
> e.g.
>
> xml fragment:
> <NAME><![CDATA[<LANG>Previous</LANG>]]></NAME>
>

No (except by invoking an XML parser via an extension function).

This habit of putting markup inside a CDATA section is to be strongly
discouraged. The purpose of CDATA is to tell the parser that the "<" and ">"
are ordinary data characters, not special markup characters. Using CDATA to
hold XML is therefore always going to cause trouble.

Mike Kay
Software AG


 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]