RelaxNG/publiquiz.rnc
changeset 194 48cf8cfe8b1a
parent 192 c56f8c6b2868
child 209 6b1ee27e6b84
--- 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 ~~~~~~~~~~~~~~~~~~~~~~~