capitests: Move test documentation into HACKING file.
[libguestfs.git] / inspector / virt-inspector.rng
1 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
2   <!-- -*- xml -*-
3   This is a RELAX NG schema for the output of 'virt-inspector - -xml'.
4
5   To validate an existing document against this schema, you can
6   use xmllint, like this:
7
8     virt-inspector - -xml Foo > output.xml
9     xmllint - -noout - -relaxng virt-inspector.rng output.xml
10
11   (Note that because of limitations of XML, I have had to put spaces
12   between double dashes in the above code.  Those spaces should not
13   be there in what you type on the command line).
14
15   Written by Richard W.M. Jones, with a little help from Daniel
16   Veillard.
17
18   This file can be freely copied and modified without restrictions.
19   -->
20   <start>
21     <element name="operatingsystems">
22       <oneOrMore>
23         <element name="operatingsystem">
24           <interleave>
25
26             <optional><element name="root"><text/></element></optional>
27             <element name="name">
28               <choice>
29                 <value>linux</value>
30                 <value>windows</value>
31               </choice>
32             </element>
33             <element name="arch"><text/></element>
34             <optional><element name="distro"><text/></element></optional>
35             <optional><element name="product_name"><text/></element></optional>
36             <element name="major_version"><text/></element>
37             <element name="minor_version"><text/></element>
38             <optional><element name="windows_systemroot"><text/></element></optional>
39
40             <optional><element name="package_format"><text/></element></optional>
41             <optional><element name="package_management"><text/></element></optional>
42
43             <ref name="mountpoints"/>
44             <ref name="filesystems"/>
45             <optional><ref name="applications"/></optional>
46
47           </interleave>
48         </element>
49       </oneOrMore>
50     </element>
51   </start>
52
53   <!-- how filesystems are mounted on mount points -->
54   <define name="mountpoints">
55     <element name="mountpoints">
56       <oneOrMore>
57         <element name="mountpoint">
58           <attribute name="dev"><text/></attribute>
59           <text/>
60         </element>
61       </oneOrMore>
62     </element>
63   </define>
64
65   <!-- filesystems detected -->
66   <define name="filesystems">
67     <element name="filesystems">
68       <oneOrMore>
69         <element name="filesystem">
70           <attribute name="dev"><text/></attribute>
71           <interleave>
72             <optional><element name="type"><text/></element></optional>
73             <optional><element name="label"><text/></element></optional>
74             <optional><element name="uuid"><text/></element></optional>
75           </interleave>
76         </element>
77       </oneOrMore>
78     </element>
79   </define>
80
81   <!-- applications installed -->
82   <define name="applications">
83     <element name="applications">
84       <zeroOrMore>
85         <element name="application">
86           <element name="name"><text/></element>
87           <optional><element name="display_name"><text/></element></optional>
88           <optional><element name="epoch"><text/></element></optional>
89           <optional><element name="version"><text/></element></optional>
90           <optional><element name="release"><text/></element></optional>
91           <optional><element name="install_path"><text/></element></optional>
92           <optional><element name="publisher"><text/></element></optional>
93           <optional><element name="url"><text/></element></optional>
94           <optional><element name="source_package"><text/></element></optional>
95           <optional><element name="summary"><text/></element></optional>
96           <optional><element name="description"><text/></element></optional>
97         </element>
98       </zeroOrMore>
99     </element>
100   </define>
101
102 </grammar>