home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / zypp / schema / xmlstore / resolvable.rng < prev   
Extensible Markup Language  |  2006-11-29  |  6KB  |  252 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <grammar ns="http://www.novell.com/metadata/zypp/xml-store" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  3.   <define name="boolean">
  4.     <choice>
  5.       <value>true</value>
  6.       <value>false</value>
  7.     </choice>
  8.   </define>
  9.   <define name="attribute-kind">
  10.     <attribute name="kind">
  11.       <choice>
  12.         <value>pattern</value>
  13.         <value>package</value>
  14.         <value>patch</value>
  15.         <value>script</value>
  16.         <value>message</value>
  17.         <value>product</value>
  18.         <value>atom</value>
  19.       </choice>
  20.     </attribute>
  21.   </define>
  22.   <define name="arch">
  23.     <choice>
  24.       <value>noarch</value>
  25.       <value>athlon</value>
  26.       <value>i386</value>
  27.       <value>i486</value>
  28.       <value>i586</value>
  29.       <value>i686</value>
  30.       <value>ia64</value>
  31.       <value>ppc</value>
  32.       <value>ppc64</value>
  33.       <value>s390</value>
  34.       <value>s390x</value>
  35.       <value>x86_64</value>
  36.       <value>src</value>
  37.     </choice>
  38.   </define>
  39.   <define name="element-version">
  40.     <element name="version">
  41.       <ref name="version"/>
  42.     </element>
  43.   </define>
  44.   <define name="translated-text">
  45.     <optional>
  46.       <attribute name="lang"/>
  47.     </optional>
  48.     <text/>
  49.   </define>
  50.   <define name="version">
  51.     <attribute name="ver"/>
  52.     <attribute name="rel"/>
  53.     <optional>
  54.       <attribute name="epoch">
  55.         <data type="nonNegativeInteger"/>
  56.       </attribute>
  57.     </optional>
  58.     <empty/>
  59.   </define>
  60.   <define name="element-summary">
  61.     <element name="summary">
  62.       <ref name="translated-text"/>
  63.     </element>
  64.   </define>
  65.   <define name="element-description">
  66.     <element name="description">
  67.       <ref name="translated-text"/>
  68.     </element>
  69.   </define>
  70.   <define name="capability">
  71.     <element name="capability">
  72.       <ref name="attribute-kind"/>
  73.       <text/>
  74.     </element>
  75.   </define>
  76.   <define name="capability-set">
  77.     <zeroOrMore>
  78.       <ref name="capability"/>
  79.     </zeroOrMore>
  80.   </define>
  81.   <define name="provides">
  82.     <element name="provides">
  83.       <ref name="capability-set"/>
  84.     </element>
  85.   </define>
  86.   <define name="requires">
  87.     <element name="requires">
  88.       <ref name="capability-set"/>
  89.     </element>
  90.   </define>
  91.   <define name="prerequires">
  92.     <element name="prerequires">
  93.       <ref name="capability-set"/>
  94.     </element>
  95.   </define>
  96.   <define name="conflicts">
  97.     <element name="conflicts">
  98.       <ref name="capability-set"/>
  99.     </element>
  100.   </define>
  101.   <define name="suggests">
  102.     <element name="suggests">
  103.       <ref name="capability-set"/>
  104.     </element>
  105.   </define>
  106.   <define name="freshens">
  107.     <element name="freshens">
  108.       <ref name="capability-set"/>
  109.     </element>
  110.   </define>
  111.   <define name="supplements">
  112.     <element name="supplements">
  113.       <ref name="capability-set"/>
  114.     </element>
  115.   </define>
  116.   <define name="enhances">
  117.     <element name="enhances">
  118.       <ref name="capability-set"/>
  119.     </element>
  120.   </define>
  121.   <define name="recommends">
  122.     <element name="recommends">
  123.       <ref name="capability-set"/>
  124.     </element>
  125.   </define>
  126.   <define name="obsoletes">
  127.     <element name="obsoletes">
  128.       <ref name="capability-set"/>
  129.     </element>
  130.   </define>
  131.   <define name="dependencies">
  132.     <optional>
  133.       <ref name="provides"/>
  134.     </optional>
  135.     <optional>
  136.       <ref name="prerequires"/>
  137.     </optional>
  138.     <optional>
  139.       <ref name="conflicts"/>
  140.     </optional>
  141.     <optional>
  142.       <ref name="obsoletes"/>
  143.     </optional>
  144.     <optional>
  145.       <ref name="freshens"/>
  146.     </optional>
  147.     <optional>
  148.       <ref name="requires"/>
  149.     </optional>
  150.     <optional>
  151.       <ref name="recommends"/>
  152.     </optional>
  153.     <optional>
  154.       <ref name="enhances"/>
  155.     </optional>
  156.     <optional>
  157.       <ref name="supplements"/>
  158.     </optional>
  159.     <optional>
  160.       <ref name="suggests"/>
  161.     </optional>
  162.   </define>
  163.   <define name="element-install-notify">
  164.     <element name="install-notify">
  165.       <ref name="translated-text"/>
  166.     </element>
  167.   </define>
  168.   <define name="element-delete-notify">
  169.     <element name="delete-notify">
  170.       <ref name="translated-text"/>
  171.     </element>
  172.   </define>
  173.   <define name="element-license-to-confirm">
  174.     <element name="license-to-confirm">
  175.       <ref name="translated-text"/>
  176.     </element>
  177.   </define>
  178.   <define name="element-vendor">
  179.     <element name="vendor">
  180.       <text/>
  181.     </element>
  182.   </define>
  183.   <define name="element-size">
  184.     <element name="size">
  185.       <data type="nonNegativeInteger"/>
  186.     </element>
  187.   </define>
  188.   <define name="element-archive-size">
  189.     <element name="archive-size">
  190.       <data type="nonNegativeInteger"/>
  191.     </element>
  192.   </define>
  193.   <define name="element-install-only">
  194.     <element name="install-only">
  195.       <ref name="boolean"/>
  196.     </element>
  197.   </define>
  198.   <define name="element-build-time">
  199.     <element name="build-time">
  200.       <data type="nonNegativeInteger"/>
  201.     </element>
  202.   </define>
  203.   <define name="element-install-time">
  204.     <element name="install-time">
  205.       <data type="nonNegativeInteger"/>
  206.     </element>
  207.   </define>
  208.   <define name="resolvable-data">
  209.     <element name="name">
  210.       <text/>
  211.     </element>
  212.     <ref name="element-version"/>
  213.     <element name="arch">
  214.       <ref name="arch"/>
  215.     </element>
  216.     <ref name="dependencies"/>
  217.     <oneOrMore>
  218.       <ref name="element-summary"/>
  219.     </oneOrMore>
  220.     <oneOrMore>
  221.       <ref name="element-description"/>
  222.     </oneOrMore>
  223.     <zeroOrMore>
  224.       <ref name="element-install-notify"/>
  225.     </zeroOrMore>
  226.     <zeroOrMore>
  227.       <ref name="element-delete-notify"/>
  228.     </zeroOrMore>
  229.     <zeroOrMore>
  230.       <ref name="element-license-to-confirm"/>
  231.     </zeroOrMore>
  232.     <optional>
  233.       <ref name="element-vendor"/>
  234.     </optional>
  235.     <optional>
  236.       <ref name="element-size"/>
  237.     </optional>
  238.     <optional>
  239.       <ref name="element-archive-size"/>
  240.     </optional>
  241.     <optional>
  242.       <ref name="element-install-only"/>
  243.     </optional>
  244.     <optional>
  245.       <ref name="element-build-time"/>
  246.     </optional>
  247.     <optional>
  248.       <ref name="element-install-time"/>
  249.     </optional>
  250.   </define>
  251. </grammar>
  252.