- From: <bugzilla@wiggum.w3.org>
- Date: Sun, 27 Aug 2006 22:20:54 +0000
- To: public-qt-comments@w3.org
- CC:
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 UTC