[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: identity transform - include CDATA's, etc
ok, but these 2 lines are not identical to <a>b</a> quite. so this would be good if this is the way '<' signs in CDATA sections are always handled, and if this behavior is reliable and predictable. but is it, in fact, reliable across the multitude of xslt processors and other circumstances? Is it part of the xslt spec? I had understood that other behaviors similar to this one are not reliable. there are no CDATA section nodes in Xpath data model, the _only_ thing <![CDATA[ does is make < and & act like < and & respectively. The parser in either case will just report a single character, and so XSLT engine doesn't know whether you did <![CDATA[<]]> or < or & # 60;. So it is an XML parse issue rather than an XSLT one. conversely when the serialiser is outputting the content of an element that contains the character , it needs to do it in such a way that an XML parser reports a < it can do it how it likes < < <![CDATA[<]]> they are all equivalent, and the system usually chooses the same one irrespective of how the character was entered. If you can't rely on your XSLT system getting this right you can't rely on it at all. David 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
|