RelaxNG/publidoc.rng
changeset 22 94b8e4454c47
parent 20 79713ffae179
child 24 53a80accc248
--- a/RelaxNG/publidoc.rng	dim. juin 12 16:02:23 2011 +0200
+++ b/RelaxNG/publidoc.rng	dim. juin 12 17:21:39 2011 +0200
@@ -695,19 +695,46 @@
   <!-- ~~~~~~ thead, tfoot, tbody -->
   <define name="thead">
     <element name="thead">
+      <ref name="thead.attributes"/>
       <ref name="thead.content"/>
     </element>
   </define>
   <define name="tfoot">
     <element name="tfoot">
+      <ref name="tfoot.attributes"/>
       <ref name="tfoot.content"/>
     </element>
   </define>
   <define name="tbody">
     <element name="tbody">
+      <ref name="tbody.attributes"/>
       <ref name="tbody.content"/>
     </element>
   </define>
+  <define name="thead.attributes">
+    <optional>
+      <ref name="valign.attribute"/>
+    </optional>
+  </define>
+  <define name="tfoot.attributes">
+    <optional>
+      <ref name="valign.attribute"/>
+    </optional>
+  </define>
+  <define name="tbody.attributes">
+    <optional>
+      <ref name="valign.attribute"/>
+    </optional>
+  </define>
+  <define name="valign.attribute">
+    <attribute name="valign">
+      <choice>
+        <value>top</value>
+        <value>middle</value>
+        <value>bottom</value>
+      </choice>
+    </attribute>
+  </define>
   <define name="thead.content">
     <oneOrMore>
       <ref name="row"/>
@@ -735,15 +762,6 @@
       <ref name="valign.attribute"/>
     </optional>
   </define>
-  <define name="valign.attribute">
-    <attribute name="valign">
-      <choice>
-        <value>top</value>
-        <value>middle</value>
-        <value>bottom</value>
-      </choice>
-    </attribute>
-  </define>
   <define name="row.content">
     <oneOrMore>
       <ref name="entry"/>