Intrus en exercice de tri
authoriinov
mer., 05 sept. 2018 17:54:38 +0200
changeset 462 61f23b379b5d
parent 461 58b2704e601a
child 463 4a7e62074e60
Intrus en exercice de tri
Data/Quiz/sort.xml
RelaxNG/publiquiz.rnc
--- a/Data/Quiz/sort.xml	mer. sept. 05 17:18:31 2018 +0200
+++ b/Data/Quiz/sort.xml	mer. sept. 05 17:54:38 2018 +0200
@@ -10,10 +10,10 @@
     </instructions>
 
     <sort>
-      <comparison>&lt;</comparison>
       <intruders>
         <item shuffle="4">cat</item>
       </intruders>
+      <comparison>&lt;</comparison>
       <item shuffle="6">59</item>
       <item shuffle="5">66</item>
       <item shuffle="1">73</item>
--- a/RelaxNG/publiquiz.rnc	mer. sept. 05 17:18:31 2018 +0200
+++ b/RelaxNG/publiquiz.rnc	mer. sept. 05 17:54:38 2018 +0200
@@ -281,8 +281,8 @@
  & orientation.attribute?
 
 sort.content =
+    sort.intruders?,
     comparison?,
-    sort.intruders?,
     sort.item,
     sort.item+
 
@@ -871,12 +871,7 @@
    inlines
  | (p, help?, answer?)
 
-# ~~~~~~~~~~~~~~~~~~~~~~~~ comparison, sort.item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-# ~~~~~~ comparison
-comparison = element comparison { comparison.content }
-
-comparison.content = inlines
+# ~~~~~~~~~~~~~~~~~~~~ sort.intruders, comparison, sort.item ~~~~~~~~~~~~~~~~~~
 
 # ~~~~~~~ sort.intruders
 sort.intruders = element intruders { sort.intruders.content }
@@ -884,6 +879,11 @@
 sort.intruders.content =
    sort.item+
 
+# ~~~~~~ comparison
+comparison = element comparison { comparison.content }
+
+comparison.content = inlines
+
 # ~~~~~~ sort.item
 sort.item = element item { sort.item.attributes, sort.item.content }