RelaxNG/publidoc.rng
changeset 22 94b8e4454c47
parent 20 79713ffae179
child 24 53a80accc248
equal deleted inserted replaced
21:7c09024d5634 22:94b8e4454c47
   693     </attribute>
   693     </attribute>
   694   </define>
   694   </define>
   695   <!-- ~~~~~~ thead, tfoot, tbody -->
   695   <!-- ~~~~~~ thead, tfoot, tbody -->
   696   <define name="thead">
   696   <define name="thead">
   697     <element name="thead">
   697     <element name="thead">
       
   698       <ref name="thead.attributes"/>
   698       <ref name="thead.content"/>
   699       <ref name="thead.content"/>
   699     </element>
   700     </element>
   700   </define>
   701   </define>
   701   <define name="tfoot">
   702   <define name="tfoot">
   702     <element name="tfoot">
   703     <element name="tfoot">
       
   704       <ref name="tfoot.attributes"/>
   703       <ref name="tfoot.content"/>
   705       <ref name="tfoot.content"/>
   704     </element>
   706     </element>
   705   </define>
   707   </define>
   706   <define name="tbody">
   708   <define name="tbody">
   707     <element name="tbody">
   709     <element name="tbody">
       
   710       <ref name="tbody.attributes"/>
   708       <ref name="tbody.content"/>
   711       <ref name="tbody.content"/>
   709     </element>
   712     </element>
   710   </define>
   713   </define>
   711   <define name="thead.content">
   714   <define name="thead.attributes">
   712     <oneOrMore>
   715     <optional>
   713       <ref name="row"/>
   716       <ref name="valign.attribute"/>
   714     </oneOrMore>
   717     </optional>
   715   </define>
   718   </define>
   716   <define name="tfoot.content">
   719   <define name="tfoot.attributes">
   717     <oneOrMore>
   720     <optional>
   718       <ref name="row"/>
   721       <ref name="valign.attribute"/>
   719     </oneOrMore>
   722     </optional>
   720   </define>
   723   </define>
   721   <define name="tbody.content">
   724   <define name="tbody.attributes">
   722     <oneOrMore>
       
   723       <ref name="row"/>
       
   724     </oneOrMore>
       
   725   </define>
       
   726   <!-- ~~~~~~ row -->
       
   727   <define name="row">
       
   728     <element name="row">
       
   729       <ref name="row.attribute"/>
       
   730       <ref name="row.content"/>
       
   731     </element>
       
   732   </define>
       
   733   <define name="row.attribute">
       
   734     <optional>
   725     <optional>
   735       <ref name="valign.attribute"/>
   726       <ref name="valign.attribute"/>
   736     </optional>
   727     </optional>
   737   </define>
   728   </define>
   738   <define name="valign.attribute">
   729   <define name="valign.attribute">
   741         <value>top</value>
   732         <value>top</value>
   742         <value>middle</value>
   733         <value>middle</value>
   743         <value>bottom</value>
   734         <value>bottom</value>
   744       </choice>
   735       </choice>
   745     </attribute>
   736     </attribute>
       
   737   </define>
       
   738   <define name="thead.content">
       
   739     <oneOrMore>
       
   740       <ref name="row"/>
       
   741     </oneOrMore>
       
   742   </define>
       
   743   <define name="tfoot.content">
       
   744     <oneOrMore>
       
   745       <ref name="row"/>
       
   746     </oneOrMore>
       
   747   </define>
       
   748   <define name="tbody.content">
       
   749     <oneOrMore>
       
   750       <ref name="row"/>
       
   751     </oneOrMore>
       
   752   </define>
       
   753   <!-- ~~~~~~ row -->
       
   754   <define name="row">
       
   755     <element name="row">
       
   756       <ref name="row.attribute"/>
       
   757       <ref name="row.content"/>
       
   758     </element>
       
   759   </define>
       
   760   <define name="row.attribute">
       
   761     <optional>
       
   762       <ref name="valign.attribute"/>
       
   763     </optional>
   746   </define>
   764   </define>
   747   <define name="row.content">
   765   <define name="row.content">
   748     <oneOrMore>
   766     <oneOrMore>
   749       <ref name="entry"/>
   767       <ref name="entry"/>
   750     </oneOrMore>
   768     </oneOrMore>