Skip to content

Commit b10e3d6

Browse files
committed
https://github.com/elmsln/issues/issues/1612
1 parent baf17c2 commit b10e3d6

File tree

9 files changed

+1109
-7
lines changed

9 files changed

+1109
-7
lines changed

system/backend/php/lib/HAXCMSSite.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ public function getManagedTemplateFiles() {
337337
'robots' => 'robots.txt',
338338
'sw' => 'service-worker.js',
339339
'outdated' => 'assets/upgrade-browser.html',
340+
'imsmdrootv1p2p1' => 'imsmd_rootv1p2p1.xsd',
341+
'imscprootv1p1p2' => 'imscp_rootv1p1p2.xsd',
342+
'adlcprootv1p2' => 'adlcp_rootv1p2.xsd',
343+
'imsxml' => 'ims_xml.xsd',
344+
'imsmanifest' => 'imsmanifest.xml',
340345
);
341346
}
342347
/**
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<?xml version="1.0"?>
2+
<!-- filename=adlcp_rootv1p2.xsd -->
3+
<!-- Conforms to w3c http://www.w3.org/TR/xmlschema-1/ 2000-10-24-->
4+
5+
<xsd:schema xmlns="http://www.adlnet.org/xsd/adlcp_rootv1p2"
6+
targetNamespace="http://www.adlnet.org/xsd/adlcp_rootv1p2"
7+
xmlns:xml="http://www.w3.org/XML/1998/namespace"
8+
xmlns:imscp="http://www.imsproject.org/xsd/imscp_rootv1p1p2"
9+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
10+
elementFormDefault="unqualified"
11+
version="ADL Version 1.2">
12+
13+
<xsd:import namespace="http://www.imsproject.org/xsd/imscp_rootv1p1p2"
14+
schemaLocation="imscp_rootv1p1p2.xsd"/>
15+
16+
<xsd:element name="location" type="locationType"/>
17+
<xsd:element name="prerequisites" type="prerequisitesType"/>
18+
<xsd:element name="maxtimeallowed" type="maxtimeallowedType"/>
19+
<xsd:element name="timelimitaction" type="timelimitactionType"/>
20+
<xsd:element name="datafromlms" type="datafromlmsType"/>
21+
<xsd:element name="masteryscore" type="masteryscoreType"/>
22+
23+
24+
<xsd:element name="schema" type="newSchemaType"/>
25+
<xsd:simpleType name="newSchemaType">
26+
<xsd:restriction base="imscp:schemaType">
27+
<xsd:enumeration value="ADL SCORM"/>
28+
</xsd:restriction>
29+
</xsd:simpleType>
30+
31+
<xsd:element name="schemaversion" type="newSchemaversionType"/>
32+
<xsd:simpleType name="newSchemaversionType">
33+
<xsd:restriction base="imscp:schemaversionType">
34+
<xsd:enumeration value="1.2"/>
35+
</xsd:restriction>
36+
</xsd:simpleType>
37+
38+
39+
<xsd:attribute name="scormtype">
40+
<xsd:simpleType>
41+
<xsd:restriction base="xsd:string">
42+
<xsd:enumeration value="asset"/>
43+
<xsd:enumeration value="sco"/>
44+
</xsd:restriction>
45+
</xsd:simpleType>
46+
</xsd:attribute>
47+
48+
<xsd:simpleType name="locationType">
49+
<xsd:restriction base="xsd:string">
50+
<xsd:maxLength value="2000"/>
51+
</xsd:restriction>
52+
</xsd:simpleType>
53+
54+
55+
<xsd:complexType name="prerequisitesType">
56+
<xsd:simpleContent>
57+
<xsd:extension base="prerequisiteStringType">
58+
<xsd:attributeGroup ref="attr.prerequisitetype"/>
59+
</xsd:extension>
60+
</xsd:simpleContent>
61+
</xsd:complexType>
62+
63+
<xsd:attributeGroup name="attr.prerequisitetype">
64+
<xsd:attribute name="type" use="required">
65+
<xsd:simpleType>
66+
<xsd:restriction base="xsd:string">
67+
<xsd:enumeration value="aicc_script"/>
68+
</xsd:restriction>
69+
</xsd:simpleType>
70+
</xsd:attribute>
71+
</xsd:attributeGroup>
72+
73+
<xsd:simpleType name="maxtimeallowedType">
74+
<xsd:restriction base="xsd:string">
75+
<xsd:maxLength value="13"/>
76+
</xsd:restriction>
77+
</xsd:simpleType>
78+
79+
<xsd:simpleType name="timelimitactionType">
80+
<xsd:restriction base="stringType">
81+
<xsd:enumeration value="exit,no message"/>
82+
<xsd:enumeration value="exit,message"/>
83+
<xsd:enumeration value="continue,no message"/>
84+
<xsd:enumeration value="continue,message"/>
85+
</xsd:restriction>
86+
</xsd:simpleType>
87+
88+
<xsd:simpleType name="datafromlmsType">
89+
<xsd:restriction base="xsd:string">
90+
<xsd:maxLength value="255"/>
91+
</xsd:restriction>
92+
</xsd:simpleType>
93+
94+
<xsd:simpleType name="masteryscoreType">
95+
<xsd:restriction base="xsd:string">
96+
<xsd:maxLength value="200"/>
97+
</xsd:restriction>
98+
</xsd:simpleType>
99+
100+
<xsd:simpleType name="stringType">
101+
<xsd:restriction base="xsd:string"/>
102+
</xsd:simpleType>
103+
104+
<xsd:simpleType name="prerequisiteStringType">
105+
<xsd:restriction base="xsd:string">
106+
<xsd:maxLength value="200"/>
107+
</xsd:restriction>
108+
</xsd:simpleType>
109+
110+
</xsd:schema>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="UTF-8"?><!-- filename=ims_xml.xsd --><xsd:schema xmlns="http://www.w3.org/XML/1998/namespace" targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <!-- 2001-02-22 edited by Thomas Wason IMS Global Learning Consortium, Inc. --> <xsd:annotation> <xsd:documentation>In namespace-aware XML processors, the &quot;xml&quot; prefix is bound to the namespace name http://www.w3.org/XML/1998/namespace.</xsd:documentation> <xsd:documentation>Do not reference this file in XML instances</xsd:documentation> <xsd:documentation>Schawn Thropp: Changed the uriReference type to string type</xsd:documentation> </xsd:annotation> <xsd:attribute name="lang" type="xsd:language"> <xsd:annotation> <xsd:documentation>Refers to universal XML 1.0 lang attribute</xsd:documentation> </xsd:annotation> </xsd:attribute> <xsd:attribute name="base" type="xsd:string"> <xsd:annotation> <xsd:documentation>Refers to XML Base: http://www.w3.org/TR/xmlbase</xsd:documentation> </xsd:annotation> </xsd:attribute> <xsd:attribute name="link" type="xsd:string"/></xsd:schema>

0 commit comments

Comments
 (0)