Changeset d4c109d


Ignore:
Timestamp:
Apr 24, 2011, 1:02:46 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
1bdabc9
Parents:
6d86eb1
Message:

Add xml:base to items that may be included in another page using an xi:include.

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

Legend:

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

    r6d86eb1 rd4c109d  
    1717    } | clfs.sect.package )
    1818}
     19
     20# Common Attributes
     21xml.attrib.base =
     22  attribute xml:base {
     23    text
     24  }?
     25xml.attrib.id =
     26  attribute id {
     27     text
     28  }
    1929
    2030# Extend the standard profiling attributes
     
    116126clfs.sect.package =
    117127  element c:package {
    118     attribute xml:base { text }?,
    119     attribute id { text },
     128    xml.attrib.base,
     129    xml.attrib.id,
    120130    clfs.attrib.arch,
    121131    clfs.attrib.bits,
     
    125135    },
    126136   
    127     element c:title { text },
    128     element c:version { text },
    129     element c:variant { text }?,
    130     element c:description { clfs.inline },
     137    element c:title {
     138      xml.attrib.base,
     139      text
     140    },
     141    element c:version {
     142      xml.attrib.base,
     143      text
     144    },
     145    element c:variant {
     146      xml.attrib.base,
     147      text
     148    }?,
     149    element c:description {
     150      xml.attrib.base,
     151      clfs.inline
     152    },
    131153   
    132154    element c:install {
  • BOOK/schema/clfs/0.1/rng/clfs.rng

    r6d86eb1 rd4c109d  
    4949    </define>
    5050  </include>
     51  <!-- Common Attributes -->
     52  <define name="xml.attrib.base">
     53    <optional>
     54      <attribute name="xml:base"/>
     55    </optional>
     56  </define>
     57  <define name="xml.attrib.id">
     58    <attribute name="id"/>
     59  </define>
    5160  <!-- Extend the standard profiling attributes -->
    5261  <define name="local.effectivity.attrib" combine="interleave">
     
    192201  <define name="clfs.sect.package">
    193202    <element name="c:package">
    194       <optional>
    195         <attribute name="xml:base"/>
    196       </optional>
    197       <attribute name="id"/>
     203      <ref name="xml.attrib.base"/>
     204      <ref name="xml.attrib.id"/>
    198205      <ref name="clfs.attrib.arch"/>
    199206      <ref name="clfs.attrib.bits"/>
     
    206213      </attribute>
    207214      <element name="c:title">
     215        <ref name="xml.attrib.base"/>
    208216        <text/>
    209217      </element>
    210218      <element name="c:version">
     219        <ref name="xml.attrib.base"/>
    211220        <text/>
    212221      </element>
    213222      <optional>
    214223        <element name="c:variant">
     224          <ref name="xml.attrib.base"/>
    215225          <text/>
    216226        </element>
    217227      </optional>
    218228      <element name="c:description">
     229        <ref name="xml.attrib.base"/>
    219230        <ref name="clfs.inline"/>
    220231      </element>
Note: See TracChangeset for help on using the changeset viewer.