Subversion Repositories php-qbpwcf

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 liveuser 1
<?xml version="1.0" encoding="UTF-8" ?>
2
 
3
<xsd:schema xmlns="http://symfony.com/schema/routing"
4
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5
    targetNamespace="http://symfony.com/schema/routing"
6
    elementFormDefault="qualified">
7
 
8
  <xsd:annotation>
9
    <xsd:documentation><![CDATA[
10
      Symfony XML Routing Schema, version 1.0
11
      Authors: Fabien Potencier, Tobias Schultze
12
 
13
      This scheme defines the elements and attributes that can be used to define
14
      routes. A route maps an HTTP request to a set of configuration variables.
15
    ]]></xsd:documentation>
16
  </xsd:annotation>
17
 
18
  <xsd:element name="routes" type="routes" />
19
 
20
  <xsd:complexType name="routes">
21
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
22
      <xsd:element name="import" type="import" />
23
      <xsd:element name="route" type="route" />
24
    </xsd:choice>
25
  </xsd:complexType>
26
 
27
  <xsd:complexType name="localized-path">
28
    <xsd:simpleContent>
29
      <xsd:extension base="xsd:string">
30
        <xsd:attribute name="locale" type="xsd:string" use="required" />
31
      </xsd:extension>
32
    </xsd:simpleContent>
33
  </xsd:complexType>
34
 
35
  <xsd:group name="configs">
36
    <xsd:choice>
37
      <xsd:element name="default" nillable="true" type="default" />
38
      <xsd:element name="requirement" type="element" />
39
      <xsd:element name="option" type="element" />
40
      <xsd:element name="condition" type="xsd:string" />
41
    </xsd:choice>
42
  </xsd:group>
43
 
44
  <xsd:complexType name="route">
45
    <xsd:sequence>
46
      <xsd:group ref="configs" minOccurs="0" maxOccurs="unbounded" />
47
      <xsd:element name="path" type="localized-path" minOccurs="0" maxOccurs="unbounded" />
48
      <xsd:element name="host" type="localized-path" minOccurs="0" maxOccurs="unbounded" />
49
    </xsd:sequence>
50
    <xsd:attribute name="id" type="xsd:string" use="required" />
51
    <xsd:attribute name="path" type="xsd:string" />
52
    <xsd:attribute name="host" type="xsd:string" />
53
    <xsd:attribute name="schemes" type="xsd:string" />
54
    <xsd:attribute name="methods" type="xsd:string" />
55
    <xsd:attribute name="controller" type="xsd:string" />
56
    <xsd:attribute name="locale" type="xsd:string" />
57
    <xsd:attribute name="format" type="xsd:string" />
58
    <xsd:attribute name="utf8" type="xsd:boolean" />
59
    <xsd:attribute name="stateless" type="xsd:boolean" />
60
  </xsd:complexType>
61
 
62
  <xsd:complexType name="import">
63
    <xsd:sequence maxOccurs="unbounded" minOccurs="0">
64
      <xsd:group ref="configs" minOccurs="0" maxOccurs="unbounded" />
65
      <xsd:element name="prefix" type="localized-path" minOccurs="0" maxOccurs="unbounded" />
66
      <xsd:element name="exclude" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
67
      <xsd:element name="host" type="localized-path" minOccurs="0" maxOccurs="unbounded" />
68
    </xsd:sequence>
69
    <xsd:attribute name="resource" type="xsd:string" use="required" />
70
    <xsd:attribute name="type" type="xsd:string" />
71
    <xsd:attribute name="exclude" type="xsd:string" />
72
    <xsd:attribute name="prefix" type="xsd:string" />
73
    <xsd:attribute name="name-prefix" type="xsd:string" />
74
    <xsd:attribute name="host" type="xsd:string" />
75
    <xsd:attribute name="schemes" type="xsd:string" />
76
    <xsd:attribute name="methods" type="xsd:string" />
77
    <xsd:attribute name="controller" type="xsd:string" />
78
    <xsd:attribute name="locale" type="xsd:string" />
79
    <xsd:attribute name="format" type="xsd:string" />
80
    <xsd:attribute name="trailing-slash-on-root" type="xsd:boolean" />
