RelaxNG/publidoc.rng
changeset 43 5be33d03941a
parent 42 32381a87f807
child 44 ae64c01c37f1
equal deleted inserted replaced
42:32381a87f807 43:5be33d03941a
   933   <define name="media.content">
   933   <define name="media.content">
   934     <optional>
   934     <optional>
   935       <ref name="block.head"/>
   935       <ref name="block.head"/>
   936     </optional>
   936     </optional>
   937     <oneOrMore>
   937     <oneOrMore>
   938       <ref name="image"/>
   938       <choice>
       
   939         <ref name="image"/>
       
   940         <ref name="sound"/>
       
   941       </choice>
   939     </oneOrMore>
   942     </oneOrMore>
   940     <optional>
   943     <optional>
   941       <ref name="caption"/>
   944       <ref name="caption"/>
   942     </optional>
   945     </optional>
   943     <optional>
   946     <optional>
   961   </define>
   964   </define>
   962   <define name="image.content">
   965   <define name="image.content">
   963     <optional>
   966     <optional>
   964       <ref name="copyright"/>
   967       <ref name="copyright"/>
   965     </optional>
   968     </optional>
       
   969   </define>
       
   970   <!-- ~~~~~~ sound -->
       
   971   <define name="sound">
       
   972     <element name="sound">
       
   973       <ref name="sound.attributes"/>
       
   974     </element>
       
   975   </define>
       
   976   <define name="sound.attributes">
       
   977     <ref name="media.id.attribute"/>
   966   </define>
   978   </define>
   967   <!--
   979   <!--
   968     =============================================================================
   980     =============================================================================
   969                                     INLINE LEVEL
   981                                     INLINE LEVEL
   970     =============================================================================
   982     =============================================================================
  1283       <ref name="link.attributes"/>
  1295       <ref name="link.attributes"/>
  1284       <ref name="link.content"/>
  1296       <ref name="link.content"/>
  1285     </element>
  1297     </element>
  1286   </define>
  1298   </define>
  1287   <define name="link.attributes">
  1299   <define name="link.attributes">
  1288     <interleave>
  1300     <choice>
  1289       <choice>
  1301       <ref name="uri.attribute"/>
  1290         <ref name="uri.attribute"/>
  1302       <ref name="idref.attribute"/>
  1291         <ref name="idref.attribute"/>
  1303     </choice>
  1292       </choice>
       
  1293       <optional>
       
  1294         <ref name="anchor.attribute"/>
       
  1295       </optional>
       
  1296     </interleave>
       
  1297   </define>
  1304   </define>
  1298   <define name="uri.attribute">
  1305   <define name="uri.attribute">
  1299     <attribute name="uri">
  1306     <attribute name="uri">
  1300       <data type="anyURI"/>
  1307       <data type="anyURI"/>
  1301     </attribute>
  1308     </attribute>
  1303   <define name="idref.attribute">
  1310   <define name="idref.attribute">
  1304     <attribute name="idref">
  1311     <attribute name="idref">
  1305       <data type="IDREF"/>
  1312       <data type="IDREF"/>
  1306     </attribute>
  1313     </attribute>
  1307   </define>
  1314   </define>
  1308   <define name="anchor.attribute">
       
  1309     <attribute name="anchor">
       
  1310       <data type="NCName"/>
       
  1311     </attribute>
       
  1312   </define>
       
  1313   <define name="link.content">
  1315   <define name="link.content">
  1314     <ref name="inlines"/>
  1316     <ref name="inlines"/>
  1315   </define>
  1317   </define>
  1316   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ anchor ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  1318   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ anchor ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  1317   <define name="anchor">
  1319   <define name="anchor">
  1318     <element name="anchor">
  1320     <element name="anchor">
  1319       <choice>
  1321       <ref name="anchor.attributes"/>
  1320         <group>
       
  1321           <ref name="anchor.attributes"/>
       
  1322           <ref name="anchor.content"/>
       
  1323         </group>
       
  1324         <attribute name="startref">
       
  1325           <data type="IDREF"/>
       
  1326         </attribute>
       
  1327       </choice>
       
  1328     </element>
  1322     </element>
  1329   </define>
  1323   </define>
  1330   <define name="anchor.attributes">
  1324   <define name="anchor.attributes">
  1331     <ref name="anchor.id.attribute"/>
  1325     <ref name="anchor.id.attribute"/>
  1332   </define>
  1326   </define>
  1333   <define name="anchor.id.attribute">
  1327   <define name="anchor.id.attribute">
  1334     <attribute name="xml:id">
  1328     <attribute name="xml:id">
  1335       <data type="ID"/>
  1329       <data type="ID"/>
  1336     </attribute>
  1330     </attribute>
  1337   </define>
  1331   </define>
  1338   <define name="anchor.content">
       
  1339     <ref name="inlines"/>
       
  1340   </define>
       
  1341 </grammar>
  1332 </grammar>