updated main IMS schemas
[acontent.git] / docs / home / ims / imscp_v1p2_constraintsDocument.scmt
index e23040d..0ee9287 100644 (file)
   <!--***********************************************************************************************-->\r
 \r
 \r
+  <pattern name="pattern_2">\r
+    <rule context="ims:organizations/ims:organization//ims:item">\r
+      <assert test="not(@isvisible='false') or count(./ims:item)=count(./ims:item[@isvisible='false'])">Assertion failed for pattern_2. If an item is invisible, its descendants must be invisible too.(#S02)</assert>\r
+    </rule>\r
+  </pattern>\r
+\r
   <pattern name="pattern_3">\r
     <rule context="ims:manifest/ims:resources/ims:resource/ims:dependency">\r
       <assert test="(not(../@type='associatedcontent/imscc_xmlv1p0/learning-application-resource')) or (current()/@identifierref = /ims:manifest/ims:resources/ims:resource[@type='webcontent']/@identifier)">Assertion failed for pattern_3. A Resource object which is a Learning Object associated resource may contain Dependency objects which reference Resource objects with Type 'webcontent'.(#S03)</assert>\r
     </rule>\r
   </pattern>\r
 \r
+<!-- Reference to SCORM removed\r
+  <pattern name="pattern_8">\r
+    <rule context="ims:manifest/ims:resources/ims:resource">\r
+      <assert test="not(./@type='imscc_xmlv1p0/scorm') or (count(./ims:file) = 1 and count(./ims:dependency)=0 and count(./@href)=0)">Error: Assertion validation failed for pattern_8:For SCORM resources the Resource object must contain a single File object which references the SCORM package interchange file.(#S08)</assert>\r
+    </rule>\r
+  </pattern>\r
+  -->\r
+<!-- TI references removed\r
+  <pattern name="pattern_9">\r
+    <rule context="ims:manifest/ims:resources/ims:resource">\r
+      <assert test="not(./@type='imstiptdc_xmlv1p0') or (count(./ims:file) = 1 and count(./ims:dependency)=1 and count(./@href)=0)">Error: Assertion validation failed for pattern_9: For TI Deployment Context Resources the Resource object must contain a single File object which references the TI deployment context XML file. It must have a single dependency which references a Resource object with Type 'imstiptdd_xmlv1p0'. This represents the Tools Interoperabilty Deployment Descriptor.The TI Deployment Context Resource must not have any href attribute(#S09)</assert>\r
+    </rule>\r
+  </pattern>\r
+\r
+\r
+  <pattern name="pattern_10">\r
+    <rule context="ims:manifest/ims:resources/ims:resource">\r
+      <assert test="not(./@type='imstiptdd_xmlv1p0') or (count(./ims:file) = 1 and count(./ims:dependency)=0 and count(./@href)=0)">Error: Assertion validation failed for pattern_9: For Deployment Descriptor Resources the Resource object must contain a single File object which references the TI deployment descriptor XML file. This file must conform to the schema http://www.imsglobal.org/services/cc/imsti_ptdd_v1p0. The Deployment Descriptor Resource must have neither a dependency nor an href attribute.(#S10)</assert>\r
+    </rule>\r
+  </pattern>\r
+-->\r
 \r
   <pattern name="pattern_11a">\r
     <rule context="ims:manifest/ims:resources/ims:resource">\r
       <assert test="not(./@type='imsqti_xmlv1p2/imscc_xmlv1p0/assessment') or (count(./ims:file) = 1 and count(./@href)=0)">Error: Assertion validation failed for pattern_11a: For Assessment resources the Resource object must contain a single File object which references the QTI XML file. This file must conform to the IMS CC profile of QTI 1.2.1. The profile is contained in the package of this profile as imscc_q*.zip. The derived schema of this QTI profile is in the package of this profile with the name ims_qtiasiv1p2_localised.xsd. The resource must not have an href attribute(#S11a)</assert>\r
     </rule>\r
   </pattern>\r
-\r
+<!--\r
+       The following pattern has been broken up into pattern 11b1-11b4 for better readability of reports\r
+  <pattern name="pattern_11b">\r
+    <rule context="ims:manifest/ims:resources/ims:resource">\r
+      <assert test="not(./@type='imsqti_xmlv1p2/imscc_xmlv1p0/question-bank') or (count(./ims:file) = 1 and count(./@href)=0 and not(//ims:item[@identifierref]=./@identifier) and count(//ims:resource[@type='imsqti_xmlv1p2/imscc_xmlv1p0/question-bank'])=1)">Error: Assertion validation failed for pattern_11b: For Question Bank resources the Resource object must contain a single File object which references the QTI XML file. This file must conform to the IMS CC profile of QTI 1.2.1. The profile is contained in the package of this profile as imscc_q*.zip. The derived schema of this QTI profile is in the package of this profile with the name ims_qtiasiv1p2_localised.xsd. The resource must not have an href attribute. Moreover a Question Bank Resource must not be referenced from an item. There can be only one Questionbank Resource in a cartridge.(#S11b)</assert>\r
+    </rule>\r
+  </pattern>\r
+-->\r
   <pattern name="pattern_11b1">\r
     <rule context="ims:manifest/ims:resources/ims:resource">\r
       <assert test="not(./@type='imsqti_xmlv1p2/imscc_xmlv1p0/question-bank') or (count(./ims:file) = 1 )">Error: Assertion validation failed for pattern_11b1: For Question Bank resources the Resource object must contain a single File object which references the QTI XML file. (#S11b1)</assert>\r
     </rule>\r
   </pattern>\r
 \r
+<!-- TI reference removed\r
+  <pattern name="pattern_13">\r
+    <rule context="ims:manifest/ims:resources/ims:resource/ims:dependency">\r
+      <assert test="(not(../@type='imstiptdc_xmlv1p0')) or (current()/@identifierref = /ims:manifest/ims:resources/ims:resource[@type='imstiptdd_xmlv1p0']/@identifier)">Assertion failed for pattern_13. A Resource object which is a Deployment Context may contain a single Dependency object which reference Resource objects which describe a Deployment descriptor.(#S13)</assert>\r
+    </rule>\r
+  </pattern>\r
+-->\r
+\r
   <pattern name="pattern_14">\r
     <rule context="ims:manifest/ims:resources/ims:resource/ims:dependency">\r
       <assert test="(not(../@type='imsqti_xmlv1p2/imscc_xmlv1p0/assessment')) or (current()/@identifierref = /ims:manifest/ims:resources/ims:resource[@type='webcontent']/@identifier) or (current()/@identifierref = /ims:manifest/ims:resources/ims:resource[@type='associatedcontent/imscc_xmlv1p0/learning-application-resource']/@identifier)">Assertion failed for pattern_14. A Resource object which is an assessment may contain Dependency objects which reference Resource objects with Type 'webcontent' or 'associatedcontent/imscc_xmlv1p0/learning-application-resource'.(#S14)</assert>\r