[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: problem with processing CDATA tags in xml

Subject: Re: problem with processing CDATA tags in xml
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 08 Apr 2010 15:05:40 +0200
Re:  problem with processing CDATA tags in xml
Robby Pelssers wrote:

Actually I generate 2 kinds....

- xhtml (web rendition)
- DITA map/topics (which they import into framemaker to produce nice PDF's showing their product information.

But even DITA recognizes these <sub> and <sup> tags just as AdobeFramemaker does, so we use them for all publications actually.

The XSLT/XPath data model does not know any CDATA sections, the XSLT processor only sees text nodes where the original XML might have contained a CDATA section.
If you want a CDATA section in the serializezd XML output of a stylesheet then using the 'cdata-section-elements' attribute is the way to achieve that.
If you have a different stylesheet producing XHTML served as text/html on the web then CDATA sections don't make sense but in such a stylesheet you can certainly use xsl:value-of with disable-output-escaping="yes" to have the escaped markup result in elements.


	Martin Honnen

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.