[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: identity transform - include CDATA's, etc
> 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 <a>b<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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|