xsl-list
[Top] [All Lists]

Re: [xsl] Best way of preserving comments?

2013-04-03 08:55:31
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.

Regards,



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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>