W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2006

[Bug 3636] Constr-ws-xmlspace-2

From: <bugzilla@wiggum.w3.org>
Date: Sun, 27 Aug 2006 22:20:54 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1GHSzu-000266-BD@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3636

           Summary: Constr-ws-xmlspace-2
           Product: XML Query Test Suite
           Version: 1.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


test Constr-ws-xmlspace-2 takes the form:

<elem xml:space="strip"> </elem>

In XML, the two legal values of xml:space are "preserve" and "default". It
seems this is a legal query, but it generates an erroneous XML document. It's
not actually a well-formedness error: the XML spec says "It is an error for
other values [than 'preserve' or 'default'] to be specified; the XML processor
MAY report the error or MAY recover by ignoring the attribute specification or
by reporting the (erroneous) value to the application. 

As it happens the System.Xml parser on .NET does report the error, which makes
it impossible to compare the result of this query with the expected results.

I shall raise an issue on the XQuery spec as to whether this query ought to be
legal. Whether it's a legal query or not, however, it's not a good idea for a
test in the test suite to generate a result that's an error according to the
XML specification, if only because it's legitimate for the comparison with
expected results to fail.
Received on Sunday, 27 August 2006 22:20:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:44 GMT