Gestion des dropzones
authorPatrick PIERRE
mar., 09 avril 2013 19:03:53 +0200
changeset 192 c56f8c6b2868
parent 191 e50ac13ec921
child 193 0de4e60edc15
Gestion des dropzones
RelaxNG/Examples/Quiz/Images/blanks-select_dropzonei01.jpg
RelaxNG/Examples/Quiz/Images/blanks-select_hotspotsi01.jpg
RelaxNG/Examples/Quiz/blanks-select_dropzone.xml
RelaxNG/Examples/Quiz/blanks-select_hotspots.xml
RelaxNG/publiquiz.rnc
Binary file RelaxNG/Examples/Quiz/Images/blanks-select_dropzonei01.jpg has changed
Binary file RelaxNG/Examples/Quiz/Images/blanks-select_hotspotsi01.jpg has changed
--- /dev/null	jeu. janv. 01 00:00:00 1970 +0000
+++ b/RelaxNG/Examples/Quiz/blanks-select_dropzone.xml	mar. avril 09 19:03:53 2013 +0200
@@ -0,0 +1,25 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!-- $Id$ -->
+<publiquiz version="1.0">
+  <quiz id="blanks-select_dropzone">
+    <head>
+      <title>Exercice à trous avec placement sur image</title>
+    </head>
+
+    <instructions>
+      <p>Placez correctement chaque élément de la voiture.</p>
+    </instructions>
+
+    <blanks-select>
+      <media>
+        <image id="blanks-select_dropzonei01">
+          <dropzone x="25%" y="45.5%"><blank>le volant</blank></dropzone>
+          <dropzone x="62%" y="24%"><blank>le pare-brise</blank></dropzone>
+          <dropzone x="63%" y="77%"><blank>le siège</blank></dropzone>
+          <dropzone x="46%" y="68%"><blank>le levier de vitesse</blank></dropzone>
+          <dropzone x="1%" y="25.4%"><blank>le rétroviseur</blank></dropzone>
+        </image>
+      </media>
+    </blanks-select>
+  </quiz>
+</publiquiz>
--- a/RelaxNG/Examples/Quiz/blanks-select_hotspots.xml	mar. avril 09 18:34:13 2013 +0200
+++ /dev/null	jeu. janv. 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<!-- $Id$ -->
-<publiquiz version="1.0">
-  <quiz id="blanks-select_hotspots">
-    <head>
-      <title>Exercice à trous avec placement sur image</title>
-    </head>
-
-    <instructions>
-      <p>Placez correctement chaque élément de la voiture.</p>
-    </instructions>
-
-    <blanks-select>
-      <media>
-        <image id="blanks-select_hotspotsi01">
-          <hotspot x="25%" y="45.5%"><blank>le volant</blank></hotspot>
-          <hotspot x="62%" y="24%"><blank>le pare-brise</blank></hotspot>
-          <hotspot x="63%" y="77%"><blank>le siège</blank></hotspot>
-          <hotspot x="46%" y="68%"><blank>le levier de vitesse</blank></hotspot>
-          <hotspot x="1%" y="25.4%"><blank>le rétroviseur</blank></hotspot>
-        </image>
-      </media>
-    </blanks-select>
-  </quiz>
-</publiquiz>
--- a/RelaxNG/publiquiz.rnc	mar. avril 09 18:34:13 2013 +0200
+++ b/RelaxNG/publiquiz.rnc	mar. avril 09 19:03:53 2013 +0200
@@ -372,17 +372,17 @@
 
 blanks.image.content =
    copyright?,
-   blanks.hotspot*
+   blanks.dropzone*
 
-# ~~~~~~ blanks.hotspot
-blanks.hotspot = element hotspot {
-   blanks.hotspot.attributes, blanks.hotspot.content }
+# ~~~~~~ blanks.dropzone
+blanks.dropzone = element dropzone {
+   blanks.dropzone.attributes, blanks.dropzone.content }
 
-blanks.hotspot.attributes =
+blanks.dropzone.attributes =
    x.attribute
  & y.attribute   
 
-blanks.hotspot.content =
+blanks.dropzone.content =
    blank
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~ choices.right, choices.wrong ~~~~~~~~~~~~~~~~~~~~~~~