# HG changeset patch # User Patrick PIERRE # Date 1365527033 -7200 # Node ID c56f8c6b2868bbd62d9a972a8e39771cf9548883 # Parent e50ac13ec921d5b2920ef2a49f77add654e614c8 Gestion des dropzones diff -r e50ac13ec921 -r c56f8c6b2868 RelaxNG/Examples/Quiz/Images/blanks-select_dropzonei01.jpg Binary file RelaxNG/Examples/Quiz/Images/blanks-select_dropzonei01.jpg has changed diff -r e50ac13ec921 -r c56f8c6b2868 RelaxNG/Examples/Quiz/Images/blanks-select_hotspotsi01.jpg Binary file RelaxNG/Examples/Quiz/Images/blanks-select_hotspotsi01.jpg has changed diff -r e50ac13ec921 -r c56f8c6b2868 RelaxNG/Examples/Quiz/blanks-select_dropzone.xml --- /dev/null jeu. janv. 01 00:00:00 1970 +0000 +++ b/RelaxNG/Examples/Quiz/blanks-select_dropzone.xml mar. avril 09 19:03:53 2013 +0200 @@ -0,0 +1,25 @@ +<?xml version='1.0' encoding='utf-8'?> +<!-- $Id$ --> +<publiquiz version="1.0"> + <quiz id="blanks-select_dropzone"> + <head> + <title>Exercice à trous avec placement sur image</title> + </head> + + <instructions> + <p>Placez correctement chaque élément de la voiture.</p> + </instructions> + + <blanks-select> + <media> + <image id="blanks-select_dropzonei01"> + <dropzone x="25%" y="45.5%"><blank>le volant</blank></dropzone> + <dropzone x="62%" y="24%"><blank>le pare-brise</blank></dropzone> + <dropzone x="63%" y="77%"><blank>le siège</blank></dropzone> + <dropzone x="46%" y="68%"><blank>le levier de vitesse</blank></dropzone> + <dropzone x="1%" y="25.4%"><blank>le rétroviseur</blank></dropzone> + </image> + </media> + </blanks-select> + </quiz> +</publiquiz> diff -r e50ac13ec921 -r c56f8c6b2868 RelaxNG/Examples/Quiz/blanks-select_hotspots.xml --- a/RelaxNG/Examples/Quiz/blanks-select_hotspots.xml mar. avril 09 18:34:13 2013 +0200 +++ /dev/null jeu. janv. 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<!-- $Id$ --> -<publiquiz version="1.0"> - <quiz id="blanks-select_hotspots"> - <head> - <title>Exercice à trous avec placement sur image</title> - </head> - - <instructions> - <p>Placez correctement chaque élément de la voiture.</p> - </instructions> - - <blanks-select> - <media> - <image id="blanks-select_hotspotsi01"> - <hotspot x="25%" y="45.5%"><blank>le volant</blank></hotspot> - <hotspot x="62%" y="24%"><blank>le pare-brise</blank></hotspot> - <hotspot x="63%" y="77%"><blank>le siège</blank></hotspot> - <hotspot x="46%" y="68%"><blank>le levier de vitesse</blank></hotspot> - <hotspot x="1%" y="25.4%"><blank>le rétroviseur</blank></hotspot> - </image> - </media> - </blanks-select> - </quiz> -</publiquiz> diff -r e50ac13ec921 -r c56f8c6b2868 RelaxNG/publiquiz.rnc --- a/RelaxNG/publiquiz.rnc mar. avril 09 18:34:13 2013 +0200 +++ b/RelaxNG/publiquiz.rnc mar. avril 09 19:03:53 2013 +0200 @@ -372,17 +372,17 @@ blanks.image.content = copyright?, - blanks.hotspot* + blanks.dropzone* -# ~~~~~~ blanks.hotspot -blanks.hotspot = element hotspot { - blanks.hotspot.attributes, blanks.hotspot.content } +# ~~~~~~ blanks.dropzone +blanks.dropzone = element dropzone { + blanks.dropzone.attributes, blanks.dropzone.content } -blanks.hotspot.attributes = +blanks.dropzone.attributes = x.attribute & y.attribute -blanks.hotspot.content = +blanks.dropzone.content = blank # ~~~~~~~~~~~~~~~~~~~~~~~~ choices.right, choices.wrong ~~~~~~~~~~~~~~~~~~~~~~~