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

Re: XSLT2.0 compatibility

Subject: Re: XSLT2.0 compatibility
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 5 Sep 2006 18:58:13 +0100
Re:  XSLT2.0 compatibility
> How should I preserve the space of the xml for human reading? 
but you are preserving space used to indent the stylesheet elements and
copying that space to the output even though it has no relationship to
the elements in th eoutput tree, so using xml:space here doesn't help
(even when it doesn't cause an error)

> I found indent="yes" is not good enough.
what does it do wrong?
(Often when using indent=yes (which adds space) it's a good idea to use
<xsl:strip-space elements="*"/> 
so that space from the input osn't also copied Automatic indenting works
best when that is the _only_ source of white space text nodes.

David

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.