added namesopaces for discussion topics template
[acontent.git] / docs / home / ims / domainProfile_0 / imsccauth_v1p0.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/imsccauth_v1p0" targetNamespace="http://www.imsglobal.org/xsd/imsccauth_v1p0" elementFormDefault="qualified">\r
3 \r
4   <xs:element name="authorizations" type="authorizationsType" />\r
5 \r
6   <xs:complexType name="authorizationsType">\r
7         <xs:sequence>\r
8                 <xs:element name="authorization" type="authorizationType" />\r
9                 <xs:group ref="grpStrict.any" minOccurs="0" maxOccurs="unbounded" />\r
10         </xs:sequence>\r
11         <xs:attribute name="access" type="accessType" use="required" />\r
12     <xs:attribute name="import" type="xs:boolean" default="false" />\r
13   </xs:complexType>\r
14 \r
15   <xs:complexType name="authorizationType">\r
16     <xs:sequence>\r
17       <xs:element name="cartridgeId" type="xs:string" />\r
18       <xs:element name="webservice" type="xs:string" minOccurs="0" />\r
19     </xs:sequence>\r
20   </xs:complexType>\r
21   <xs:simpleType name="accessType">\r
22     <xs:restriction base="xs:string">\r
23       <xs:enumeration value="cartridge" />\r
24       <xs:enumeration value="resource" />\r
25     </xs:restriction>\r
26   </xs:simpleType>\r
27 \r
28     <xs:group name="grpStrict.any">\r
29         <xs:annotation>\r
30             <xs:documentation>\r
31                 This group is defined exactly as in IMS Content Packaging v 1.2.\r
32                 Any namespaced element from any namespace may be included within an "any" element.\r
33                 The namespace for the imported element must be defined in the instance, and the schema must be imported.\r
34                 The extension has a definition of "strict" i.e. they must have their own namespace.\r
35             </xs:documentation>\r
36         </xs:annotation>\r
37         <xs:sequence>\r
38             <xs:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded" />\r
39         </xs:sequence>\r
40     </xs:group>\r
41 \r
42   <xs:attribute name="protected" type="xs:boolean" default="false" />\r
43 \r
44 \r
45 </xs:schema>\r