W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2005

[Bug 1309] white space in the DM

From: <bugzilla@wiggum.w3.org>
Date: Wed, 21 Sep 2005 16:41:58 +0000
To: public-qt-comments@w3.org
Message-Id: <E1EI7fS-0005yU-2Y@wiggum.w3.org>


------- Additional Comments From davidc@nag.co.uk  2005-09-21 16:41 -------
Just an additional comment to confirm that these issues are not addressed in the
new drafts.

As an example of the incompatiblity this introduces between XPath 1 and 2 (that
is still not documented in the incompatibilities section) consider

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output method="text"/>

<xsl:template match="x">
<xsl:copy-of select="node()[position() mod 2 = 0]"/>

applied to

<!ELEMENT x (y*)>
 <y>kill </y>
 <y>me </y>

With a 1.0 processor one gets the output
skill time
with a 2.0 processor as specified here you would get the output
kill me

Having the same construct work  _without error_ in version 2 but produce
radically different output to version 1 is something that should be avoided
if at all possible, and documented _very_ clearly if it is impossible to avoid
the incompatibility.
Received on Wednesday, 21 September 2005 16:46:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:08 UTC