81
    <xsd:attribute name="utf8" type="xsd:boolean" />
82
    <xsd:attribute name="stateless" type="xsd:boolean" />
83
  </xsd:complexType>
84
 
85
  <xsd:complexType name="default" mixed="true">
86
    <xsd:choice minOccurs="0" maxOccurs="1">
87
      <xsd:element name="bool" type="xsd:boolean" />
88
      <xsd:element name="int" type="xsd:integer" />
89
      <xsd:element name="float" type="xsd:float" />
90
      <xsd:element name="string" type="xsd:string" />
91
      <xsd:element name="list" type="list" />
92
      <xsd:element name="map" type="map" />
93
    </xsd:choice>
94
    <xsd:attribute name="key" type="xsd:string" use="required" />
95
  </xsd:complexType>
96
 
97
  <xsd:complexType name="element">
98
    <xsd:simpleContent>
99
      <xsd:extension base="xsd:string">
100
        <xsd:attribute name="key" type="xsd:string" use="required" />
101
      </xsd:extension>
102
    </xsd:simpleContent>
103
  </xsd:complexType>
104
 
105
  <xsd:complexType name="list">
106
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
107
      <xsd:element name="bool" nillable="true" type="xsd:boolean" />
108
      <xsd:element name="int" nillable="true" type="xsd:integer" />
109
      <xsd:element name="float" nillable="true" type="xsd:float" />
110
      <xsd:element name="string" nillable="true" type="xsd:string" />
111
      <xsd:element name="list" nillable="true" type="list" />
112
      <xsd:element name="map" nillable="true" type="map" />
113
    </xsd:choice>
114
  </xsd:complexType>
115
 
116
  <xsd:complexType name="map">
117
      <xsd:choice minOccurs="0" maxOccurs="unbounded">
118
          <xsd:element name="bool" nillable="true" type="map-bool-entry" />
119
          <xsd:element name="int" nillable="true" type="map-int-entry" />
120
          <xsd:element name="float" nillable="true" type="map-float-entry" />
121
          <xsd:element name="string" nillable="true" type="map-string-entry" />
122
          <xsd:element name="list" nillable="true" type="map-list-entry" />
123
          <xsd:element name="map" nillable="true" type="map-map-entry" />
124
      </xsd:choice>
125
  </xsd:complexType>
126
 
127
  <xsd:complexType name="map-bool-entry">
128
    <xsd:simpleContent>
129
      <xsd:extension base="xsd:boolean">
130
        <xsd:attribute name="key" type="xsd:string" use="required" />
131
      </xsd:extension>
132
    </xsd:simpleContent>
133
  </xsd:complexType>
134
 
135
  <xsd:complexType name="map-int-entry">
136
    <xsd:simpleContent>
137
      <xsd:extension base="xsd:integer">
138
        <xsd:attribute name="key" type="xsd:string" use="required" />
139
      </xsd:extension>
140
    </xsd:simpleContent>
141
  </xsd:complexType>
142
 
143
  <xsd:complexType name="map-float-entry">
144
    <xsd:simpleContent>
145
      <xsd:extension base="xsd:float">
146
        <xsd:attribute name="key" type="xsd:string" use="required" />
147
      </xsd:extension>
148
    </xsd:simpleContent>
149
  </xsd:complexType>
150
 
151
  <xsd:complexType name="map-string-entry">
152
    <xsd:simpleContent>
153
      <xsd:extension base="xsd:string">
154
        <xsd:attribute name="key" type="xsd:string" use="required" />
155
      </xsd:extension>
156
    </xsd:simpleContent>
157
  </xsd:complexType>
158
 
159
  <xsd:complexType name="map-list-entry">
160
    <xsd:complexContent>
161
      <xsd:extension base="list">
162
        <xsd:attribute name="key" type="xsd:string" use="required" />
163
      </xsd:extension>
164
    </xsd:complexContent>
165
  </xsd:complexType>
166
 
167
  <xsd:complexType name="map-map-entry">
168
    <xsd:complexContent>
169
      <xsd:extension base="map">
170
        <xsd:attribute name="key" type="xsd:string" use="required" />
171
      </xsd:extension>
172
    </xsd:complexContent>
173
  </xsd:complexType>
174
</xsd:schema>