RelaxNG/publiquiz.rnc
changeset 166 4e4c9b47f2a1
parent 161 1f9fa4e74cd0
child 168 c0413c8aa327
equal deleted inserted replaced
165:a3fdabd71b65 166:4e4c9b47f2a1
   375 
   375 
   376 match.item = element item { match.item.content }
   376 match.item = element item { match.item.content }
   377 
   377 
   378 match.item.content =
   378 match.item.content =
   379    inlines
   379    inlines
   380  | (image | (audio, image?) | video)
   380  | ((p | image | (audio, image?) | video), help?, answer?)
   381 
   381 
   382 # ~~~~~~~~~~~~~~~~~~~~~~~~ (sort) comparison, item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   382 # ~~~~~~~~~~~~~~~~~~~~~~~~ (sort) comparison, item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   383 
   383 
   384 # ~~~~~~ comparison
   384 # ~~~~~~ comparison
   385 comparison = element comparison { comparison.content }
   385 comparison = element comparison { comparison.content }
   393    item.shuffle.attribute?
   393    item.shuffle.attribute?
   394 item.shuffle.attribute = attribute shuffle { xsd:integer }
   394 item.shuffle.attribute = attribute shuffle { xsd:integer }
   395 
   395 
   396 sort.item.content =
   396 sort.item.content =
   397    inlines
   397    inlines
   398  | (image | (audio, image?) | video)
   398  | ((p | image | (audio, image?) | video), help?, answer?)
   399 
   399 
   400 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (category) item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   400 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (category) item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   401 
   401 
   402 category.item = element item { category.item.content }
   402 category.item = element item { category.item.content }
   403 
   403 
   404 category.item.content =
   404 category.item.content =
   405    inlines
   405    inlines
   406  | (image | (audio, image?) | video)
   406  | ((p | image | (audio, image?) | video), help?, answer?)
   407 
   407 
   408 
   408 
   409 # =============================================================================
   409 # =============================================================================
   410 #                                 INLINE LEVEL
   410 #                                 INLINE LEVEL
   411 # =============================================================================
   411 # =============================================================================