|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: identity transform - include CDATA's, etc
Abie,
As we often have to point out on this list, XSL engines do not work on a file or a sequence of characters, but rather on a data object (an "XPath tree") that represents the XML document tolerably well for many purposes, and extremely well for the purposes for which it was designed. Accordingly, an XSLT "identity transform" does not and cannot work to create a character-by-character mirror of an input file ... it's the result tree that's identical to the source (tree). For better or worse, the difference between (say) "& lt;" (pls remove fooler-space) and "<![CDATA[<]]>" is not represented in the model, so these cannot be distinguished by the processor or represented differently in the output. Whether it's a "true" identity transform is a matter for metaphysical debate. :-> But if you need character-for-character fidelity, XSLT isn't the tool for the job. Cheers, Wendell At 03:58 PM 6/26/2003, you wrote: I saw an identity transform on msdn online that goes like this: ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== 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
|

Cart








