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

RE: copying CData sections from the source to destination do

Subject: RE: copying CData sections from the source to destination documents
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 15 Nov 2000 12:09:46 -0000
xslt cdata source
> >Does it matter whether the output uses character references 
> or CDATA? They
> >are just different ways of expressing the same information.
> 
> I think so. What we are trying to do is embed an XML fragment (or even
> document) inside another XML document (they will have 
> different dtd's). The
> embedded XML is essentially irrelevant to my system in that I 
> do not want to validate it, check it, or transform it. I just want to pass

> it on to the downstream systems in its XML wrapper - (Its this wrapper I 
> want to perform a transformation on).

Well, as far as XSLT and XPath are concerned, characters written using CDATA
mean exactly the same as characters written using numeric character
references. But unfortunately there's no formal definition of XML semantics,
(the infoset, which is trying to address the problem, is informal and tries
to keep everyone happy) so you can attach meaning to anything you like,
including the number of spaces between attributes if you really want. And
admittedly some other standards in the XML family, such as DOM, do encourage
you to regard CDATA as a semi-logical construct. Which is perhaps why XSLT
provides the cdata-section-elements attribute in xsl:output.

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