RelaxNG/publiquiz.rnc
changeset 158 4421865b3f33
parent 154 eaa2b6a4ead8
child 160 e9d1bb4692b5
equal deleted inserted replaced
157:cad0deff68cd 158:4421865b3f33
    35 
    35 
    36 top.quiz = element quiz { top.quiz.attributes, top.quiz.content }
    36 top.quiz = element quiz { top.quiz.attributes, top.quiz.content }
    37 
    37 
    38 top.quiz.attributes =
    38 top.quiz.attributes =
    39    quiz.id.attribute
    39    quiz.id.attribute
       
    40  & quiz.type.attribute?
    40  & lang.attribute?
    41  & lang.attribute?
    41 quiz.id.attribute = attribute id { xsd:NMTOKEN }
    42 quiz.id.attribute = attribute id { xsd:NMTOKEN }
       
    43 quiz.type.attribute = attribute type { xsd:NCName }
    42 
    44 
    43 top.quiz.content =
    45 top.quiz.content =
    44    top.head?,
    46    top.head?,
    45    instructions,
    47    instructions,
    46    (engine | composite),
    48    (engine | composite),
    55 
    57 
    56 quiz = element quiz { quiz.attributes, quiz.content }
    58 quiz = element quiz { quiz.attributes, quiz.content }
    57 
    59 
    58 quiz.attributes =
    60 quiz.attributes =
    59    (quiz.id.attribute | quiz.xmlid.attribute)?
    61    (quiz.id.attribute | quiz.xmlid.attribute)?
       
    62  & quiz.type.attribute?
    60  & lang.attribute?
    63  & lang.attribute?
    61 quiz.xmlid.attribute = attribute xml:id { xsd:ID }
    64 quiz.xmlid.attribute = attribute xml:id { xsd:ID }
    62 
    65 
    63 quiz.content =
    66 quiz.content =
    64    component.head?,
    67    component.head?,