Changeset babec4b for BOOK/schema


Ignore:
Timestamp:
Apr 23, 2011, 9:34:00 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
df3bd25
Parents:
f59c2ec
Message:

Update the schema and stylesheet to have both a note and a warning box.

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

Legend:

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

    rf59c2ec rbabec4b  
    9191    clfs.attrib.bits,
    9292    clfs.attrib.multilib,
    93     clfs.package.para*
     93    (clfs.package.para | clfs.package.command)*
     94  }
     95 
     96clfs.package.warning =
     97  element c:note {
     98    clfs.attrib.arch,
     99    clfs.attrib.bits,
     100    clfs.attrib.multilib,
     101    (clfs.package.para | clfs.package.command)*
    94102  }
    95103
     
    123131      (clfs.package.para |
    124132       clfs.package.command |
    125        clfs.package.note)+
     133       clfs.package.note |
     134       clfs.package.warning)+
    126135    }+,
    127136   
  • BOOK/schema/clfs/0.1/rng/clfs.rng

    rf59c2ec rbabec4b  
    146146      <ref name="clfs.attrib.multilib"/>
    147147      <zeroOrMore>
    148         <ref name="clfs.package.para"/>
     148        <choice>
     149          <ref name="clfs.package.para"/>
     150          <ref name="clfs.package.command"/>
     151        </choice>
     152      </zeroOrMore>
     153    </element>
     154  </define>
     155  <define name="clfs.package.warning">
     156    <element name="c:note">
     157      <ref name="clfs.attrib.arch"/>
     158      <ref name="clfs.attrib.bits"/>
     159      <ref name="clfs.attrib.multilib"/>
     160      <zeroOrMore>
     161        <choice>
     162          <ref name="clfs.package.para"/>
     163          <ref name="clfs.package.command"/>
     164        </choice>
    149165      </zeroOrMore>
    150166    </element>
     
    202218              <ref name="clfs.package.command"/>
    203219              <ref name="clfs.package.note"/>
     220              <ref name="clfs.package.warning"/>
    204221            </choice>
    205222          </oneOrMore>
Note: See TracChangeset for help on using the changeset viewer.