RelaxNG/publiset.rng
changeset 23 814ea44c2469
parent 21 7c09024d5634
child 26 cc3ab0784a7b
equal deleted inserted replaced
22:94b8e4454c47 23:814ea44c2469
    39     </element>
    39     </element>
    40   </define>
    40   </define>
    41   <define name="composition.attributes">
    41   <define name="composition.attributes">
    42     <interleave>
    42     <interleave>
    43       <ref name="composition.id.attribute"/>
    43       <ref name="composition.id.attribute"/>
    44       <optional>
       
    45         <ref name="base.attribute"/>
       
    46       </optional>
       
    47       <ref name="remap.attributes"/>
    44       <ref name="remap.attributes"/>
    48     </interleave>
    45     </interleave>
    49   </define>
    46   </define>
    50   <define name="composition.id.attribute">
    47   <define name="composition.id.attribute">
    51     <attribute name="xml:id">
    48     <attribute name="xml:id">
    52       <data type="ID"/>
    49       <data type="ID"/>
    53     </attribute>
       
    54   </define>
       
    55   <define name="base.attribute">
       
    56     <attribute name="xml:base">
       
    57       <data type="anyURI"/>
       
    58     </attribute>
    50     </attribute>
    59   </define>
    51   </define>
    60   <define name="composition.content">
    52   <define name="composition.content">
    61     <optional>
    53     <optional>
    62       <ref name="composition.head"/>
    54       <ref name="composition.head"/>
   300   <define name="composition.division.attributes">
   292   <define name="composition.division.attributes">
   301     <interleave>
   293     <interleave>
   302       <optional>
   294       <optional>
   303         <ref name="base.attribute"/>
   295         <ref name="base.attribute"/>
   304       </optional>
   296       </optional>
       
   297       <optional>
       
   298         <ref name="xslt.attribute"/>
       
   299       </optional>
       
   300       <optional>
       
   301         <ref name="xpath.attribute"/>
       
   302       </optional>
   305       <ref name="remap.attributes"/>
   303       <ref name="remap.attributes"/>
   306     </interleave>
   304     </interleave>
   307   </define>
   305   </define>
   308   <define name="selection.division.attributes">
   306   <define name="selection.division.attributes">
   309     <optional>
   307     <optional>
   310       <ref name="base.attribute"/>
   308       <ref name="base.attribute"/>
   311     </optional>
   309     </optional>
       
   310   </define>
       
   311   <define name="base.attribute">
       
   312     <attribute name="base">
       
   313       <data type="anyURI"/>
       
   314     </attribute>
       
   315   </define>
       
   316   <define name="xslt.attribute">
       
   317     <attribute name="xslt">
       
   318       <data type="anyURI"/>
       
   319     </attribute>
       
   320   </define>
       
   321   <define name="xpath.attribute">
       
   322     <attribute name="xpath"/>
   312   </define>
   323   </define>
   313   <define name="composition.division.content">
   324   <define name="composition.division.content">
   314     <optional>
   325     <optional>
   315       <ref name="composition.head"/>
   326       <ref name="composition.head"/>
   316     </optional>
   327     </optional>
   351     </element>
   362     </element>
   352   </define>
   363   </define>
   353   <define name="composition.file.attributes">
   364   <define name="composition.file.attributes">
   354     <interleave>
   365     <interleave>
   355       <optional>
   366       <optional>
       
   367         <ref name="xslt.attribute"/>
       
   368       </optional>
       
   369       <optional>
   356         <ref name="xpath.attribute"/>
   370         <ref name="xpath.attribute"/>
   357       </optional>
   371       </optional>
   358       <optional>
       
   359         <ref name="transform.attribute"/>
       
   360       </optional>
       
   361       <ref name="remap.attributes"/>
   372       <ref name="remap.attributes"/>
   362     </interleave>
   373     </interleave>
   363   </define>
   374   </define>
   364   <define name="selection.file.attributes">
   375   <define name="selection.file.attributes">
   365     <interleave>
   376     <interleave>
   366       <optional>
   377       <optional>
   367         <ref name="xpath.attribute"/>
   378         <ref name="xpath.attribute"/>
   368       </optional>
   379       </optional>
   369       <optional>
   380       <optional>
   370         <ref name="transform.attribute"/>
   381         <ref name="xslt.attribute"/>
   371       </optional>
   382       </optional>
   372     </interleave>
   383     </interleave>
   373   </define>
       
   374   <define name="xpath.attribute">
       
   375     <attribute name="xpath"/>
       
   376   </define>
       
   377   <define name="transform.attribute">
       
   378     <attribute name="transform">
       
   379       <list>
       
   380         <oneOrMore>
       
   381           <data type="token">
       
   382             <param name="pattern">(xsl|regex):\S+</param>
       
   383           </data>
       
   384         </oneOrMore>
       
   385       </list>
       
   386     </attribute>
       
   387   </define>
   384   </define>
   388   <define name="file.content">
   385   <define name="file.content">
   389     <data type="anyURI"/>
   386     <data type="anyURI"/>
   390   </define>
   387   </define>
   391   <!--
   388   <!--