Changeset 9db1668 for BOOK/schema


Ignore:
Timestamp:
Apr 23, 2011, 4:53:20 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
4f597816
Parents:
d10f81a
Message:

Parse inline items as well.

Location:
BOOK/schema/clfs/0.1/rng
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOOK/schema/clfs/0.1/rng/clfs.rnc

    rd10f81a r9db1668  
    3232
    3333clfs.inline =
    34   (clfs.inline.strong |
     34  (clfs.inline.literal |
     35   clfs.inline.replaceable |
     36   clfs.inline.application |
    3537   clfs.inline.dirname |
    3638   clfs.inline.filename |
    3739   clfs.inline.command |
    38    text)+
     40   text)*
    3941
    40 clfs.inline.strong =
    41   element c:strong {
     42clfs.inline.common.attrib =
     43  clfs.attrib.arch,
     44  clfs.attrib.bits,
     45  clfs.attrib.multilib
     46
     47clfs.inline.literal =
     48  element c:literal {
     49    clfs.inline.common.attrib,
    4250    clfs.inline
    4351  }
    44 clfs.inline.dirname =
    45   element c:dirname {
     52clfs.inline.replaceable =
     53  element c:replaceable {
     54    clfs.inline.common.attrib,
    4655    clfs.inline
     56  }
     57clfs.inline.application =
     58  element c:application {
     59    clfs.inline.common.attrib,
     60    clfs.inline
     61  }
     62clfs.inline.dirname =
     63  element c:dirname {
     64    clfs.inline.common.attrib,
     65    clfs.inline
    4766  }
    4867clfs.inline.filename =
    4968  element c:filename {
     69    clfs.inline.common.attrib,
    5070    clfs.inline
    5171  }
    5272clfs.inline.command =
    5373  element c:command {
     74    clfs.inline.common.attrib,
    5475    clfs.inline
    5576  }
  • BOOK/schema/clfs/0.1/rng/clfs.rng

    rd10f81a r9db1668  
    7878  <!-- Inline Elements -->
    7979  <define name="clfs.inline">
    80     <oneOrMore>
     80    <zeroOrMore>
    8181      <choice>
    82         <ref name="clfs.inline.strong"/>
     82        <ref name="clfs.inline.literal"/>
     83        <ref name="clfs.inline.replaceable"/>
     84        <ref name="clfs.inline.application"/>
    8385        <ref name="clfs.inline.dirname"/>
    8486        <ref name="clfs.inline.filename"/>
     
    8688        <text/>
    8789      </choice>
    88     </oneOrMore>
    89   </define>
    90   <define name="clfs.inline.strong">
    91     <element name="c:strong">
     90    </zeroOrMore>
     91  </define>
     92  <define name="clfs.inline.common.attrib">
     93    <ref name="clfs.attrib.arch"/>
     94    <ref name="clfs.attrib.bits"/>
     95    <ref name="clfs.attrib.multilib"/>
     96  </define>
     97  <define name="clfs.inline.literal">
     98    <element name="c:literal">
     99      <ref name="clfs.inline.common.attrib"/>
     100      <ref name="clfs.inline"/>
     101    </element>
     102  </define>
     103  <define name="clfs.inline.replaceable">
     104    <element name="c:replaceable">
     105      <ref name="clfs.inline.common.attrib"/>
     106      <ref name="clfs.inline"/>
     107    </element>
     108  </define>
     109  <define name="clfs.inline.application">
     110    <element name="c:application">
     111      <ref name="clfs.inline.common.attrib"/>
    92112      <ref name="clfs.inline"/>
    93113    </element>
     
    95115  <define name="clfs.inline.dirname">
    96116    <element name="c:dirname">
     117      <ref name="clfs.inline.common.attrib"/>
    97118      <ref name="clfs.inline"/>
    98119    </element>
     
    100121  <define name="clfs.inline.filename">
    101122    <element name="c:filename">
     123      <ref name="clfs.inline.common.attrib"/>
    102124      <ref name="clfs.inline"/>
    103125    </element>
     
    105127  <define name="clfs.inline.command">
    106128    <element name="c:command">
     129      <ref name="clfs.inline.common.attrib"/>
    107130      <ref name="clfs.inline"/>
    108131    </element>
Note: See TracChangeset for help on using the changeset viewer.