RelaxNG/publiquiz.rnc
changeset 117 fb3173d57512
parent 111 44de27e5c6cf
child 118 8d2b19e168e1
equal deleted inserted replaced
116:bd4ff455b83f 117:fb3173d57512
    36 top.quiz = element quiz { top.quiz.attributes, quiz.content }
    36 top.quiz = element quiz { top.quiz.attributes, quiz.content }
    37 
    37 
    38 top.quiz.attributes =
    38 top.quiz.attributes =
    39    quiz.id.attribute
    39    quiz.id.attribute
    40  & lang.attribute?
    40  & lang.attribute?
       
    41 quiz.id.attribute = attribute id { xsd:NMTOKEN }
    41 
    42 
    42 
    43 
    43 # =============================================================================
    44 # =============================================================================
    44 #                               COMPONENT LEVEL
    45 #                               COMPONENT LEVEL
    45 # =============================================================================
    46 # =============================================================================
    47 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quiz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    48 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quiz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    48 
    49 
    49 quiz = element quiz { quiz.attributes, quiz.content }
    50 quiz = element quiz { quiz.attributes, quiz.content }
    50 
    51 
    51 quiz.attributes =
    52 quiz.attributes =
    52    quiz.id.attribute?
    53    quiz.xmlid.attribute?
    53  & lang.attribute?
    54  & lang.attribute?
    54 quiz.id.attribute = attribute xml:id { xsd:ID }
    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),