File: node-attrs-2.8.rng

package info (click to toggle)
pacemaker 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 68,576 kB
  • sloc: xml: 160,564; ansic: 143,744; python: 5,670; sh: 2,969; makefile: 2,426
file content (24 lines) | stat: -rw-r--r-- 829 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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-node-with-attributes"/>
    </start>

    <define name="element-node-with-attributes">
        <element name="node">
            <attribute name="name"> <text /> </attribute>
            <zeroOrMore>
                <element name="attribute">
                    <attribute name="name"> <text /> </attribute>
                    <attribute name="value"> <text /> </attribute>
                    <optional>
                        <attribute name="expected"> <data type="integer" /> </attribute>
                    </optional>
                </element>
            </zeroOrMore>
        </element>
    </define>

</grammar>