RelaxNG/publidoc.rng
changeset 35 de4114d12ef1
parent 34 c51d5097d065
child 36 d23cfb7be79e
equal deleted inserted replaced
34:c51d5097d065 35:de4114d12ef1
   154         <ref name="subjectset"/>
   154         <ref name="subjectset"/>
   155       </optional>
   155       </optional>
   156       <optional>
   156       <optional>
   157         <ref name="abstract"/>
   157         <ref name="abstract"/>
   158       </optional>
   158       </optional>
       
   159       <optional>
       
   160         <ref name="cover"/>
       
   161       </optional>
   159       <zeroOrMore>
   162       <zeroOrMore>
   160         <ref name="annotation"/>
   163         <ref name="annotation"/>
   161       </zeroOrMore>
   164       </zeroOrMore>
   162     </interleave>
   165     </interleave>
   163   </define>
   166   </define>
   461   </define>
   464   </define>
   462   <define name="abstract.content">
   465   <define name="abstract.content">
   463     <oneOrMore>
   466     <oneOrMore>
   464       <ref name="p"/>
   467       <ref name="p"/>
   465     </oneOrMore>
   468     </oneOrMore>
       
   469   </define>
       
   470   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cover ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
       
   471   <define name="cover">
       
   472     <element name="cover">
       
   473       <ref name="cover.content"/>
       
   474     </element>
       
   475   </define>
       
   476   <define name="cover.content">
       
   477     <ref name="cover.image"/>
       
   478   </define>
       
   479   <define name="cover.image">
       
   480     <element name="image">
       
   481       <ref name="cover.image.attributes"/>
       
   482     </element>
       
   483   </define>
       
   484   <define name="cover.image.attributes">
       
   485     <ref name="cover.image.id.attribute"/>
       
   486   </define>
       
   487   <define name="cover.image.id.attribute">
       
   488     <attribute name="id">
       
   489       <data type="NMTOKEN"/>
       
   490     </attribute>
   466   </define>
   491   </define>
   467   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ annotation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
   492   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ annotation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
   468   <define name="annotation">
   493   <define name="annotation">
   469     <element name="annotation">
   494     <element name="annotation">
   470       <ref name="annotation.content"/>
   495       <ref name="annotation.content"/>
   860       <oneOrMore>
   885       <oneOrMore>
   861         <ref name="p"/>
   886         <ref name="p"/>
   862       </oneOrMore>
   887       </oneOrMore>
   863     </choice>
   888     </choice>
   864   </define>
   889   </define>
   865   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
   890   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
   866   <!-- ~~~~~~ media -->
   891   <!-- ~~~~~~ media -->
   867   <define name="media">
   892   <define name="media">
   868     <element name="media">
   893     <element name="media">
   869       <ref name="media.content"/>
   894       <ref name="media.content"/>
   870     </element>
   895     </element>
   876     <oneOrMore>
   901     <oneOrMore>
   877       <ref name="image"/>
   902       <ref name="image"/>
   878     </oneOrMore>
   903     </oneOrMore>
   879     <optional>
   904     <optional>
   880       <ref name="caption"/>
   905       <ref name="caption"/>
       
   906     </optional>
       
   907     <optional>
       
   908       <ref name="url"/>
   881     </optional>
   909     </optional>
   882   </define>
   910   </define>
   883   <!-- ~~~~~~ image -->
   911   <!-- ~~~~~~ image -->
   884   <define name="image">
   912   <define name="image">
   885     <element name="image">
   913     <element name="image">