summaryrefslogtreecommitdiffstats
path: root/doc/vty/vtydoc.xsd
blob: 53a67a367ee84e399ba9710ebc44f37f51000f3a (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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
    xmlns="urn:osmocom:xml:libosmocore:vty:doc:1.0"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="urn:osmocom:xml:libosmocore:vty:doc:1.0"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified">

    <xs:complexType name="ParamType">
        <xs:attribute name="name" type="xs:string" use="required" />
        <xs:attribute name="doc" type="xs:string" use="required" />
    </xs:complexType>

    <xs:complexType name="ParamsType">
        <xs:sequence>
            <xs:element name="param" type="ParamType" maxOccurs="unbounded" />
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="CommandType">
        <xs:sequence>
            <xs:element name="doc" type="xs:string" minOccurs="0" maxOccurs="1" />
            <xs:element name="params" type="ParamsType" minOccurs="1" maxOccurs="1"/>
            <xs:element name="enter" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
        </xs:sequence>
        <xs:attribute name="id" type="xs:string" use="required" />
    </xs:complexType>

    <xs:complexType name="NodeType">
	<xs:sequence>
		<xs:element name="command" type="CommandType" minOccurs="0" maxOccurs="unbounded"/>
	</xs:sequence>
        <xs:attribute name="id" type="xs:anyURI"/>
        <xs:attribute name="name" type="xs:string"/>
    </xs:complexType>

    <!-- the main entry -->
    <xs:element name="vtydoc">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="node" type="NodeType" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>