commit initial sql upgrade script to alter table type to engine and set the default...
[acontent.git] / docs / home / ims / domainProfile_2 / dataTypes_localised.xsd
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--*************************************************************************-->\r
3 <!--** This schema has been modified from the original base schema named - **-->\r
4 <!--** dataTypes.xsd                                                       **-->\r
5 <!--** using the IMS SchemaProf tool. This tool is based on software from  **-->\r
6 <!--** the TELCERT Project which was funded in part by the European        **-->\r
7 <!--** Commission under contract IST-507128                                **-->\r
8 <!--*************************************************************************-->\r
9 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ag="http://ltsc.ieee.org/xsd/LOM/unique" xmlns:ex="http://ltsc.ieee.org/xsd/LOM/extend" xmlns="http://ltsc.ieee.org/xsd/LOM" targetNamespace="http://ltsc.ieee.org/xsd/LOM" elementFormDefault="qualified" version="IEEE LTSC LOM XML 1.0 localised_Schema_2008_6_30">\r
10         <xsd:include xmlns:xsd="http://www.w3.org/2001/XMLSchema" schemaLocation="imscc_mR_definition.xsd" />\r
11         <xs:annotation>\r
12                 <xs:documentation>\r
13          This work is licensed under the Creative Commons Attribution-ShareAlike\r
14          License.  To view a copy of this license, see the file license.txt,\r
15          visit http://creativecommons.org/licenses/by-sa/2.0 or send a letter to\r
16          Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.\r
17       </xs:documentation>\r
18                 <xs:documentation>\r
19          This component schema defintion defines global schema data type declarations\r
20          for data types defined in the LOMv1.0 base schema.\r
21       </xs:documentation>\r
22       <xs:documentation>\r
23          This file has been modified by the Knowledge Media Institute of the \r
24          University Koblenz-Landau (http://iwm.uni-koblenz.de). It contains the\r
25          following changes:\r
26          1) Instead of "unique/strict.xsd" the schema "unique/loose.xsd" is imported \r
27             because this reflects what is said in 1484.12.3-2005, page 35 (section C.1.3)\r
28          2) In all component XSDs the schemaLocation attribute was amended to the \r
29             xs:import and xs:include statements. This enables the usage of the schemas\r
30             with tools which don't deal well with missing schemaLocation informations.\r
31             \r
32          This file is available at "http://iwm.uni-koblenz.de/xsd/IEEE-LOM/loose"\r
33       </xs:documentation>\r
34         </xs:annotation>\r
35         <xs:import namespace="http://ltsc.ieee.org/xsd/LOM/unique" schemaLocation="./unique/loose.xsd" />\r
36         <xs:import namespace="http://ltsc.ieee.org/xsd/LOM/extend" schemaLocation="./extend/custom.xsd" />\r
37          <xs:include schemaLocation="elementTypes_localised.xsd" />\r
38         <!-- Data type declarations -->\r
39         <!-- CharacterString -->\r
40         <xs:simpleType name="CharacterString">\r
41                 <xs:restriction base="xs:string" />\r
42         </xs:simpleType>\r
43         <!-- LanguageId -->\r
44         <xs:complexType name="LanguageId">\r
45                 <xs:simpleContent>\r
46                         <xs:extension base="xs:language">\r
47                                 <xs:attributeGroup ref="ex:customAttributes" />\r
48                         </xs:extension>\r
49                 </xs:simpleContent>\r
50         </xs:complexType>\r
51         <!-- VCard -->\r
52         <xs:complexType name="VCard">\r
53                 <xs:simpleContent>\r
54                         <xs:extension base="CharacterString">\r
55                                 <xs:attributeGroup ref="ex:customAttributes" />\r
56                         </xs:extension>\r
57                 </xs:simpleContent>\r
58         </xs:complexType>\r
59         <!-- MimeType -->\r
60         <xs:simpleType name="MimeType">\r
61                 <xs:restriction base="CharacterString" />\r
62         </xs:simpleType>\r
63         <!-- Size -->\r
64         <xs:simpleType name="Size">\r
65                 <xs:restriction base="xs:nonNegativeInteger" />\r
66         </xs:simpleType>\r
67         <!-- LanguageString -->\r
68         <xs:complexType name="LanguageString">\r
69                 <xs:choice minOccurs="0" maxOccurs="unbounded">\r
70                         <xs:element name="string" type="LangString" />\r
71                         <xs:group ref="ex:customElements" />\r
72                 </xs:choice>\r
73                 <xs:attributeGroup ref="ex:customAttributes" />\r
74         </xs:complexType>\r
75         <xs:complexType name="LangString">\r
76                 <xs:simpleContent>\r
77                         <xs:extension base="CharacterString">\r
78                                 <xs:attribute name="language" type="xs:language" />\r
79                                 <xs:attributeGroup ref="ex:customAttributes" />\r
80                         </xs:extension>\r
81                 </xs:simpleContent>\r
82         </xs:complexType>\r
83         <!-- DateTime -->\r
84         <xs:complexType name="DateTime">\r
85                 <xs:choice minOccurs="0" maxOccurs="unbounded">\r
86                         <xs:element name="dateTime" type="DateTimeValue" />\r
87                         <xs:element name="description" type="description" />\r
88                         <xs:group ref="ex:customElements" />\r
89                 </xs:choice>\r
90         </xs:complexType>\r
91         <xs:complexType name="DateTimeValue">\r
92                 <xs:simpleContent>\r
93                         <xs:extension base="DateTimeString">\r
94                                 <xs:attributeGroup ref="ag:DateTimeValue" />\r
95                                 <xs:attributeGroup ref="ex:customAttributes" />\r
96                         </xs:extension>\r
97                 </xs:simpleContent>\r
98         </xs:complexType>\r
99         <!-- Regular expresion from Christian Klaue -->\r
100         <xs:simpleType name="DateTimeString">\r
101                 <xs:restriction base="CharacterString">\r
102                         <xs:pattern value="([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]|[0-9][1-9][0-9]{2}|[1-9][0-9]{3})(\-(0[1-9]|1[0-2])(\-(0[1-9]|[1-2][0-9]|3[0-1])(T([0-1][0-9]|2[0-3])(:[0-5][0-9](:[0-5][0-9](\.[0-9]{1,}(Z|((\+|\-)([0-1][0-9]|2[0-3]):[0-5][0-9]))?)?)?)?)?)?)?" />\r
103                 </xs:restriction>\r
104         </xs:simpleType>\r
105         <!-- Duration -->\r
106         <xs:complexType name="Duration">\r
107                 <xs:choice minOccurs="0" maxOccurs="unbounded">\r
108                         <xs:element name="duration" type="DurationValue" />\r
109                         <xs:element name="description" type="description" />\r
110                         <xs:group ref="ex:customElements" />\r
111                 </xs:choice>\r
112         </xs:complexType>\r
113         <xs:complexType name="DurationValue">\r
114                 <xs:simpleContent>\r
115                         <xs:extension base="DurationString">\r
116                                 <xs:attributeGroup ref="ag:DurationValue" />\r
117                                 <xs:attributeGroup ref="ex:customAttributes" />\r
118                         </xs:extension>\r
119                 </xs:simpleContent>\r
120         </xs:complexType>\r
121         <!-- Regular expresion from Christian Klaue -->\r
122         <xs:simpleType name="DurationString">\r
123                 <xs:restriction base="CharacterString">\r
124                         <xs:pattern value="P([0-9]{1,}Y){0,1}([0-9]{1,}M){0,1}([0-9]{1,}D){0,1}(T([0-9]{1,}H){0,1}([0-9]{1,}M){0,1}([0-9]{1,}(\.[0-9]{1,}){0,1}S){0,1}){0,1}" />\r
125                 </xs:restriction>\r
126         </xs:simpleType>\r
127 </xs:schema>\r