File: preferences.xsd

package info (click to toggle)
josm 0.0.svn18646%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 216,968 kB
  • sloc: java: 389,442; xml: 199,920; perl: 10,155; jsp: 265; sh: 182; makefile: 114; javascript: 74; python: 29
file content (103 lines) | stat: -rw-r--r-- 3,662 bytes parent folder | download | duplicates (9)
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
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://josm.openstreetmap.de/preferences-1.0"
    xmlns:tns="http://josm.openstreetmap.de/preferences-1.0" elementFormDefault="qualified">

    <element name="preferences" type="tns:root"/>

    <complexType name="root">
        <choice minOccurs="0" maxOccurs="unbounded">
            <element name="tag" type="tns:tag" />
            <element name="list" type="tns:list" />
            <element name="lists" type="tns:lists" />
            <element name="maps" type="tns:maps" />
        </choice>
        <attribute name="version" type="string" />
    </complexType>

    <complexType name="tag">
        <attribute name="key" type="string" use="required" />
        <attribute name="value" type="string" use="required"/>
    </complexType>

    <complexType name="list">
        <sequence>
            <element name="entry" type="tns:entry" minOccurs="0" maxOccurs="unbounded"/>
        </sequence>
        <attribute name="key" type="string" use="required" />
    </complexType>

    <complexType name="lists">
        <sequence>
            <element name="list" type="tns:slist" minOccurs="0" maxOccurs="unbounded"/>
        </sequence>
        <attribute name="key" type="string" use="required" />
    </complexType>

    <complexType name="maps">
        <sequence>
            <element name="map" type="tns:map" minOccurs="0" maxOccurs="unbounded"/>
        </sequence>
        <attribute name="key" type="string" use="required" />
    </complexType>

    <complexType name="slist">
        <sequence>
            <element name="entry" type="tns:entry" minOccurs="0" maxOccurs="unbounded"/>
        </sequence>
    </complexType>

    <complexType name="map">
        <sequence>
            <element name="tag" type="tns:tag" minOccurs="0" maxOccurs="unbounded"/>
        </sequence>
    </complexType>

    <complexType name="entry">
        <attribute name="value" type="string" use="required"/>
    </complexType>

    <!-- cache for default preference values -->

    <element name="preferences-defaults" type="tns:root-def"/>

    <complexType name="root-def">
        <choice minOccurs="0" maxOccurs="unbounded">
            <element name="tag" type="tns:tag-def" nillable="true"/>
            <element name="list" type="tns:list-def" nillable="true"/>
            <element name="lists" type="tns:lists-def" nillable="true"/>
            <element name="maps" type="tns:maps-def" nillable="true"/>
        </choice>
        <attribute name="version" type="string" />
    </complexType>

    <complexType name="tag-def">
        <attribute name="key" type="string" use="required" />
        <!-- element must be either nil or have the value attribute -->
        <attribute name="value" type="string" use="optional"/>
        <attribute name="time" type="decimal" use="required"/>
    </complexType>

    <complexType name="list-def">
         <complexContent>
             <extension base="tns:list">
                <attribute name="time" type="decimal" use="required"/>
            </extension>
         </complexContent>
    </complexType>

    <complexType name="lists-def">
         <complexContent>
             <extension base="tns:lists">
                <attribute name="time" type="decimal" use="required"/>
            </extension>
         </complexContent>
    </complexType>

    <complexType name="maps-def">
         <complexContent>
             <extension base="tns:maps">
                <attribute name="time" type="decimal" use="required"/>
            </extension>
         </complexContent>
    </complexType>
</schema>