File: words.xsd

package info (click to toggle)
python-xmlschema 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,208 kB
  • sloc: python: 39,174; xml: 1,282; makefile: 36
file content (32 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download
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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="words">
        <xs:complexType>
            <xs:sequence maxOccurs="unbounded">
                <xs:element name="word" type="xs:string"/>
            </xs:sequence>
        </xs:complexType>
        <xs:key name="key">
          <xs:selector xpath="./word"/>
          <xs:field xpath="."/>
        </xs:key>
    </xs:element>

    <xs:simpleType name="numbers">
        <xs:restriction base="xs:string">
            <xs:enumeration value="one"/>
            <xs:enumeration value="two"/>
            <xs:enumeration value="three"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="letters">
        <xs:restriction base="xs:string">
            <xs:enumeration value="alpha"/>
            <xs:enumeration value="beta"/>
            <xs:enumeration value="gamma"/>
            <xs:enumeration value="delta"/>
        </xs:restriction>
    </xs:simpleType>

</xs:schema>