RelaxNG/publiquiz.rnc
changeset 194 48cf8cfe8b1a
parent 192 c56f8c6b2868
child 209 6b1ee27e6b84
equal deleted inserted replaced
193:0de4e60edc15 194:48cf8cfe8b1a
   100  | blanks-select
   100  | blanks-select
   101  | point
   101  | point
   102  | matching
   102  | matching
   103  | sort
   103  | sort
   104  | categories
   104  | categories
       
   105  | pip
   105  | production
   106  | production
   106 
   107 
   107 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   108 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   108 
   109 
   109 choices-radio = element choices-radio {
   110 choices-radio = element choices-radio {
   209 
   210 
   210 category.head.content =
   211 category.head.content =
   211    title,
   212    title,
   212    shorttitle?,
   213    shorttitle?,
   213    subtitle?
   214    subtitle?
       
   215 
       
   216 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   217 
       
   218 pip = element pip { pip.attributes, pip.content }
       
   219 
       
   220 pip.attributes =
       
   221    multiple.attribute?
       
   222 
       
   223 pip.content =
       
   224    pip.image
   214 
   225 
   215 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   226 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   216 
   227 
   217 production = element production { empty }
   228 production = element production { empty }
   218 
   229 
   367    media.caption?,
   378    media.caption?,
   368    link?
   379    link?
   369 
   380 
   370 # ~~~~~~ blanks.image
   381 # ~~~~~~ blanks.image
   371 blanks.image = element image { image.attributes, blanks.image.content }
   382 blanks.image = element image { image.attributes, blanks.image.content }
       
   383 pip.image = element image { image.attributes, pip.image.content }
   372 
   384 
   373 blanks.image.content =
   385 blanks.image.content =
   374    copyright?,
   386    copyright?,
   375    blanks.dropzone*
   387    blanks.dropzone*
   376 
   388 pip.image.content =
   377 # ~~~~~~ blanks.dropzone
   389    pip.dropzone+
       
   390 
       
   391 # ~~~~~~dropzone
   378 blanks.dropzone = element dropzone {
   392 blanks.dropzone = element dropzone {
   379    blanks.dropzone.attributes, blanks.dropzone.content }
   393    blanks.dropzone.attributes, blanks.dropzone.content }
       
   394 pip.dropzone = element dropzone {
       
   395    pip.dropzone.attributes, pip.dropzone.content }
   380 
   396 
   381 blanks.dropzone.attributes =
   397 blanks.dropzone.attributes =
   382    x.attribute
   398    x.attribute
   383  & y.attribute   
   399  & y.attribute   
       
   400 pip.dropzone.attributes =
       
   401    x.attribute
       
   402  & y.attribute
       
   403  & w.attribute
       
   404  & h.attribute
   384 
   405 
   385 blanks.dropzone.content =
   406 blanks.dropzone.content =
   386    blank
   407    blank
       
   408 pip.dropzone.content =
       
   409    image?
   387 
   410 
   388 # ~~~~~~~~~~~~~~~~~~~~~~~~ choices.right, choices.wrong ~~~~~~~~~~~~~~~~~~~~~~~
   411 # ~~~~~~~~~~~~~~~~~~~~~~~~ choices.right, choices.wrong ~~~~~~~~~~~~~~~~~~~~~~~
   389 
   412 
   390 choices.right = element right { choices.right.content }
   413 choices.right = element right { choices.right.content }
   391 choices.wrong = element wrong { choices.right.content }
   414 choices.wrong = element wrong { choices.right.content }