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

RE: Effects of white space between xml elements

Subject: RE: Effects of white space between xml elements
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 6 Mar 2009 16:47:45 -0000
RE:  Effects of white space between xml elements
> In 2.0, the 
> rules are made more explicit (at least as I read them :-) 
> that this is allowable, as well as being clearer that if 
> whitespace-only nodes (or indeed any input at all) is gone 
> before the XSLT engine even gets them, there's nothing to be 
> done about that on a general basis.

It's a common expectation that with XSLT 1.0, you will see the inter-element
whitespace unless you use xsl:strip-space to get rid of it; but what the
spec actually says is "A transformation expressed in XSLT describes rules
for transforming a source tree into a result tree. ", and it says very
little about how that source tree might be constructed. A processor that
strips whitespace without the user's say-so might be extremely annoying, but
it is is not non-conformant.

Michael Kay
http://www.saxonica.com/

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-2011 All Rights Reserved.