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

Re: Best way of preserving comments?

Subject: Re: Best way of preserving comments?
From: "Tony Graham" <tgraham@xxxxxxxxxx>
Date: Wed, 3 Apr 2013 14:56:48 +0100 (IST)
Re:  Best way of preserving comments?
On Wed, April 3, 2013 2:08 pm, Wolfgang Laun wrote:
> Using XSLT 2, this combination:
>  <xsl:strip-space elements = "*" />

If you don't strip white-space and do use:

<xsl:output method="xml" indent="no" />

then you should get your existing white-space without the added indent:

> <processor_data _ix="0" reo_bos_zentrale="----"/>
>    <!-- __________CCA-patches IRT_______________ -->

Since you say you want to skip some elements, you may also want a template
to skip the white-space nodes before/after the skipped elements.


Tony Graham                                   tgraham@xxxxxxxxxx
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL-FO and XSLT consulting, training and programming

Current Thread


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.
First Name
Last Name
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.