RelaxNG/publiquiz.rnc
changeset 122 a0b8294a5a99
parent 118 8d2b19e168e1
child 125 dd9b04a54839
equal deleted inserted replaced
121:f3e221b25f64 122:a0b8294a5a99
    48 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quiz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    48 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quiz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    49 
    49 
    50 quiz = element quiz { quiz.attributes, quiz.content }
    50 quiz = element quiz { quiz.attributes, quiz.content }
    51 
    51 
    52 quiz.attributes =
    52 quiz.attributes =
    53    quiz.id.attribute?
    53    (quiz.id.attribute | quiz.xmlid.attribute)?
    54  & lang.attribute?
    54  & lang.attribute?
       
    55 quiz.xmlid.attribute = attribute xml:id { xsd:ID }
    55 
    56 
    56 quiz.content =
    57 quiz.content =
    57    component.head?,
    58    component.head?,
    58    instructions,
    59    instructions,
    59    (engine | composite),
    60    (engine | composite),