You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@apache.org on 2001/01/18 08:14:38 UTC
cvs commit: xml-xerces/java/data personal.xsd
andyc 01/01/17 23:14:38
Modified: java/data personal.xsd
Log:
Added some sample identity constraints to the grammar. These
identity constraints are basically duplicates of the ID/IDREF
types already and are included merely for testing purposes.
NOTE: Let's not forget to update this grammar to the latest
Schema spec once we flip the switch.
Revision Changes Path
1.9 +13 -1 xml-xerces/java/data/personal.xsd
Index: personal.xsd
===================================================================
RCS file: /home/cvs/xml-xerces/java/data/personal.xsd,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- personal.xsd 2000/12/14 23:09:11 1.8
+++ personal.xsd 2001/01/18 07:14:37 1.9
@@ -1,10 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
-<schema>
+<schema xmlns='http://www.w3.org/1999/XMLSchema'>
<element name="personnel">
<complexType>
<element ref="person" minOccurs='1' maxOccurs='unbounded'/>
</complexType>
+ <unique>
+ <selector>person</selector>
+ <field>name</field>
+ </unique>
+ <key name='empid'>
+ <selector>person</selector>
+ <field>@id</field>
+ </key>
+ <keyref name='empid'>
+ <selector>person</selector>
+ <field>link/@manager</field>
+ </keyref>
</element>
<element name="person">