summaryrefslogtreecommitdiffstats
path: root/xml/nodes-1.0.rng
blob: 82153ab1cf1e4310e01cadb5f1c2326eed34e92b (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
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" 
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <start>
      <ref name="element-nodes"/>
  </start>

  <define name="element-nodes">
    <element name="nodes">
      <zeroOrMore>
        <element name="node">
          <attribute name="id"><text/></attribute>
          <attribute name="uname"><text/></attribute>
          <attribute name="type">
            <choice>
              <value>normal</value>
              <value>member</value>
              <value>ping</value>
            </choice>
          </attribute>
          <optional>
            <attribute name="description"><text/></attribute>
          </optional>
          <zeroOrMore>
            <element name="instance_attributes">
              <externalRef href="nvset.rng"/>
            </element>
          </zeroOrMore>
        </element>
      </zeroOrMore>
    </element>
  </define>

</grammar>