adlcp_rootv1p2.xsd 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. <xsd:schema xmlns="http://www.adlnet.org/xsd/adlcp_rootv1p2"
  5. targetNamespace="http://www.adlnet.org/xsd/adlcp_rootv1p2"
  6. xmlns:xml="http://www.w3.org/XML/1998/namespace"
  7. xmlns:imscp="http://www.imsproject.org/xsd/imscp_rootv1p1p2"
  8. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  9. elementFormDefault="unqualified"
  10. version="ADL Version 1.2">
  11. <xsd:import namespace="http://www.imsproject.org/xsd/imscp_rootv1p1p2"
  12. schemaLocation="imscp_rootv1p1p2.xsd"/>
  13. <xsd:element name="location" type="locationType"/>
  14. <xsd:element name="prerequisites" type="prerequisitesType"/>
  15. <xsd:element name="maxtimeallowed" type="maxtimeallowedType"/>
  16. <xsd:element name="timelimitaction" type="timelimitactionType"/>
  17. <xsd:element name="datafromlms" type="datafromlmsType"/>
  18. <xsd:element name="masteryscore" type="masteryscoreType"/>
  19. <xsd:element name="schema" type="newSchemaType"/>
  20. <xsd:simpleType name="newSchemaType">
  21. <xsd:restriction base="imscp:schemaType">
  22. <xsd:enumeration value="ADL SCORM"/>
  23. </xsd:restriction>
  24. </xsd:simpleType>
  25. <xsd:element name="schemaversion" type="newSchemaversionType"/>
  26. <xsd:simpleType name="newSchemaversionType">
  27. <xsd:restriction base="imscp:schemaversionType">
  28. <xsd:enumeration value="1.2"/>
  29. </xsd:restriction>
  30. </xsd:simpleType>
  31. <xsd:attribute name="scormtype">
  32. <xsd:simpleType>
  33. <xsd:restriction base="xsd:string">
  34. <xsd:enumeration value="asset"/>
  35. <xsd:enumeration value="sco"/>
  36. </xsd:restriction>
  37. </xsd:simpleType>
  38. </xsd:attribute>
  39. <xsd:simpleType name="locationType">
  40. <xsd:restriction base="xsd:string">
  41. <xsd:maxLength value="2000"/>
  42. </xsd:restriction>
  43. </xsd:simpleType>
  44. <xsd:complexType name="prerequisitesType">
  45. <xsd:simpleContent>
  46. <xsd:extension base="prerequisiteStringType">
  47. <xsd:attributeGroup ref="attr.prerequisitetype"/>
  48. </xsd:extension>
  49. </xsd:simpleContent>
  50. </xsd:complexType>
  51. <xsd:attributeGroup name="attr.prerequisitetype">
  52. <xsd:attribute name="type" use="required">
  53. <xsd:simpleType>
  54. <xsd:restriction base="xsd:string">
  55. <xsd:enumeration value="aicc_script"/>
  56. </xsd:restriction>
  57. </xsd:simpleType>
  58. </xsd:attribute>
  59. </xsd:attributeGroup>
  60. <xsd:simpleType name="maxtimeallowedType">
  61. <xsd:restriction base="xsd:string">
  62. <xsd:maxLength value="13"/>
  63. </xsd:restriction>
  64. </xsd:simpleType>
  65. <xsd:simpleType name="timelimitactionType">
  66. <xsd:restriction base="stringType">
  67. <xsd:enumeration value="exit,no message"/>
  68. <xsd:enumeration value="exit,message"/>
  69. <xsd:enumeration value="continue,no message"/>
  70. <xsd:enumeration value="continue,message"/>
  71. </xsd:restriction>
  72. </xsd:simpleType>
  73. <xsd:simpleType name="datafromlmsType">
  74. <xsd:restriction base="xsd:string">
  75. <xsd:maxLength value="255"/>
  76. </xsd:restriction>
  77. </xsd:simpleType>
  78. <xsd:simpleType name="masteryscoreType">
  79. <xsd:restriction base="xsd:string">
  80. <xsd:maxLength value="200"/>
  81. </xsd:restriction>
  82. </xsd:simpleType>
  83. <xsd:simpleType name="stringType">
  84. <xsd:restriction base="xsd:string"/>
  85. </xsd:simpleType>
  86. <xsd:simpleType name="prerequisiteStringType">
  87. <xsd:restriction base="xsd:string">
  88. <xsd:maxLength value="200"/>
  89. </xsd:restriction>
  90. </xsd:simpleType>
  91. </xsd:schema>