- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 19 Nov 2007 11:46:13 +0000
- To: www-xml-schema-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5273 Summary: xpathDefaultNamespace on identity constraints Product: XML Schema Version: 1.1 only Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Structures: XSD Part 1 AssignedTo: cmsmcq@w3.org ReportedBy: mike@saxonica.com QAContact: www-xml-schema-comments@w3.org 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.
Received on Monday, 19 November 2007 11:46:19 UTC