xsl-list
[Top] [All Lists]

Re: Result still indented despite indent="no"

2005-02-20 09:55:06

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

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
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>
--~--