- From: <bugzilla@jessica.w3.org>
- Date: Wed, 18 Apr 2012 15:15:34 +0000
- To: www-xml-schema-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16779
Summary: S4S has constraint that does not allow ID constraints
with "ref" attributes
Product: XML Schema
Version: 1.1 only
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Structures: XSD Part 1
AssignedTo: David_E3@VERIFONE.com
ReportedBy: pwalmsley@datypic.com
QAContact: www-xml-schema-comments@w3.org
CC: cmsmcq@blackmesatech.com
The following constraint from the Schema for Schemas assumes that all key,
unique and keyref elements have names.
<xs:key name="identityConstraint">
<xs:selector xpath=".//xs:key|.//xs:unique|.//xs:keyref"/>
<xs:field xpath="@name"/>
</xs:key>
This is no longer a valid assumption, since they can now have the "ref"
attribute instead. I think it should be changed from key to unique, as in:
<xs:unique name="identityConstraint">
<xs:selector xpath=".//xs:key|.//xs:unique|.//xs:keyref"/>
<xs:field xpath="@name"/>
</xs:unique>
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 18 April 2012 15:15:41 UTC