[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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. Regards, 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
|
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
|