RelaxNG/publiquiz.rnc
changeset 342 852860c3d9c9
parent 341 b9e71a8ec71f
child 343 33b213ccb385
equal deleted inserted replaced
341:b9e71a8ec71f 342:852860c3d9c9
   141 multiple.attribute = attribute multiple { xsd:boolean }
   141 multiple.attribute = attribute multiple { xsd:boolean }
   142 
   142 
   143 blanks-fill.content =
   143 blanks-fill.content =
   144    (blanks.block+ | blanks.section+)
   144    (blanks.block+ | blanks.section+)
   145 blanks-select.content =
   145 blanks-select.content =
   146    blanks.wrongs?,
   146    blanks.intruders?,
   147    (blanks.block+ | blanks.section+)
   147    (blanks.block+ | blanks.section+)
   148 
   148 
   149 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pointing ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   149 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pointing ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   150 
   150 
   151 pointing = element pointing { pointing.attributes, pointing.content }
   151 pointing = element pointing { pointing.attributes, pointing.content }
   236 
   236 
   237 categories.attributes =
   237 categories.attributes =
   238    multiple.attribute?
   238    multiple.attribute?
   239 
   239 
   240 categories.content =
   240 categories.content =
   241    category.item*,
   241    category.intruders?,
   242    category,
   242    category,
   243    category+
   243    category+
   244 
   244 
   245 # ~~~~~~ category
   245 # ~~~~~~ category
   246 category = element category { category.content }
   246 category = element category { category.content }
   507 
   507 
   508 choices.right.content =
   508 choices.right.content =
   509    inlines
   509    inlines
   510  | ((p | image | (audio, image?) | video), help?, answer?)
   510  | ((p | image | (audio, image?) | video), help?, answer?)
   511 
   511 
   512 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks.wrongs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   512 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks.intruders ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   513 
   513 
   514 # ~~~~~~ blanks.wrongs
   514 # ~~~~~~ blanks.intruders
   515 blanks.wrongs = element wrongs { blanks.wrongs.content }
   515 blanks.intruders = element intruders { blanks.intruders.content }
   516 
   516 
   517 blanks.wrongs.content =
   517 blanks.intruders.content =
   518    wrongs.wrong+
   518    intruders.blank+
   519 
   519 
   520 # ~~~~~~ wrongs.wrong
   520 # ~~~~~~ intruders.blank
   521 wrongs.wrong = element wrong { wrongs.wrong.content }
   521 intruders.blank = element blank { intruders.blank.content }
   522 
   522 
   523 wrongs.wrong.content = text
   523 intruders.blank.content = text
   524 
   524 
   525 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ match.item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   525 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ match.item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   526 
   526 
   527 match.item = element item { match.item.content }
   527 match.item = element item { match.item.content }
   528 
   528 
   546 
   546 
   547 sort.item.content =
   547 sort.item.content =
   548    inlines
   548    inlines
   549  | (p, help?, answer?)
   549  | (p, help?, answer?)
   550 
   550 
   551 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ category.item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   551 # ~~~~~~~~~~~~~~~~~~~~~ category.intruders, category.item ~~~~~~~~~~~~~~~~~~~~~
   552 
   552 
       
   553 # ~~~~~~ category.intruders
       
   554 category.intruders = element intruders { category.intruders.content }
       
   555 
       
   556 category.intruders.content =
       
   557    category.item+
       
   558 
       
   559 # ~~~~~~ category.item
   553 category.item = element item { category.item.content }
   560 category.item = element item { category.item.content }
   554 
   561 
   555 category.item.content =
   562 category.item.content =
   556    inlines
   563    inlines
   557  | (p, help?, answer?)
   564  | (p, help?, answer?)