]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.cms/src/org/argeo/cms/acr/schemas/cr.xsd
Introduce CMS JShell
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / acr / schemas / cr.xsd
1 <?xml version="1.0"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3 xmlns:cr="http://argeo.org/ns/cr"
4 targetNamespace="http://argeo.org/ns/cr" elementFormDefault="qualified"
5 xml:lang="en-GB">
6
7 <xs:element name="root">
8 <xs:complexType>
9 <xs:sequence>
10 <xs:any minOccurs="0" />
11 </xs:sequence>
12 </xs:complexType>
13 </xs:element>
14
15 <xs:attribute name="uuid" type="cr:uuid" />
16
17 <!-- UUID -->
18 <xs:simpleType name="uuid">
19 <xs:annotation>
20 <xs:documentation>An UUID as defined in RFC4122.
21 </xs:documentation>
22 </xs:annotation>
23 <xs:restriction base="xs:string">
24 <xs:pattern
25 value="([0-9]|[a-f]|[A-F]){8}-([0-9]|[a-f]|[A-F]){4}-([0-9]|[a-f]|[A-F]){4}-([0-9]|[a-f]|[A-F]){4}-([0-9]|[a-f]|[A-F]){12}" />
26 </xs:restriction>
27 </xs:simpleType>
28
29 <!-- UUID URN -->
30 <xs:simpleType name="uuidUrn">
31 <xs:annotation>
32 <xs:documentation>The URN of an UUID as defined in RFC4122.
33 </xs:documentation>
34 </xs:annotation>
35 <xs:restriction base="xs:anyURI">
36 <xs:pattern
37 value="urn:uuid:([0-9]|[a-f]|[A-F]){8}-([0-9]|[a-f]|[A-F]){4}-([0-9]|[a-f]|[A-F]){4}-([0-9]|[a-f]|[A-F]){4}-([0-9]|[a-f]|[A-F]){12}" />
38 </xs:restriction>
39 </xs:simpleType>
40 </xs:schema>