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