# HG changeset patch # User Patrick PIERRE <patrick.pierre@prismallia.fr> # Date 1327341567 -3600 # Node ID 4690abab3daab3cc48487e1980342d8ced647fb7 # Parent 8117ef722ec4c4475370d03a4672b1bc0d18efa9 Structuration des exercices composites diff -r 8117ef722ec4 -r 4690abab3daa RelaxNG/publiquiz.rnc --- a/RelaxNG/publiquiz.rnc lun. janv. 23 00:06:09 2012 +0100 +++ b/RelaxNG/publiquiz.rnc lun. janv. 23 18:59:27 2012 +0100 @@ -157,11 +157,19 @@ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ composite ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~ composite composite = element composite { composite.content } composite.content = - (instructions?, engine), - (instructions?, engine)+ + composite.quiz, + composite.quiz+ + +# ~~~~~~ composite.quiz +composite.quiz = element quiz { composite.quiz.content } + +composite.quiz.content = + instructions?, + engine # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ help ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff -r 8117ef722ec4 -r 4690abab3daa Xml/Quiz/composite.xml --- a/Xml/Quiz/composite.xml lun. janv. 23 00:06:09 2012 +0100 +++ b/Xml/Quiz/composite.xml lun. janv. 23 18:59:27 2012 +0100 @@ -3,7 +3,7 @@ <publiquiz version="1.0"> <quiz xml:id="composite" xml:lang="fr"> <head> - <title>Assemblage d'exercices</title> + <title>Exercice composite</title> </head> <instructions> @@ -11,35 +11,54 @@ </instructions> <composite> - <instructions> - <p>abeille</p> - </instructions> - <choices type="radio"> - <wrong>gastéropode</wrong> - <right>insecte</right> - <wrong>mollusque</wrong> - </choices> + <quiz> + <instructions> + <p>abeille</p> + </instructions> + <choices type="radio"> + <wrong>gastéropode</wrong> + <right>insecte</right> + <wrong>mollusque</wrong> + </choices> + </quiz> - <instructions> - <p>aigle</p> - </instructions> - <choices type="check"> - <right>oiseau</right> - <wrong>passereau</wrong> - <wrong>charognard</wrong> - <right>rapace</right> - </choices> + <quiz> + <instructions> + <p>aigle</p> + </instructions> + <choices type="check"> + <right>oiseau</right> + <wrong>passereau</wrong> + <wrong>charognard</wrong> + <right>rapace</right> + </choices> + </quiz> - <instructions> - <p>albatros</p> - </instructions> - <point type="radio"> - <p> - <right>oiseau</right>_/ - <wrong>rongeur</wrong> / - <wrong>reptile</wrong> - </p> - </point> + <quiz> + <instructions> + <p>albatros</p> + </instructions> + <point type="radio"> + <p> + <right>oiseau</right> / + <wrong>rongeur</wrong> / + <wrong>reptile</wrong> + </p> + </point> + </quiz> + + <quiz> + <instructions> + <p>albatros</p> + </instructions> + <blanks type="select"> + <wrongs> + <wrong>reptile</wrong> + <wrong>oiseaux</wrong> + </wrongs> + <p>Catégorie : <blank>mammifère</blank></p> + </blanks> + </quiz> </composite> </quiz> </publiquiz>