]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
78e5fb47f44d667f17bbc4bdc042347dbf94d4b4
[tmp/jakarta-migration.git] /
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
2 <!--\r
3     Copyright 2009 University of California at Berkeley\r
4     Licensed under the Educational Community License (ECL), Version 2.0.\r
5     You may not use this file except in compliance with this License.\r
6     \r
7     You may obtain a copy of the ECL 2.0 License at\r
8     https://source.collectionspace.org/collection-space/LICENSE.txt\r
9 \r
10     Document   : relation.xsd\r
11     Revision   : $LastChangedRevision: $\r
12     Created on : $LastChangedDate: $\r
13     Author     : $LastChangedBy: $\r
14     Description:\r
15         Nuxeo document core type for CollectionSpace Relation\r
16 -->\r
17 <xs:schema \r
18     xmlns:xs="http://www.w3.org/2001/XMLSchema"\r
19     xmlns="http://collectionspace.org/relation/"\r
20     xmlns:rel="http://collectionspace.org/relation/"\r
21     targetNamespace="http://collectionspace.org/relation/"\r
22     version="0.1">\r
23 \r
24             <!-- Note: nuxeo ecm types does not support xs:anyURI type -->\r
25             <!-- if xs:anyURI is used, it fails to register that doctype -->\r
26 \r
27             <!-- conventions for describing relationships -->\r
28             <!-- 1. left to right in alphabetical order for the association relations -->\r
29             <!-- e.g. for association between collectionobject and intake entities -->\r
30             <!-- document-id-1 would be the id of the collectionobject -->\r
31             <!-- document-type-1 would be the doc-type of the collectionobject -->\r
32             <!-- document-id-2 would be the id of the intake -->\r
33             <!-- document-type-2 would be the doc-type of the intake -->\r
34             <!-- 2. left to right container and containee or children -->\r
35             <!-- e.g. for collectionobject containing other collectionobjects -->\r
36             <!-- document-id-1 would be the id of the container collectionobject -->\r
37             <!-- document-type-1 would be the doc-type of the container collectionobject -->\r
38             <!-- document-id-2 would be the id of the contained (or child) collectionobject -->\r
39             <!-- document-type-2 would be the doc-type of the collectionobejct -->\r
40     <xs:element name="documentId1" type="xs:string"  minOccurs="1" maxOccurs="1"/>\r
41     <xs:element name="documentType1" type="xs:string"  minOccurs="1" maxOccurs="1"/>\r
42     <xs:element name="documentId2" type="xs:string"  minOccurs="1" maxOccurs="1"/>\r
43     <xs:element name="documentType2" type="xs:string"  minOccurs="1" maxOccurs="1"/>\r
44 \r
45             <!-- type of relatinoship between two entities -->\r
46     <xs:element name="relationshipType" type="rel:RelationshipType" minOccurs="1" maxOccurs="1"/>\r
47 \r
48 \r
49 \r
50     <!-- enumeration defining the type of relationship between two entities -->\r
51     <xs:simpleType name="RelationshipType">\r
52         <xs:restriction base="xs:string">\r
53             <!-- document with id as document-id-1 is associated with document with id as document-id-2 -->\r
54             <xs:enumeration value="association" />\r
55             <!-- document with id as document-id-1 contains one or more document with id as document-id-2 -->\r
56             <xs:enumeration value="contains" />\r
57         </xs:restriction>\r
58     </xs:simpleType>\r
59 \r
60 </xs:schema>\r
61 \r
62 \r
63 \r
64 \r
65 \r
66 \r