# HG changeset patch # User Patrick PIERRE # Date 1339493945 -7200 # Node ID fb3173d5751237ecaaa0c5a0ba2f0889c702b2d3 # Parent bd4ff455b83f6af7335aa9a5246bd8eda5c66f7e xml:id -> id diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Documents/les_miserables.xml --- a/RelaxNG/Examples/Documents/les_miserables.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Documents/les_miserables.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Les Misérables (extraits) diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Documents/torture_test.xml --- a/RelaxNG/Examples/Documents/torture_test.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Documents/torture_test.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Torture test Test des capacités de publidoc diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/blanks-fill.xml --- a/RelaxNG/Examples/Quiz/blanks-fill.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/blanks-fill.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice à trous diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/blanks-fill_strict.xml --- a/RelaxNG/Examples/Quiz/blanks-fill_strict.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/blanks-fill_strict.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice à trous strict diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/blanks-select.xml --- a/RelaxNG/Examples/Quiz/blanks-select.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/blanks-select.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice à trous avec suggestions diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/blanks-select_multiple.xml --- a/RelaxNG/Examples/Quiz/blanks-select_multiple.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/blanks-select_multiple.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice à trous avec suggestions réutilisables diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/choices-check.xml --- a/RelaxNG/Examples/Quiz/choices-check.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/choices-check.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice QCM cases à cocher diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/choices-radio.xml --- a/RelaxNG/Examples/Quiz/choices-radio.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/choices-radio.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice QCM radio diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/composite.xml --- a/RelaxNG/Examples/Quiz/composite.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/composite.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice composite diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/matching.xml --- a/RelaxNG/Examples/Quiz/matching.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/matching.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice d'appariement diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/point.xml --- a/RelaxNG/Examples/Quiz/point.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/point.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice de pointage diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/point_radio.xml --- a/RelaxNG/Examples/Quiz/point_radio.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/point_radio.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice de pointage radio diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/production.xml --- a/RelaxNG/Examples/Quiz/production.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/production.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice de production diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Quiz/sort.xml --- a/RelaxNG/Examples/Quiz/sort.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Quiz/sort.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Exercice de tri diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Sets/composition.xml --- a/RelaxNG/Examples/Sets/composition.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Sets/composition.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,8 +1,8 @@ - - + + Exemple d'assemblage de sujets 9781449328030 diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Sets/proba.xml --- a/RelaxNG/Examples/Sets/proba.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Sets/proba.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,8 +1,8 @@ - - + + Exemple d'assemblage de sujets et de quiz diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Sets/selection.xml --- a/RelaxNG/Examples/Sets/selection.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Sets/selection.xml mar. juin 12 11:39:05 2012 +0200 @@ -2,7 +2,7 @@ - + Première sélection @@ -24,7 +24,7 @@ - + Deuxième sélection diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Topics/centre_pompidou.xml --- a/RelaxNG/Examples/Topics/centre_pompidou.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Topics/centre_pompidou.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Un nouveau Centre Pompidou après vingt-sept mois de travaux Paris, samedi 1er diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Topics/chasseurs.xml --- a/RelaxNG/Examples/Topics/chasseurs.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Topics/chasseurs.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Les chasseurs d'oiseaux contestent la loi Baie de Somme, mardi 1er diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Topics/portugal_ue.xml --- a/RelaxNG/Examples/Topics/portugal_ue.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Topics/portugal_ue.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Janvier 2000 Lisbonne, samedi 1er diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Topics/prince_belge.xml --- a/RelaxNG/Examples/Topics/prince_belge.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Topics/prince_belge.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Janvier 2000 diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/Examples/Topics/proba01.xml --- a/RelaxNG/Examples/Topics/proba01.xml mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/Examples/Topics/proba01.xml mar. juin 12 11:39:05 2012 +0200 @@ -1,7 +1,7 @@ - + Qu'est-ce qu'une probabilité ? diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/publidoc.rnc --- a/RelaxNG/publidoc.rnc mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/publidoc.rnc mar. juin 12 11:39:05 2012 +0200 @@ -47,7 +47,7 @@ document.attributes = document.id.attribute & lang.attribute? -document.id.attribute = attribute xml:id { xsd:ID } +document.id.attribute = attribute id { xsd:NMTOKEN } lang.attribute = attribute xml:lang { xsd:language } document.content = @@ -62,7 +62,7 @@ topic.id.attribute & topic.type.attribute? & lang.attribute? -topic.id.attribute = attribute xml:id { xsd:ID } +topic.id.attribute = attribute id { xsd:NMTOKEN } topic.type.attribute = attribute type { xsd:NCName } top.topic.content = @@ -111,9 +111,10 @@ topic = element topic { topic.attributes, topic.content } topic.attributes = - topic.id.attribute? + topic.xmlid.attribute? & topic.type.attribute? & lang.attribute? +topic.xmlid.attribute = attribute xml:id { xsd:ID } topic.content = component.head?, diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/publiquiz.rnc --- 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?, diff -r bd4ff455b83f -r fb3173d57512 RelaxNG/publiset.rnc --- a/RelaxNG/publiset.rnc mer. juin 06 18:16:53 2012 +0200 +++ b/RelaxNG/publiset.rnc mar. juin 12 11:39:05 2012 +0200 @@ -35,7 +35,7 @@ & xslt.attribute? & remap.attributes & lang.attribute? -composition.id.attribute = attribute xml:id { xsd:ID } +composition.id.attribute = attribute id { xsd:NMTOKEN } path.attribute = attribute path { xsd:anyURI } xslt.attribute = attribute xslt { xsd:anyURI } xpath.attribute = attribute xpath { text } @@ -73,7 +73,7 @@ selection.id.attribute & path.attribute? & lang.attribute? -selection.id.attribute = attribute xml:id { xsd:ID } +selection.id.attribute = attribute id { xsd:NMTOKEN } selection.content = selection.head?, diff -r bd4ff455b83f -r fb3173d57512 Xxe/Css/publidoc.css --- a/Xxe/Css/publidoc.css mer. juin 06 18:16:53 2012 +0200 +++ b/Xxe/Css/publidoc.css mar. juin 12 11:39:05 2012 +0200 @@ -216,32 +216,32 @@ } publidoc > document:before { content: add-attribute-button() " Document" - " – ID = " text-field(attribute, "xml:id", columns, 15, color, white); + " – ID = " text-field(attribute, "id", columns, 15, color, white); } -publidoc > document[xml|id][xml|lang]:before { +publidoc > document[id][xml|lang]:before { content: "Document" - " – ID = " text-field(attribute, "xml:id", columns, 15, color, white) + " – ID = " text-field(attribute, "id", columns, 15, color, white) " – Langue principale = " combo-box(attribute, "xml:lang", font-size, 75%, values, "en\A fr\A fr-FR\A es", color, white); } -publidoc > topic[xml|id]:before { +publidoc > topic[id]:before { content: add-attribute-button() " Topic" - " – ID = " text-field(attribute, "xml:id", columns, 15, color, white); + " – ID = " text-field(attribute, "id", columns, 15, color, white); } publidoc > topic[xml|id][type]:before { content: add-attribute-button() " Topic" - " – ID = " text-field(attribute, "xml:id", columns, 15, color, white) + " – ID = " text-field(attribute, "id", columns, 15, color, white) " – Type = " text-field(attribute, type, columns, 10, color, white); } -publidoc > topic[xml|id][xml|lang]:before { +publidoc > topic[id][xml|lang]:before { content: add-attribute-button() " Topic" - " – ID = " text-field(attribute, "xml:id", columns, 15, color, white) + " – ID = " text-field(attribute, "id", columns, 15, color, white) " – Langue principale = " combo-box(attribute, "xml:lang", font-size, 75%, values, "en\A fr\A fr-FR\A es", color, white); } -publidoc > topic[xml|id][type][xml|lang]:before { +publidoc > topic[id][type][xml|lang]:before { content: "Topic" - " – ID = " text-field(attribute, "xml:id", columns, 15, color, white) + " – ID = " text-field(attribute, "id", columns, 15, color, white) " – Type = " text-field(attribute, type, columns, 10, color, white) " – Langue principale = " combo-box(attribute, "xml:lang", font-size, 75%, values, "en\A fr\A fr-FR\A es", color, white); diff -r bd4ff455b83f -r fb3173d57512 Xxe/Css/publiquiz.css --- a/Xxe/Css/publiquiz.css mer. juin 06 18:16:53 2012 +0200 +++ b/Xxe/Css/publiquiz.css mar. juin 12 11:39:05 2012 +0200 @@ -59,21 +59,21 @@ } publiquiz > document:before { content: add-attribute-button() " Document" - " – ID = " text-field(attribute, "xml:id", columns, 15, color, white); + " – ID = " text-field(attribute, "id", columns, 15, color, white); } -publiquiz > document[xml|id][xml|lang]:before { +publiquiz > document[id][xml|lang]:before { content: "Document" - " – ID = " text-field(attribute, "xml:id", columns, 15, color, white) + " – ID = " text-field(attribute, "id", columns, 15, color, white) " – Langue principale = " combo-box(attribute, "xml:lang", font-size, 75%, values, "en\A fr\A fr-FR\A es", color, white); } -publiquiz > quiz[xml|id]:before { +publiquiz > quiz[id]:before { content: add-attribute-button() " Quiz" - " – ID = " text-field(attribute, "xml:id", columns, 15, color, white); + " – ID = " text-field(attribute, "id", columns, 15, color, white); } -publiquiz > quiz[xml|id][xml|lang]:before { +publiquiz > quiz[id][xml|lang]:before { content: "Quiz" - " – ID = " text-field(attribute, "xml:id", columns, 15, color, white) + " – ID = " text-field(attribute, "id", columns, 15, color, white) " – Langue principale = " combo-box(attribute, "xml:lang", font-size, 75%, values, "en\A fr\A fr-FR\A es", color, white); }