a3747096a9adcba340351fa55a3d32156d4c0efd
[atutor.git] / docs / mods / _core / imscp / domainProfile_1 / 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/imscc/LOM/unique" xmlns:ex="http://ltsc.ieee.org/xsd/imscc/LOM/extend" xmlns="http://ltsc.ieee.org/xsd/imscc/LOM" targetNamespace="http://ltsc.ieee.org/xsd/imscc/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_m_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/imscc/LOM/unique" schemaLocation="./unique/loose.xsd" />\r
36         <xs:import namespace="http://ltsc.ieee.org/xsd/imscc/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" minOccurs="0" maxOccurs="0"><xs:annotation>\r
72                     <xs:documentation xml:lang="en">explanation: No custom elements are allowed.</xs:documentation>\r
73                 </xs:annotation>\r
74         </xs:group>\r
75                 </xs:choice>\r
76                 <xs:attributeGroup ref="ex:customAttributes" />\r
77         </xs:complexType>\r
78         <xs:complexType name="LangString">\r
79                 <xs:simpleContent>\r
80                         <xs:extension base="CharacterString">\r
81                                 <xs:attribute name="language" type="xs:language" />\r
82                                 <xs:attributeGroup ref="ex:customAttributes" />\r
83                         </xs:extension>\r
84                 </xs:simpleContent>\r
85         </xs:complexType>\r
86         <!-- DateTime -->\r
87         <xs:complexType name="DateTime">\r
88                 <xs:choice minOccurs="0" maxOccurs="unbounded">\r
89                         <xs:element name="dateTime" type="DateTimeValue" />\r
90                         <xs:element name="description" type="description" />\r
91                         <xs:group ref="ex:customElements" />\r
92                 </xs:choice>\r
93         </xs:complexType>\r
94         <xs:complexType name="DateTimeValue">\r
95                 <xs:simpleContent>\r
96                         <xs:extension base="DateTimeString">\r
97                                 <xs:attributeGroup ref="ag:DateTimeValue" />\r
98                                 <xs:attributeGroup ref="ex:customAttributes" />\r
99                         </xs:extension>\r
100                 </xs:simpleContent>\r
101         </xs:complexType>\r
102         <!-- Regular expresion from Christian Klaue -->\r
103         <xs:simpleType name="DateTimeString">\r
104                 <xs:restriction base="CharacterString">\r
105                         <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
106                 </xs:restriction>\r
107         </xs:simpleType>\r
108         <!-- Duration -->\r
109         <xs:complexType name="Duration">\r
110                 <xs:choice minOccurs="0" maxOccurs="unbounded">\r
111                         <xs:element name="duration" type="DurationValue" />\r
112                         <xs:element name="description" type="description" />\r
113                         <xs:group ref="ex:customElements" />\r
114                 </xs:choice>\r
115         </xs:complexType>\r
116         <xs:complexType name="DurationValue">\r
117                 <xs:simpleContent>\r
118                         <xs:extension base="DurationString">\r
119                                 <xs:attributeGroup ref="ag:DurationValue" />\r
120                                 <xs:attributeGroup ref="ex:customAttributes" />\r
121                         </xs:extension>\r
122                 </xs:simpleContent>\r
123         </xs:complexType>\r
124         <!-- Regular expresion from Christian Klaue -->\r
125         <xs:simpleType name="DurationString">\r
126                 <xs:restriction base="CharacterString">\r
127                         <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
128                 </xs:restriction>\r
129         </xs:simpleType>\r
130 </xs:schema>\r