RelaxNG/publiquiz.rnc
changeset 401 39a1454aa364
parent 388 954f6aef52d6
child 403 d129a5a5ab08
equal deleted inserted replaced
400:4eeecb8b9f0b 401:39a1454aa364
   104  | pointing
   104  | pointing
   105  | pointing-categories
   105  | pointing-categories
   106  | matching
   106  | matching
   107  | sort
   107  | sort
   108  | categories
   108  | categories
   109  | pip
   109  | mip
   110  | production
   110  | production
   111 
   111 
   112 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   112 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   113 
   113 
   114 choices-radio = element choices-radio {
   114 choices-radio = element choices-radio {
   267 
   267 
   268 category.content =
   268 category.content =
   269    category.head,
   269    category.head,
   270    category.item*
   270    category.item*
   271 
   271 
   272 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   272 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   273 
   273 
   274 pip = element pip { pip.attributes, pip.content }
   274 mip = element mip { mip.attributes, mip.content }
   275 
   275 
   276 pip.attributes =
   276 mip.attributes =
   277    success.attribute?
   277    success.attribute?
   278  & multiple.attribute?
   278  & multiple.attribute?
   279 
   279 
   280 pip.content =
   280 mip.content =
   281    pip.image
   281    mip.image
   282 
   282 
   283 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   283 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   284 
   284 
   285 production = element production { empty }
   285 production = element production { empty }
   286 
   286 
   484    pointing.media.caption?,
   484    pointing.media.caption?,
   485    link?
   485    link?
   486 
   486 
   487 # ~~~~~~ blanks.image
   487 # ~~~~~~ blanks.image
   488 blanks.image = element image { image.attributes, blanks.image.content }
   488 blanks.image = element image { image.attributes, blanks.image.content }
   489 pip.image = element image { image.attributes, pip.image.content }
   489 mip.image = element image { image.attributes, mip.image.content }
   490 
   490 
   491 blanks.image.content =
   491 blanks.image.content =
   492    copyright?,
   492    copyright?,
   493    blanks.dropzone*
   493    blanks.dropzone*
   494 pip.image.content =
   494 mip.image.content =
   495    pip.dropzone+
   495    mip.dropzone+
   496 
   496 
   497 # ~~~~~~ dropzone
   497 # ~~~~~~ dropzone
   498 blanks.dropzone = element dropzone {
   498 blanks.dropzone = element dropzone {
   499    blanks.dropzone.attributes, blanks.dropzone.content }
   499    blanks.dropzone.attributes, blanks.dropzone.content }
   500 pip.dropzone = element dropzone {
   500 mip.dropzone = element dropzone {
   501    pip.dropzone.attributes, pip.dropzone.content }
   501    mip.dropzone.attributes, mip.dropzone.content }
   502 
   502 
   503 blanks.dropzone.attributes =
   503 blanks.dropzone.attributes =
   504    x.attribute
   504    x.attribute
   505  & y.attribute
   505  & y.attribute
   506 pip.dropzone.attributes =
   506 mip.dropzone.attributes =
   507    x.attribute
   507    x.attribute
   508  & y.attribute
   508  & y.attribute
   509  & w.attribute
   509  & w.attribute
   510  & h.attribute
   510  & h.attribute
   511 
   511 
   512 blanks.dropzone.content =
   512 blanks.dropzone.content =
   513    blank
   513    blank
   514 pip.dropzone.content =
   514 mip.dropzone.content =
   515    image?
   515    image?,
       
   516    audio?
   516 
   517 
   517 # ~~~~~~ media.caption
   518 # ~~~~~~ media.caption
   518 blanks.media.caption = element caption {
   519 blanks.media.caption = element caption {
   519    caption.attributes, blanks.caption.content }
   520    caption.attributes, blanks.caption.content }
   520 pointing.media.caption = element caption {
   521 pointing.media.caption = element caption {