Attribut 'is' optionnel
authoriinov
mer., 07 nov. 2018 16:51:10 +0100
changeset 468 6b322a48536c
parent 467 cdd0ecddb961
child 469 c662d725dd69
child 470 1a380d97d0eb
Attribut 'is' optionnel
Data/Quiz/dictation.xml
RelaxNG/publiquiz.rnc
--- a/Data/Quiz/dictation.xml	mar. oct. 23 18:39:42 2018 +0200
+++ b/Data/Quiz/dictation.xml	mer. nov. 07 16:51:10 2018 +0100
@@ -26,7 +26,7 @@
           <mistake is="has"><emphasis>has</emphasis> est la troisième personne
           du singulier. Ici, il s'agit de la première personne du
           pluriel.</mistake>
-          <mistake is="">I have, you have, he/she/it has, <highlight>we
+          <mistake>I have, you have, he/she/it has, <highlight>we
           have</highlight>, you have, they have.</mistake>
         </hint>
         a problem.
--- a/RelaxNG/publiquiz.rnc	mar. oct. 23 18:39:42 2018 +0200
+++ b/RelaxNG/publiquiz.rnc	mer. nov. 07 16:51:10 2018 +0100
@@ -1212,7 +1212,7 @@
 mistake = element mistake { mistake.attributes, mistake.content }
 
 mistake.attributes =
-   mistake.is.attribute
+   mistake.is.attribute?
 mistake.is.attribute = attribute is { text }
 
 mistake.content = inlines