Ajout de <sup>, <sub> dans <keyword>
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
jeu., 10 nov. 2011 13:04:58 +0100
changeset 53 37e9f6428d02
parent 52 cb9addc3d98a
child 54 929fff460b1f
Ajout de <sup>, <sub> dans <keyword>
RelaxNG/publidoc.rnc
RelaxNG/publidoc.rng
--- a/RelaxNG/publidoc.rnc	ven. oct. 28 10:41:08 2011 +0200
+++ b/RelaxNG/publidoc.rnc	jeu. nov. 10 13:04:58 2011 +0100
@@ -206,7 +206,7 @@
 # ~~~~~~ keyword
 keyword = element keyword { keyword.content }
 
-keyword.content = text
+keyword.content = mixed { sup*, sub* }
 
 # ~~~~~~ subjectset
 subjectset = element subjectset { subjectset.content }
--- a/RelaxNG/publidoc.rng	ven. oct. 28 10:41:08 2011 +0200
+++ b/RelaxNG/publidoc.rng	jeu. nov. 10 13:04:58 2011 +0100
@@ -449,7 +449,14 @@
     </element>
   </define>
   <define name="keyword.content">
-    <text/>
+    <mixed>
+      <zeroOrMore>
+        <ref name="sup"/>
+      </zeroOrMore>
+      <zeroOrMore>
+        <ref name="sub"/>
+      </zeroOrMore>
+    </mixed>
   </define>
   <!-- ~~~~~~ subjectset -->
   <define name="subjectset">