This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14920 - XML10-4ed-Excluded-char-1
Summary: XML10-4ed-Excluded-char-1
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 11:01 UTC by Michael Kay
Modified: 2011-11-24 11:27 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2011-11-24 11:01:24 UTC
This test case (in misc-XMLEdition) carries the comment

The character #x037E is excluded from the start of a Name in XML 1.0 4th edition and older 

which is technically true; however, it is also excluded in XML 1.0 5th edition and XML 1.1, which makes the test rather pointless, and one of the permitted results incorrect.

I am splitting the tests in this set into two, with explicit dependencies on XML versions, rather than simply allowing alternative results. I propose to change this test to use a character that is not allowed as a name start character prior to 1.1/1.0e5 but is allowed thereafter; a suitable candidate might be x037F.

Some of these tests also suffer from incorrect use of CDATA, which I am fixing at the same time. In XQuery, a character reference cannot appear in an element name, so the expansion of character references must be done by the XML parser, not by XQuery itself.
Comment 1 Michael Kay 2011-11-24 11:27:55 UTC
Fixed as suggested.