Structuration des exercices composites
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
lun., 23 janv. 2012 18:59:27 +0100
changeset 77 4690abab3daa
parent 76 8117ef722ec4
child 78 6cab31fd40ee
Structuration des exercices composites
RelaxNG/publiquiz.rnc
Xml/Quiz/composite.xml
--- a/RelaxNG/publiquiz.rnc	lun. janv. 23 00:06:09 2012 +0100
+++ b/RelaxNG/publiquiz.rnc	lun. janv. 23 18:59:27 2012 +0100
@@ -157,11 +157,19 @@
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ composite ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+# ~~~~~~ composite
 composite = element composite { composite.content }
 
 composite.content =
-   (instructions?, engine),
-   (instructions?, engine)+
+   composite.quiz,
+   composite.quiz+
+
+# ~~~~~~ composite.quiz
+composite.quiz = element quiz { composite.quiz.content }
+
+composite.quiz.content =
+   instructions?,
+   engine
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ help ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
--- a/Xml/Quiz/composite.xml	lun. janv. 23 00:06:09 2012 +0100
+++ b/Xml/Quiz/composite.xml	lun. janv. 23 18:59:27 2012 +0100
@@ -3,7 +3,7 @@
 <publiquiz version="1.0">
   <quiz xml:id="composite" xml:lang="fr">
     <head>
-      <title>Assemblage d'exercices</title>
+      <title>Exercice composite</title>
     </head>
 
     <instructions>
@@ -11,35 +11,54 @@
     </instructions>
 
     <composite>
-      <instructions>
-        <p>abeille</p>
-      </instructions>
-      <choices type="radio">
-        <wrong>gastéropode</wrong>
-        <right>insecte</right>
-        <wrong>mollusque</wrong>
-      </choices>
+      <quiz>
+        <instructions>
+          <p>abeille</p>
+        </instructions>
+        <choices type="radio">
+          <wrong>gastéropode</wrong>
+          <right>insecte</right>
+          <wrong>mollusque</wrong>
+        </choices>
+      </quiz>
 
-      <instructions>
-        <p>aigle</p>
-      </instructions>
-      <choices type="check">
-        <right>oiseau</right>
-        <wrong>passereau</wrong>
-        <wrong>charognard</wrong>
-        <right>rapace</right>
-      </choices>
+      <quiz>
+        <instructions>
+          <p>aigle</p>
+        </instructions>
+        <choices type="check">
+          <right>oiseau</right>
+          <wrong>passereau</wrong>
+          <wrong>charognard</wrong>
+          <right>rapace</right>
+        </choices>
+      </quiz>
 
-      <instructions>
-        <p>albatros</p>
-      </instructions>
-      <point type="radio">
-        <p>
-          <right>oiseau</right>_/
-          <wrong>rongeur</wrong> /
-          <wrong>reptile</wrong>
-        </p>
-      </point>
+      <quiz>
+        <instructions>
+          <p>albatros</p>
+        </instructions>
+        <point type="radio">
+          <p>
+            <right>oiseau</right> /
+            <wrong>rongeur</wrong> /
+            <wrong>reptile</wrong>
+          </p>
+        </point>
+      </quiz>
+
+      <quiz>
+        <instructions>
+          <p>albatros</p>
+        </instructions>
+        <blanks type="select">
+          <wrongs>
+            <wrong>reptile</wrong>
+            <wrong>oiseaux</wrong>
+          </wrongs>
+          <p>Catégorie : <blank>mammifère</blank></p>
+        </blanks>
+      </quiz>
     </composite>
   </quiz>
 </publiquiz>