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

Re: identity transform - include CDATA's, etc

Subject: Re: identity transform - include CDATA's, etc
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 7 Jul 2003 18:00:22 +0100
xslt include cdata

> the reason I wanted the <![CDATA[]]> to come out in the output is that 
> output of the identity transform is supposed to undergo another xslt 
> transform. 

In that case you _definitely_ don't mind.

<![CDATA[ <a>b</a>]]>

and

&lt;a>b&lt;a>

are _identical_ as far as XSLT is concerned. The whole reason why an
XSLT system is always allowed to use either form on output is that
when they are parsed by an XML parser they form the same input.

> it is therefore necessary that the CDATA section beginning and 
> end markers get represented as is, since these sections contain '<' 
> characters.

This is false. An XSLT system will use or not use CDATA markup
as it chooses, but as shown above the output in either case will
form the same input after XML parsing, just as an identity transfom
may output an attribute a="b" as a="b" or a='b' which is a different
linearisation, but with an equivalent XML parse tree.

David



________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.