Forwarding to proper list. Also putting in issue tracker
---------- Forwarded message ----------
From: Angel Pizarro <an...@ma...>
Date: Wed, May 21, 2008 at 11:37 AM
Subject: xml keys
To: psi...@li...
FYI here is an excerpt from another XML schema that defines an XML
Key, as well as a reference and unique constraints on those keys:
<xs:key name="PEOPLE_PK">
<xs:selector
xpath="sis:Personnel_Roster/sis:Investigator/sis:Commons_Username"/>
<xs:field xpath="."/>
</xs:key>
<xs:keyref name="MENTOR_NOT_IN_ROSTER_FK"
refer="sis:PEOPLE_PK">
<xs:selector
xpath="sis:Personnel_Roster/*/sis:Mentor_Commons_Username"/>
<xs:field xpath="."/>
</xs:keyref>
< xs:keyref name="PI_NOT_IN_ROSTER_FK" refer="sis:PEOPLE_PK">
<xs:selector xpath="sis:Grant_Info"/>
<xs:field xpath="sis:PI_Commons_Username"/>
</xs:keyref>
<xs:unique name="PUBLICATION_NOT_UNIQ_UK">
<xs:selector
xpath="sis:Publications/sis:Publication"/>
<xs:field xpath="sis:PubMed_ID"/>
</xs:unique>
<xs:unique
name="COMMONS_USERNAME_NOT_UNIQ_IN_PERSONNEL_ROSTER">
<xs:selector
xpath="sis:Personnel_Roster/*/sis:Commons_Username"/>
<xs:field xpath="."/>
</xs:unique>
-angel
--
Angel Pizarro
Director, ITMAT Bioinformatics Facility
806 Biological Research Building
421 Curie Blvd.
Philadelphia, PA 19104-6160
215-573-3736
|