Subject: RE: Whitespace stripping in conjunction with PIs and comments
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 13 Apr 2006 23:37:36 +0100
|
> Does someone know if any of the XSLT 1.0 processors has
> adopted the additional cases 4) and 5) of section
> 4.2 Stripping Whitespace from the Stylesheet?
> Is it considered best practice for those processors to strip
> those additional whitespace text nodes, or do they have to
> keep their hands away from this?
I think it's an area where 1.0 processors are known to differ. Some adopt a
rigid interpretation in which
<xsl:choose xml:space="preserve">
<xsl:when>
...
is treated as an error on the grounds that text content is not allowed
inside xsl:choose; while other processors adopt a more user-friendly
interpretation (but one that isn't necessarily justified by the spec).
Michael Kay
http://www.saxonica.com/
|