123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <grammar xmlns="http://relaxng.org/ns/structure/1.0">
- <start>
- <ref name="comps"/>
- </start>
- <define name="package-name">
- <text/>
- </define>
- <define name="group-name">
- <text/>
- </define>
- <define name="lang">
- <text/>
- </define>
- <define name="description-text">
- <text/>
- </define>
- <define name="comps">
- <element name="comps">
- <oneOrMore>
- <ref name="group"/>
- </oneOrMore>
- <ref name="grouphierarchy"/>
- <oneOrMore>
- <ref name="package"/>
- </oneOrMore>
- </element>
- </define>
- <define name="group">
- <element name="group">
- <element name="id">
- <ref name="group-name"/>
- </element>
- <interleave>
- <ref name="names"/>
- <optional>
- <element name="default">
- <choice>
- <value>true</value>
- <value>false</value>
- </choice>
- </element>
- </optional>
- <optional>
- <ref name="descriptions"/>
- </optional>
- <optional>
- <element name="uservisible">
- <choice>
- <value>true</value>
- <value>false</value>
- </choice>
- </element>
- </optional>
- <optional>
- <element name="langonly">
- <ref name="lang"/>
- </element>
- </optional>
- </interleave>
- <optional>
- <element name="grouplist">
- <zeroOrMore>
- <element name="groupreq">
- <ref name="group-name"/>
- </element>
- </zeroOrMore>
- <zeroOrMore>
- <element name="metapkg">
- <attribute name="type">
- <choice>
- <value>default</value>
- <!-- <value>mandatory</value> ?? -->
- <value>optional</value>
- </choice>
- </attribute>
- <ref name="package-name"/>
- </element>
- </zeroOrMore>
- </element>
- </optional>
- <optional>
- <element name="packagelist">
- <oneOrMore>
- <element name="packagereq">
- <attribute name="type">
- <choice>
- <value>default</value>
- <value>mandatory</value>
- <value>optional</value>
- </choice>
- </attribute>
- <optional>
- <attribute name="requires">
- <ref name="package-name"/>
- </attribute>
- </optional>
- <ref name="package-name"/>
- </element>
- </oneOrMore>
- </element>
- </optional>
- </element>
- </define>
- <define name="grouphierarchy">
- <element name="grouphierarchy">
- <oneOrMore>
- <ref name="category"/>
- </oneOrMore>
- </element>
- </define>
- <define name="category">
- <element name="category">
- <ref name="names"/>
- <optional>
- <element name="subcategories">
- <oneOrMore>
- <element name="subcategory">
- <ref name="package-name"/>
- </element>
- </oneOrMore>
- </element>
- </optional>
- </element>
- </define>
- <define name="package">
- <element name="package">
- <element name="name">
- <ref name="package-name"/>
- </element>
- <element name="dependencylist">
- <zeroOrMore>
- <element name="dependency">
- <ref name="package-name"/>
- </element>
- </zeroOrMore>
- </element>
- </element>
- </define>
- <define name="names">
- <element name="name">
- <ref name="description-text"/>
- </element>
- <zeroOrMore>
- <element name="name">
- <attribute name="xml:lang">
- <ref name="lang"/>
- </attribute>
- <ref name="description-text"/>
- </element>
- </zeroOrMore>
- </define>
- <define name="descriptions">
- <element name="description">
- <ref name="description-text"/>
- </element>
- <zeroOrMore>
- <element name="description">
- <attribute name="xml:lang">
- <ref name="lang"/>
- </attribute>
- <ref name="description-text"/>
- </element>
- </zeroOrMore>
- </define>
- </grammar>
|