Binary file RelaxNG/Examples/Quiz/Images/bingo.png has changed
Binary file RelaxNG/Examples/Quiz/Images/bingo_green.png has changed
Binary file RelaxNG/Examples/Quiz/Images/bingo_red.png has changed
--- /dev/null jeu. janv. 01 00:00:00 1970 +0000
+++ b/RelaxNG/Examples/Quiz/pip.xml mer. avril 10 23:13:49 2013 +0200
@@ -0,0 +1,26 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!-- $Id$ -->
+<publiquiz version="1.0">
+ <quiz id="pip">
+ <head>
+ <title>Images dans une image (PIP)</title>
+ </head>
+
+ <instructions>
+ <p>Entoure en vert les nombres multiples de 3 et en rouge ceux multiples
+ de 5.</p>
+ </instructions>
+
+ <pip multiple="true">
+ <image id="bingo">
+ <dropzone x="2.5%" y="28.3%" w="11%" h="11%"></dropzone>
+ <dropzone x="16.1%" y="28.3%" w="11%" h="11%"></dropzone>
+ <dropzone x="30.3%" y="28.3%" w="11%" h="11%"><image id="bingo_green"/></dropzone>
+ <dropzone x="43.9%" y="28.3%" w="11%" h="11%"><image id="bingo_red"/></dropzone>
+ <dropzone x="58.0%" y="28.3%" w="11%" h="11%"><image id="bingo_red"/></dropzone>
+ <dropzone x="72.0%" y="28.3%" w="11%" h="11%"></dropzone>
+ <dropzone x="86.0%" y="28.3%" w="11%" h="11%"><image id="bingo_green"/></dropzone>
+ </image>
+ </pip>
+ </quiz>
+</publiquiz>
--- a/RelaxNG/publiquiz.rnc mer. avril 10 13:24:12 2013 +0200
+++ b/RelaxNG/publiquiz.rnc mer. avril 10 23:13:49 2013 +0200
@@ -102,6 +102,7 @@
| matching
| sort
| categories
+ | pip
| production
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -212,6 +213,16 @@
shorttitle?,
subtitle?
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+pip = element pip { pip.attributes, pip.content }
+
+pip.attributes =
+ multiple.attribute?
+
+pip.content =
+ pip.image
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
production = element production { empty }
@@ -369,21 +380,33 @@
# ~~~~~~ blanks.image
blanks.image = element image { image.attributes, blanks.image.content }
+pip.image = element image { image.attributes, pip.image.content }
blanks.image.content =
copyright?,
blanks.dropzone*
+pip.image.content =
+ pip.dropzone+
-# ~~~~~~ blanks.dropzone
+# ~~~~~~dropzone
blanks.dropzone = element dropzone {
blanks.dropzone.attributes, blanks.dropzone.content }
+pip.dropzone = element dropzone {
+ pip.dropzone.attributes, pip.dropzone.content }
blanks.dropzone.attributes =
x.attribute
& y.attribute
+pip.dropzone.attributes =
+ x.attribute
+ & y.attribute
+ & w.attribute
+ & h.attribute
blanks.dropzone.content =
blank
+pip.dropzone.content =
+ image?
# ~~~~~~~~~~~~~~~~~~~~~~~~ choices.right, choices.wrong ~~~~~~~~~~~~~~~~~~~~~~~