xsl-list
[Top] [All Lists]

RE: [xsl] Whitespace stripping in conjunction with PIs and comments

2006-04-13 15:38:04
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/ 



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

<Prev in Thread] Current Thread [Next in Thread>