Ajout des exercices avec sons et images
authorPatrick PIERRE
ven., 01 févr. 2013 19:21:20 +0100
changeset 160 e9d1bb4692b5
parent 159 28964e0c2c06
child 161 1f9fa4e74cd0
Ajout des exercices avec sons et images
RelaxNG/Examples/Quiz/Audios/choices-check_audioa01.ogg
RelaxNG/Examples/Quiz/Audios/choices-check_audioa02.ogg
RelaxNG/Examples/Quiz/Audios/choices-check_audioa03.ogg
RelaxNG/Examples/Quiz/Audios/choices-check_audioa04.ogg
RelaxNG/Examples/Quiz/Images/choices-radio_imagei00.png
RelaxNG/Examples/Quiz/Images/choices-radio_imagei01.png
RelaxNG/Examples/Quiz/Images/choices-radio_imagei02.png
RelaxNG/Examples/Quiz/Images/choices-radio_imagei03.png
RelaxNG/Examples/Quiz/choices-check_audio.xml
RelaxNG/Examples/Quiz/choices-radio_image.xml
RelaxNG/publiquiz.rnc
Binary file RelaxNG/Examples/Quiz/Audios/choices-check_audioa01.ogg has changed
Binary file RelaxNG/Examples/Quiz/Audios/choices-check_audioa02.ogg has changed
Binary file RelaxNG/Examples/Quiz/Audios/choices-check_audioa03.ogg has changed
Binary file RelaxNG/Examples/Quiz/Audios/choices-check_audioa04.ogg has changed
Binary file RelaxNG/Examples/Quiz/Images/choices-radio_imagei00.png has changed
Binary file RelaxNG/Examples/Quiz/Images/choices-radio_imagei01.png has changed
Binary file RelaxNG/Examples/Quiz/Images/choices-radio_imagei02.png has changed
Binary file RelaxNG/Examples/Quiz/Images/choices-radio_imagei03.png has changed
--- /dev/null	jeu. janv. 01 00:00:00 1970 +0000
+++ b/RelaxNG/Examples/Quiz/choices-check_audio.xml	ven. févr. 01 19:21:20 2013 +0100
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Id$ -->
+<publiquiz version="1.0">
+  <quiz id="choices-check_audio" xml:lang="fr">
+    <head>
+      <title>Exercice QCM cases à cocher avec sons</title>
+    </head>
+
+    <instructions>
+      <p>Sélectionnez les cris de grenouille parmi ces sons.</p>
+    </instructions>
+
+    <choices-check>
+      <right><audio id="choices-check_audioa01"/></right>
+      <wrong><audio id="choices-check_audioa02"/></wrong>
+      <right><audio id="choices-check_audioa03"/></right>
+      <wrong><audio id="choices-check_audioa04"/></wrong>
+    </choices-check>
+  </quiz>
+</publiquiz>
--- /dev/null	jeu. janv. 01 00:00:00 1970 +0000
+++ b/RelaxNG/Examples/Quiz/choices-radio_image.xml	ven. févr. 01 19:21:20 2013 +0100
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Id$ -->
+<publiquiz version="1.0">
+  <quiz id="choices-radio_image" xml:lang="fr">
+    <head>
+      <title>Exercice QCM radio avec images</title>
+    </head>
+    
+    <instructions>
+      <p>On considère le cube ABCDEFGH.</p>
+      <p>Quel est le patron dont la forme est celle de la pyramide AEEFGH à
+      base carrée et de sommet A ?</p>
+      <media>
+        <image id="choices-radio_imagei00" type="thumbnail"/>
+      </media>
+    </instructions>
+    
+    <choices-radio>
+      <wrong>
+        <image id="choices-radio_imagei01"/>
+        <answer><p>Ce patron est celui d'une pyramide régulière.</p></answer>
+      </wrong>
+      <wrong>
+        <image id="choices-radio_imagei02"/>
+        <answer><p>Ce patron ne peut pas être « refermé ».</p></answer>
+      </wrong>
+      <right>
+        <image id="choices-radio_imagei03"/>
+      </right>
+    </choices-radio>
+  </quiz>
+</publiquiz>
--- a/RelaxNG/publiquiz.rnc	ven. janv. 25 11:26:49 2013 +0100
+++ b/RelaxNG/publiquiz.rnc	ven. févr. 01 19:21:20 2013 +0100
@@ -345,7 +345,7 @@
 
 choices.right.content =
    inlines
- | (p+, help?, answer?)
+ | ((p+ | image | (audio, image?)), help?, answer?)
 
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks.wrongs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~