Subject: RE: copying CData sections from the source to destination documen ts From: Kay Michael <Michael.Kay@xxxxxxx> Date: Wed, 15 Nov 2000 12:09:46 -0000 |
> >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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: copying CData sections from the, Kay Michael | Thread | ordering of output in menu renderin, WAGLET |
RE: saxon fatal error reports odd l, Kay Michael | Date | include text file, Ext . ZXSPRCR2A015 |
Month |