RelaxNG/publiquiz.rnc
changeset 150 73972df488d2
parent 148 4ca6060892f0
child 151 69782399eb50
equal deleted inserted replaced
149:75cfca86026a 150:73972df488d2
   340 choices.right = element right { choices.right.content }
   340 choices.right = element right { choices.right.content }
   341 choices.wrong = element wrong { choices.right.content }
   341 choices.wrong = element wrong { choices.right.content }
   342 
   342 
   343 choices.right.content =
   343 choices.right.content =
   344    inlines
   344    inlines
   345  | p+
   345  | (p+, help?, answer?)
   346 
   346 
   347 
   347 
   348 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks.wrongs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   348 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks.wrongs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   349 
   349 
   350 # ~~~~~~ blanks.wrongs
   350 # ~~~~~~ blanks.wrongs
   356 # ~~~~~~ blanks.wrong
   356 # ~~~~~~ blanks.wrong
   357 blanks.wrong = element wrong { blanks.wrong.content }
   357 blanks.wrong = element wrong { blanks.wrong.content }
   358 
   358 
   359 blanks.wrong.content = text
   359 blanks.wrong.content = text
   360 
   360 
   361 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ match ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   361 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ match ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   362 
   362 
   363 match = element match { match.content }
   363 match = element match { match.content }
   364 
   364 
   365 match.content =
   365 match.content =
   366    (p | section),
   366    (p | section),