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

RE: enclose output of transform in CDATA section

Subject: RE: enclose output of transform in CDATA section
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 14 Aug 2003 16:29:15 +0100
manage cdata with xsl
> 
> I completely disagree with Mike Kay on this issue: there is 
> nothing in 
> the XML specification that in any way suggests that it is 
> "inappropriate" to include a syntactic XML document in a 
> CDATA section 
> and I can think of several cases when it would be useful to do so.

Of course there's nothing in the XML spec about this; it's a question of
application architecture and good document design.

You can embed the serialized form of one XML document as text within
another XML document if you really must, but it's going to be much more
difficult to manage, because you need to put the text through two
parsing phases on input, and two serialization phases on output. That's
fine if you understand it and design your application around it, but an
awful lot of people seem to be using this kind of structure without
realizing the implications, and are trying to process it (in or out) in
a single pass, and they are getting into a mess as a result.

Michael Kay


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.