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

Re: Result still indented despite indent="no"

Subject: Re: Result still indented despite indent="no"
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Sun, 20 Feb 2005 09:57:25 -0800 (PST)
xsl strip white spaces
I just saw the relevant section in XSLT 2.0 draft
(http://www.w3.org/TR/xslt20/) - section "4.4
Stripping Whitespace from a Source Tree". It seems
more clear than the XSLT 1.0 spec. But it still
does'nt explicitly say "what should happen when both
strip-space and preserve-space are not present".

Now that XSLT 2.0 draft is in the advanced stage,
probably the below clarification I am asking for,
should be clearly stated in the spec(in section 4.4).

>But in that case, the spec should be a bit more
>clear.. It should clearly say, what should happen,
>when both strip-space and preserve-space are not
>present. Whether default behaviour should be to
>preserve white spaces or strip white spaces.

Hope, Mr. Kay will take care.

Regards,
Mukul

> --- David Carlisle <davidc@xxxxxxxxx> wrote:
> > Mukul,
> > 
> > as Michael says you don't need the errata in this
> > case, section 3.4 is
> > not at all ambiguous here it says:
> > 
> > 
> > 
> > > Initially, the set of whitespace-preserving
> > element names contains all
> > > element names.
> > 
> > so unless you specify strip-space in your
> stylesheet
> > all white space in
> > the source is preserved.
> > 
> > This behaviour is implemented in all xslt engines
> > that I have seen
> > (including msxsl) so I don't think that there is
> any
> > reason to doubt
> > that this is clear.
> > 
> > The difference in msxml is not in the
> implementation
> > of xsl strip-space
> > it is in the parser producing the input tree
> before
> > xslt starts. msxml
> > removes white space (irrespective of
> xsl:strip-space
> > or xsl:preseve
> > space, the xsl instructions can only affect the
> > input tree as seen by
> > xsl and in the case of msxml the input tree has
> > essentially gone through
> > a pre-transformation that has removed space. If
> you
> > set the
> > preservewhitepace property so that the parser does
> > not do that, you'll
> > see that msxml implements xsl space stripping in a
> > conformant way.
> > 
> > David




		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.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-2013 All Rights Reserved.