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 1458 - XQST0082 should be a dynamic error not a static error
Summary: XQST0082 should be a dynamic error not a static error
Status: CLOSED DUPLICATE of bug 1570
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Don Chamberlin
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-17 14:14 UTC by Michael Kay
Modified: 2005-07-28 18:35 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-05-17 14:14:34 UTC
This relates to attribute constructors for the xml:id attribute within a direct
element constructor. List item 5 in 3.7.1.1 reads:

If the attribute name is in namespace http://www.w3.org/XML/1998/namespace and
its local part is id (informally, if the attribute name is xml:id), the
string-value of the attribute must be in the lexical space of the type xs:NCName
[err:XQST0082], and the is-id property of the resulting attribute node is set to
true; otherwise the is-id property is set to false.

In general it's not known until run-time whether the value of the attribute is a
valid NCName, so this should be a dynamic error not a static error.

Michael Kay
Comment 1 Michael Kay 2005-05-17 14:19:46 UTC
Also affects 3.7.3.2 Computed Attribute Constructors
Comment 2 Michael Kay 2005-05-17 14:30:44 UTC
I also note that XSLT explicitly says there are no constraints on the value of
an xml:id attribute, whereas XQuery says it's an error if it isn't an NCName. I
can't see any good reason why the two specs should be different. I think the
XSLT decision was made on the basis that invalid values should only be an error
if you are validating.

Michael Kay
Comment 3 Jim Melton 2005-07-21 16:27:42 UTC
At the July 2005 F2F, Don Chamberlin observed that this bug is a duplicate of
#1570. 

*** This bug has been marked as a duplicate of 1570 ***