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 5273 - xpathDefaultNamespace on identity constraints
Summary: xpathDefaultNamespace on identity constraints
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.1 only
Hardware: PC Windows XP
: P2 minor
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL:
Whiteboard: XPath cluster
Keywords: resolved
Depends on:
Blocks:
 
Reported: 2007-11-19 11:46 UTC by Michael Kay
Modified: 2008-03-05 00:10 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2007-11-19 11:46:12 UTC
The rules for identity constraints (key/keyref/unique), XML representation, section 3.11.2, construct an XPath property record "as described in section XML Representation of Assertion Schema Components (ยง3.13.2), with <selector> [or <field>] as the 'host element'".

The rules in 3.13.2 look for the attribute xpathDefaultNamespace on the "host element", but in this case the attribute is defined to appear on the parent of the host element.

If we fix this, I'm not sure what it would mean to say

<unique xpathDefaultNamespace="##defaultNamespace">
  <xs:selector xpath="a/b/c" xmlns="my.namespace"/>

I think it would avoid confusion and simplify the rules if we change the syntax so the xpathDefaultNamespace attribute is recognized only on the element where the XPath expression is actually defined - that is, on field and selector rather than on unique, key, and keyRef.
Comment 1 David Ezell 2008-01-24 18:40:52 UTC
RESOLUTION: The workgroup accepts Michael Kay's proposed resolution to bug 5273.  David Ezell will update bugzilla to so indicate.
Comment 2 C. M. Sperberg-McQueen 2008-02-04 16:17:21 UTC
In an effort to make better use of Bugzilla, we are going to use the
'severity' field to classify issues by perceived difficulty.  This 
bug is getting severity=minor to reflect the existing whiteboard note
'easy'. 
Comment 3 C. M. Sperberg-McQueen 2008-03-04 23:24:36 UTC
A wording proposal addressing this issue (among others) was adopted by the 
XML Schema WG on 15 February.  (This record should have been updated then,
but something went wrong; mea culpa, probably, and my apologies.)

http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.2008omnibus3.html
(member-only list)

Since the originator of this issue is a WG member, he is presumed to assent
to this resolution of the issue.  For formal purposes, however, it would be
convenient if he so indicated in the usual way.