RelaxNG/publidoc.rng
changeset 40 7cfe2d4957c6
parent 39 7faa356bad3e
child 41 adde3c1288f2
--- a/RelaxNG/publidoc.rng	mer. juil. 20 15:05:37 2011 +0200
+++ b/RelaxNG/publidoc.rng	mer. juil. 20 22:57:09 2011 +0200
@@ -154,6 +154,9 @@
         <ref name="source"/>
       </zeroOrMore>
       <optional>
+        <ref name="keywordset"/>
+      </optional>
+      <optional>
         <ref name="subjectset"/>
       </optional>
       <optional>
@@ -434,7 +437,27 @@
       <data type="positiveInteger"/>
     </attribute>
   </define>
-  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword & subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+  <!-- ~~~~~~ keywordset -->
+  <define name="keywordset">
+    <element name="keywordset">
+      <ref name="keywordset.content"/>
+    </element>
+  </define>
+  <define name="keywordset.content">
+    <oneOrMore>
+      <ref name="keyword"/>
+    </oneOrMore>
+  </define>
+  <!-- ~~~~~~ keyword -->
+  <define name="keyword">
+    <element name="keyword">
+      <ref name="keyword.content"/>
+    </element>
+  </define>
+  <define name="keyword.content">
+    <text/>
+  </define>
   <!-- ~~~~~~ subjectset -->
   <define name="subjectset">
     <element name="subjectset">