RelaxNG/publiquiz.rnc
changeset 117 fb3173d57512
parent 111 44de27e5c6cf
child 118 8d2b19e168e1
--- a/RelaxNG/publiquiz.rnc	mer. juin 06 18:16:53 2012 +0200
+++ b/RelaxNG/publiquiz.rnc	mar. juin 12 11:39:05 2012 +0200
@@ -38,6 +38,7 @@
 top.quiz.attributes =
    quiz.id.attribute
  & lang.attribute?
+quiz.id.attribute = attribute id { xsd:NMTOKEN }
 
 
 # =============================================================================
@@ -49,9 +50,9 @@
 quiz = element quiz { quiz.attributes, quiz.content }
 
 quiz.attributes =
-   quiz.id.attribute?
+   quiz.xmlid.attribute?
  & lang.attribute?
-quiz.id.attribute = attribute xml:id { xsd:ID }
+quiz.xmlid.attribute = attribute xml:id { xsd:ID }
 
 quiz.content =
    component.head?,