RelaxNG/publiset.rng
changeset 40 7cfe2d4957c6
parent 39 7faa356bad3e
child 48 136c5977c215
equal deleted inserted replaced
39:7faa356bad3e 40:7cfe2d4957c6
   161       </zeroOrMore>
   161       </zeroOrMore>
   162       <optional>
   162       <optional>
   163         <ref name="publisher"/>
   163         <ref name="publisher"/>
   164       </optional>
   164       </optional>
   165       <optional>
   165       <optional>
   166         <ref name="source"/>
       
   167       </optional>
       
   168       <optional>
       
   169         <ref name="cover"/>
   166         <ref name="cover"/>
   170       </optional>
   167       </optional>
   171     </interleave>
   168     </interleave>
   172   </define>
   169   </define>
   173   <define name="division.head.content">
   170   <define name="division.head.content">
   327       <ref name="label.content"/>
   324       <ref name="label.content"/>
   328     </element>
   325     </element>
   329   </define>
   326   </define>
   330   <define name="label.content">
   327   <define name="label.content">
   331     <ref name="inlines"/>
   328     <ref name="inlines"/>
   332   </define>
       
   333   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
       
   334   <!-- ~~~~~~ source -->
       
   335   <define name="source">
       
   336     <element name="source">
       
   337       <choice>
       
   338         <group>
       
   339           <attribute name="type">
       
   340             <value>book</value>
       
   341           </attribute>
       
   342           <ref name="source.content.book"/>
       
   343         </group>
       
   344         <group>
       
   345           <attribute name="type">
       
   346             <value>file</value>
       
   347           </attribute>
       
   348           <ref name="source.content.file"/>
       
   349         </group>
       
   350       </choice>
       
   351     </element>
       
   352   </define>
       
   353   <define name="source.content.book">
       
   354     <ref name="identifier.ean"/>
       
   355     <optional>
       
   356       <ref name="title"/>
       
   357     </optional>
       
   358     <zeroOrMore>
       
   359       <ref name="pagenumber"/>
       
   360     </zeroOrMore>
       
   361   </define>
       
   362   <define name="source.content.file">
       
   363     <ref name="identifier.uri"/>
       
   364   </define>
       
   365   <!-- ~~~~~~ pagenumber -->
       
   366   <define name="pagenumber">
       
   367     <element name="pagenumber">
       
   368       <ref name="pagenumber.attributes"/>
       
   369     </element>
       
   370   </define>
       
   371   <define name="pagenumber.attributes">
       
   372     <ref name="pagenumber.value.attribute"/>
       
   373   </define>
       
   374   <define name="pagenumber.value.attribute">
       
   375     <attribute name="value">
       
   376       <ref name="pagenumber.value.enumeration"/>
       
   377     </attribute>
       
   378   </define>
       
   379   <define name="pagenumber.value.enumeration">
       
   380     <data type="positiveInteger"/>
       
   381   </define>
   329   </define>
   382   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cover ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
   330   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cover ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
   383   <define name="cover">
   331   <define name="cover">
   384     <element name="cover">
   332     <element name="cover">
   385       <ref name="cover.content"/>
   333       <ref name="cover.content"/>