326003090c44445fc370359ef11660682080bb5d
[acontent.git] / docs / home / ims / imscp_v1p2.xsd
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.imsglobal.org/xsd/imscp_v1p1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.imsglobal.org/xsd/imscp_v1p1" version="IMS CP 1.2" elementFormDefault="qualified" attributeFormDefault="unqualified">\r
3     <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" />\r
4     <xs:annotation>\r
5         <xs:documentation>\r
6             XSD Data File Information\r
7             -------------------------\r
8             Author:       CP1.2 Project Team\r
9             Date:         31st October, 2006\r
10             Version:      2.0\r
11             Status:       CM/DN Release\r
12             Description:  This is a normative representation of the IMS CP 1.2 Information Model for binding \r
13                           purposes.  Read the corresponding IMS CP Information Model for the Platform \r
14                           Independent Model representation.\r
15 \r
16             History:      This is version 1 of the IMS CP v1.2 XSD.  It directly supercedes IMS CP v1.1.4 XSD.\r
17                           Note that the target namespace has NOT been changed.\r
18                           Apart from the functional additions, the main structural changes are:\r
19                           (1) All of the elements and attributes are defined as local to their host object;\r
20                           (2) Comments have been added to the complexType definitions.\r
21 \r
22             Copyright:    2006 (c) IMS Global Learning Consortium Inc.  All Rights Reserved.\r
23                           IMS Global Learning Consortium, Inc. (IMS/GLC) is publishing the information\r
24                           contained in this binding ("Specification") for purposes of scientific\r
25                           experimental and scholarly collaboration only.  IMS/GLC makes no warranty or \r
26                           representation regarding the accuracy or completeness of the Specification.\r
27                           This material is provided on an "As Is" and "As Available basis".\r
28                           The Specification is at all times subject to change and revision without\r
29                           notice. It is your sole responsibility to evaluate the usefulness, accuracy\r
30                           and completeness of the Specification as it relates to you.  IMS/GLC would\r
31                           appreciate receiving your comments and suggestions.  Please contact IMS/GLC\r
32                           through our website at: http://www.imsglobal.org.\r
33 \r
34             Source XSLT File Information\r
35             ----------------------------\r
36             XSL Generator:    UMLtoXSDTransformv0p7.xsl\r
37             XSLT Processor:   Xalan\r
38             Release:          1.0 Beta 1\r
39             Date:             30th November, 2005\r
40 \r
41             Auto-generation Tool\r
42             --------------------\r
43             This WSDL/XSD was auto-generated using the IMS WSDL/XSD auto-generation tool.  While every attempt\r
44             has been made to ensure that this tool auto-generates the XSDs correctly, users should be aware\r
45             that this is an experimental tool.  Permission is given to make use of this tool.  IMS makes no\r
46             claim on the materials created by third party users of this tool.  Details on how to use this tool\r
47             are contained in the IMS document: "IMS General Web Services: WSDL/XSD Binding Auto-generation"\r
48             available at the IMS web-site.\r
49             Tool Copyright:  2005 (c) IMS Global Learning Consortium Inc.  All Rights Reserved.\r
50         </xs:documentation>\r
51     </xs:annotation>\r
52 \r
53         <!-- Generate Global Attributes ***********************************************************************  -->\r
54 \r
55         <!-- =====================================  -->\r
56 \r
57         <!-- Generate Namespaced extension Group  *************************************************************  -->\r
58 \r
59             <xs:group name="grpStrict.any">\r
60                 <xs:annotation>\r
61                     <xs:documentation>\r
62                         Any namespaced element from any namespace may be included within an "any" element.\r
63                         The namespace for the imported element must be defined in the instance, and the schema must be imported.\r
64                         The extension has a definition of "strict" i.e. they must have their own namespace.\r
65                     </xs:documentation>\r
66                 </xs:annotation>\r
67                 <xs:sequence>\r
68                     <xs:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded" />\r
69                 </xs:sequence>\r
70             </xs:group>\r
71 \r
72         <!-- =====================================  -->\r
73 \r
74         <!-- Generate the enumerated simpleType declarations **************************************************  -->\r
75 \r
76         <!-- =====================================  -->\r
77 \r
78         <!-- Generate the simpleType elements based IMS data-types  *******************************************  -->\r
79 \r
80         <!-- =====================================  -->\r
81 \r
82         <!-- Generate the derived data-type elements **********************************************************  -->\r
83 \r
84         <!-- =====================================  -->\r
85 \r
86         <!-- Generate the data-type elements ******************************************************************  -->\r
87 \r
88             <xs:complexType name="Manifest.Type">\r
89                 <xs:annotation>\r
90                     <xs:documentation>\r
91                         A manifest element is a container for data structures whose contents describe a \r
92                         semantically complete instance of the IMS Content Packaging Information Model.  \r
93                         \r
94                         A manifest element may contain and reference child manifest elements \r
95                         in the same IMS Manifest document.  The root manifest element defines an \r
96                         entire IMS Package.  A child manifest element defines a semantically complete \r
97                         subset of that Package.\r
98 \r
99                         <p>Represents a binding of the kinds of objects defined as children of ims-cp-imManifest : Manifest.[ ManifestMetadata, Organizations, Resources, Manifest, Extension ].</p>\r
100                     </xs:documentation>\r
101                 </xs:annotation>\r
102                 <xs:sequence>\r
103                     <xs:element name="metadata" type="ManifestMetadata.Type" minOccurs="0" maxOccurs="1" />\r
104                     <xs:element name="organizations" type="Organizations.Type" minOccurs="1" maxOccurs="1" />\r
105                     <xs:element name="resources" type="Resources.Type" minOccurs="1" maxOccurs="1" />\r
106                     <xs:element name="manifest" type="Manifest.Type" minOccurs="0" maxOccurs="unbounded" />\r
107                     <xs:group ref="grpStrict.any" />\r
108                 </xs:sequence>\r
109                 <xs:attribute name="identifier" use="required" type="xs:ID" />\r
110                 <xs:attribute name="version" use="optional" type="xs:string" />\r
111                 <xs:attribute ref="xml:base" use="optional" />\r
112                 <xs:anyAttribute namespace="##other" processContents="strict" />\r
113             </xs:complexType>\r
114 \r
115             <xs:complexType name="Metadata.Type">\r
116                 <xs:annotation>\r
117                     <xs:documentation>\r
118                         An instance of the metadata element contains data structures \r
119                         that declare descriptive information about a metadata element's \r
120                         parent only.\r
121                         \r
122                         One or more different metadata models may be declared as\r
123                         child extensions of a metadata element.\r
124 \r
125                         <p>Represents a binding of the kinds of child objects defined for ims-cp-imMetadata:  Metadata.[ Extension ].</p>\r
126                     </xs:documentation>\r
127                 </xs:annotation>\r
128                 <xs:sequence>\r
129                     <xs:element name="schema" type="xs:string" minOccurs="0" maxOccurs="1" />\r
130                     <xs:element name="schemaversion" type="xs:string" minOccurs="0" maxOccurs="1" />\r
131                     <xs:group ref="grpStrict.any" />\r
132                 </xs:sequence>\r
133             </xs:complexType>\r
134 \r
135             <xs:complexType name="Organizations.Type">\r
136                 <xs:annotation>\r
137                     <xs:documentation>\r
138                         The organizations element is a container for all data structures \r
139                         that describe the way or ways that information encapsulated by \r
140                         its parent manifest element is structured. \r
141 \r
142                         <p>Represents of binding of the child objects of ims-cp-imOrganizations: Organizations.[ Organization, Extension ].</p>\r
143                     </xs:documentation>\r
144                 </xs:annotation>\r
145                 <xs:sequence>\r
146                     <xs:element name="organization" type="Organization.Type" minOccurs="0" maxOccurs="unbounded" />\r
147                     <xs:group ref="grpStrict.any" />\r
148                 </xs:sequence>\r
149                 <xs:attribute name="default" use="optional" type="xs:IDREF" />\r
150                 <xs:anyAttribute namespace="##other" processContents="strict" />\r
151             </xs:complexType>\r
152 \r
153             <xs:complexType name="Resources.Type">\r
154                 <xs:annotation>\r
155                     <xs:documentation>\r
156                         The Resources element is a container for data structures containing \r
157                         references  to one or more assets.  Asset references may be grouped \r
158                         within a containing resources element in whatever manner seems best.\r
159                           \r
160                         The scope of referenced assets is specific to a resources element's parent \r
161                         manifest element only. \r
162 \r
163                         <p>Represents a binding of the kinds of child objects defined for ims-cp-imResources: Resources.[ Resource, Extension ].</p>\r
164                     </xs:documentation>\r
165                 </xs:annotation>\r
166                 <xs:sequence>\r
167                     <xs:element name="resource" type="Resource.Type" minOccurs="0" maxOccurs="unbounded" />\r
168                     <xs:group ref="grpStrict.any" />\r
169                 </xs:sequence>\r
170                 <xs:attribute ref="xml:base" use="optional" />\r
171                 <xs:anyAttribute namespace="##other" processContents="strict" />\r
172             </xs:complexType>\r
173 \r
174             <xs:complexType name="Organization.Type">\r
175                 <xs:annotation>\r
176                     <xs:documentation>\r
177                         An organization element is a container for all data structures relating \r
178                         to a particular way or view that information encapsulated by a \r
179                         grandparent manifest object is structured.  \r
180                         \r
181                         Multiple organization elements within the same parent organizations \r
182                         element are equivalent in purpose: Each shows a different way for \r
183                         structuring the same information declared within a grandparent \r
184                         manifest object.\r
185 \r
186                         <p>Represents a binding of the kinds of child objects defined for ims-cp-Organization: Organization[ Title, Item, Metadata, Extension ].</p>\r
187                     </xs:documentation>\r
188                 </xs:annotation>\r
189                 <xs:sequence>\r
190                     <xs:element name="title" type="xs:string" minOccurs="0" maxOccurs="1" />\r
191                     <xs:element name="item" type="Item.Type" minOccurs="1" maxOccurs="unbounded" />\r
192                     <xs:element name="metadata" type="Metadata.Type" minOccurs="0" maxOccurs="1" />\r
193                     <xs:group ref="grpStrict.any" />\r
194                 </xs:sequence>\r
195                 <xs:attribute name="identifier" use="required" type="xs:ID" />\r
196                 <xs:attribute name="structure" use="optional" type="xs:string" />\r
197                 <xs:anyAttribute namespace="##other" processContents="strict" />\r
198             </xs:complexType>\r
199 \r
200             <xs:complexType name="Resource.Type">\r
201                 <xs:annotation>\r
202                     <xs:documentation>\r
203                         A resource element is a container for a particular asset \r
204                         or collection of assets.  A resource may contain references \r
205                         to assets that are all of the same type or different types (i.e., file formats).\r
206                         \r
207                         The scope or boundary of an IMS Package is defined by the asset \r
208                         references collected into all resources containers associated with the\r
209                         root manifest element, whether as a child, direcdt descendant, or externally \r
210                         linked descendant. \r
211 \r
212                         <p>Represents a binding of the kinds of child objects defined for ims-cp-imResource: Resource.[ Metadata, File, Dependency, Extension ].</p>\r
213                     </xs:documentation>\r
214                 </xs:annotation>\r
215                 <xs:sequence>\r
216                     <xs:element name="metadata" type="Metadata.Type" minOccurs="0" maxOccurs="1" />\r
217                     <xs:element name="file" type="File.Type" minOccurs="0" maxOccurs="unbounded" />\r
218                     <xs:element name="dependency" type="Dependency.Type" minOccurs="0" maxOccurs="unbounded" />\r
219                     <xs:group ref="grpStrict.any" />\r
220                 </xs:sequence>\r
221                 <xs:attribute name="identifier" use="required" type="xs:ID" />\r
222                 <xs:attribute name="type" use="required" type="xs:string" />\r
223                 <xs:attribute ref="xml:base" use="optional" />\r
224                 <xs:attribute name="href" use="optional" type="xs:anyURI" />\r
225                 <xs:anyAttribute namespace="##other" processContents="strict" />\r
226             </xs:complexType>\r
227 \r
228             <xs:complexType name="Item.Type">\r
229                 <xs:annotation>\r
230                     <xs:documentation>\r
231                         An item element represents a structural node in a particular organization.  \r
232                         An item element may be a parent or sibling of other Item elements, \r
233                         each one representing a unique structural node.\r
234                         \r
235                         An organization has no meaning unless it has at least one Item element.\r
236 \r
237                         <p>Represents a binding of the kinds of child objects of ims-cp-imItem: Item.[ Title, Item, Metadata, Extension ].</p>\r
238                     </xs:documentation>\r
239                 </xs:annotation>\r
240                 <xs:sequence>\r
241                     <xs:element name="title" type="xs:string" minOccurs="0" maxOccurs="1" />\r
242                     <xs:element name="item" type="Item.Type" minOccurs="0" maxOccurs="unbounded" />\r
243                     <xs:element name="metadata" type="Metadata.Type" minOccurs="0" maxOccurs="1" />\r
244                     <xs:group ref="grpStrict.any" />\r
245                 </xs:sequence>\r
246                 <xs:attribute name="identifier" use="required" type="xs:ID" />\r
247                 <xs:attribute name="identifierref" use="optional" type="xs:string" />\r
248                 <xs:attribute name="isvisible" use="optional" type="xs:boolean" />\r
249                 <xs:attribute name="parameters" use="optional" type="xs:string" />\r
250                 <xs:anyAttribute namespace="##other" processContents="strict" />\r
251             </xs:complexType>\r
252 \r
253             <xs:complexType name="File.Type">\r
254                 <xs:annotation>\r
255                     <xs:documentation>\r
256                         A file element declares a reference to a single asset.  The reference may\r
257                         be relative to the Package containing the file element or absolute \r
258                         (external to the Package).\r
259                         \r
260                         A file element may contain child extensions declaring alternative references\r
261                          to the same asset as that referenced by the file element's href attribute.\r
262 \r
263                         <p>Represents a binding of the kinds of child objects defined for ims-cp-imFile: File.[ Metadata, Extension ].</p>\r
264                     </xs:documentation>\r
265                 </xs:annotation>\r
266                 <xs:sequence>\r
267                     <xs:element name="metadata" type="Metadata.Type" minOccurs="0" maxOccurs="1" />\r
268                     <xs:group ref="grpStrict.any" />\r
269                 </xs:sequence>\r
270                 <xs:attribute name="href" use="required" type="xs:anyURI" />\r
271                 <xs:anyAttribute namespace="##other" processContents="strict" />\r
272             </xs:complexType>\r
273 \r
274             <xs:complexType name="Dependency.Type">\r
275                 <xs:annotation>\r
276                     <xs:documentation>\r
277                         A dependency element provides a way to associate another collection of \r
278                         asset references within the scope of the dependency element's parent \r
279                         resource element.\r
280                         \r
281                         This element allows the parsimonious declaration of asset references.  \r
282                         Shared asset references can be declared once and associated many \r
283                         times through a Dependency element.\r
284 \r
285                         <p>Represents a binding of the kinds of child objects defined for ims-cp-imDependency: Dependency.[ Extension ].</p>\r
286                     </xs:documentation>\r
287                 </xs:annotation>\r
288                 <xs:sequence>\r
289                     <xs:group ref="grpStrict.any" />\r
290                 </xs:sequence>\r
291                 <xs:attribute name="identifierref" use="required" type="xs:string" />\r
292                 <xs:anyAttribute namespace="##other" processContents="strict" />\r
293             </xs:complexType>\r
294 \r
295             <xs:complexType name="ManifestMetadata.Type">\r
296                 <xs:annotation>\r
297                     <xs:documentation>\r
298                         This metadata element contains data structures that declare \r
299                         descriptive information about an entire Package.\r
300                         \r
301                         One or more different metadata models may be declared as\r
302                         child extensions of a metadata element.\r
303                         \r
304                         The schema and schemaversion children define the kind or collection \r
305                         of metadata models being used.\r
306 \r
307                         <p>Represents a binding of the kinds of child objects defined for ims-cp-imManifestMetadata:  ManifestMetadata.[ Schema, SchemaVersion, MetadataModel ]..</p>\r
308                     </xs:documentation>\r
309                 </xs:annotation>\r
310                 <xs:sequence>\r
311                     <xs:element name="schema" type="xs:string" minOccurs="0" maxOccurs="1" />\r
312                     <xs:element name="schemaversion" type="xs:string" minOccurs="0" maxOccurs="1" />\r
313                     <xs:group ref="grpStrict.any" />\r
314                 </xs:sequence>\r
315             </xs:complexType>\r
316 \r
317         <!-- =====================================  -->\r
318 \r
319         <!-- Declaration of the elements **********************************************************************  -->\r
320 \r
321         <!-- =====================================  -->\r
322 \r
323         <!-- Declaration of the root element(s) ***************************************************************  -->\r
324 \r
325             <xs:element name="manifest" type="Manifest.Type" />\r
326 \r
327         <!-- =====================================  -->\r
328 \r
329 </xs:schema>\r