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

Re: Output XML just as it is...

Subject: Re: Output XML just as it is...
From: Elliotte Rusty Harold <elharo@xxxxxxxxxxxxxxx>
Date: Tue, 2 Mar 2004 09:44:42 -0500
xml declaration xsl output xml
At 1:32 AM -0700 3/2/04, Karl J. Stubsjoen wrote:
Hello,

I have some XML (which is really XHTML on the inside) that I'd like to
output as an exact copy of HTML (without using CDATA).  Also, it might be
necessary to alter the SRC property of an IMG element, so would consider
some sort of IMG match and copy all properties but alter SRC.


This is not possible with pure XSLT 1.0 because XSLT parses the document. This removes a lot of insignificant information like entity reference names and positions, CDATA section delimiters, and white space inside tags and in the prolog and epilog, and the document type declaration. To do what you're asking you need to not parse the document by just reading it from an InputStream.
--


  Elliotte Rusty Harold
  elharo@xxxxxxxxxxxxxxx
  Effective XML (Addison-Wesley, 2003)
  http://www.cafeconleche.org/books/effectivexml
  http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA

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.