[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: "Abie Hamaoui" <ahama5@xxxxxxxxxxx>
Date: Mon, 07 Jul 2003 16:40:04 +0000
identity transform
This is to continue on david carlisle's thread. I hope it goes to the right place. if not, I hope someone can tell me how to do it right next time.


CDATA sections are not elements they are just syntactic sugar so you can
enter < and & as < and & rather than &lt; and &amp;,
In the Xpath model text may or may not be output using CDATA at the will
of the system, just as it may use " or ' to surround attribute values,
the original markup is not recorded so a stylesheet has no way to
recreate it.


Why do you mind?

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


In case you'll ask why I'm using the identity transform altogether in this case, I hope it will suffice to say that there are logistical reasons relating to the development group in which I work. but I think it would be easy to see how this issue would come up if a person wanted to use a variant of the identity transform and still be able to do another transform afterwards - in fact, it would probably come up any time that a document is meant to be processed in 2 successive transformations. one would want the CDATA section markers to remain intact during the first transformation so that the document will come out right for the second.

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



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.