|
1 | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
2 | 2 |
|
3 | 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"> |
| 4 | + xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 5 | + targetNamespace="http://symfony.com/schema/routing" |
| 6 | + elementFormDefault="qualified"> |
7 | 7 |
|
8 | | - <xsd:annotation> |
9 | | - <xsd:documentation><![CDATA[ |
| 8 | + <xsd:annotation> |
| 9 | + <xsd:documentation><![CDATA[ |
10 | 10 | Symfony XML Routing Schema, version 1.0 |
11 | 11 | Authors: Fabien Potencier, Tobias Schultze |
12 | 12 |
|
13 | 13 | This scheme defines the elements and attributes that can be used to define |
14 | 14 | routes. A route maps an HTTP request to a set of configuration variables. |
15 | 15 | ]]></xsd:documentation> |
16 | | - </xsd:annotation> |
| 16 | + </xsd:annotation> |
17 | 17 |
|
18 | | - <xsd:element name="routes" type="routes" /> |
| 18 | + <xsd:element name="routes" type="routes" /> |
19 | 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> |
| 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 | 26 |
|
27 | | - <xsd:group name="configs"> |
28 | | - <xsd:choice> |
29 | | - <xsd:element name="default" nillable="true" type="element" /> |
30 | | - <xsd:element name="requirement" type="element" /> |
31 | | - <xsd:element name="option" type="element" /> |
32 | | - </xsd:choice> |
33 | | - </xsd:group> |
| 27 | + <xsd:group name="configs"> |
| 28 | + <xsd:choice> |
| 29 | + <xsd:element name="default" nillable="true" type="element" /> |
| 30 | + <xsd:element name="requirement" type="element" /> |
| 31 | + <xsd:element name="option" type="element" /> |
| 32 | + <xsd:element name="condition" type="xsd:string" /> |
| 33 | + </xsd:choice> |
| 34 | + </xsd:group> |
34 | 35 |
|
35 | | - <xsd:complexType name="route"> |
36 | | - <xsd:group ref="configs" minOccurs="0" maxOccurs="unbounded" /> |
| 36 | + <xsd:complexType name="route"> |
| 37 | + <xsd:group ref="configs" minOccurs="0" maxOccurs="unbounded" /> |
37 | 38 |
|
38 | | - <xsd:attribute name="id" type="xsd:string" use="required" /> |
39 | | - <xsd:attribute name="path" type="xsd:string" /> |
40 | | - <xsd:attribute name="pattern" type="xsd:string" /> |
41 | | - <xsd:attribute name="host" type="xsd:string" /> |
42 | | - <xsd:attribute name="schemes" type="xsd:string" /> |
43 | | - <xsd:attribute name="methods" type="xsd:string" /> |
44 | | - </xsd:complexType> |
| 39 | + <xsd:attribute name="id" type="xsd:string" use="required" /> |
| 40 | + <xsd:attribute name="path" type="xsd:string" /> |
| 41 | + <xsd:attribute name="pattern" type="xsd:string" /> |
| 42 | + <xsd:attribute name="host" type="xsd:string" /> |
| 43 | + <xsd:attribute name="schemes" type="xsd:string" /> |
| 44 | + <xsd:attribute name="methods" type="xsd:string" /> |
| 45 | + </xsd:complexType> |
45 | 46 |
|
46 | | - <xsd:complexType name="import"> |
47 | | - <xsd:group ref="configs" minOccurs="0" maxOccurs="unbounded" /> |
| 47 | + <xsd:complexType name="import"> |
| 48 | + <xsd:group ref="configs" minOccurs="0" maxOccurs="unbounded" /> |
48 | 49 |
|
49 | | - <xsd:attribute name="resource" type="xsd:string" use="required" /> |
50 | | - <xsd:attribute name="type" type="xsd:string" /> |
51 | | - <xsd:attribute name="prefix" 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:complexType> |
| 50 | + <xsd:attribute name="resource" type="xsd:string" use="required" /> |
| 51 | + <xsd:attribute name="type" type="xsd:string" /> |
| 52 | + <xsd:attribute name="prefix" type="xsd:string" /> |
| 53 | + <xsd:attribute name="host" type="xsd:string" /> |
| 54 | + <xsd:attribute name="schemes" type="xsd:string" /> |
| 55 | + <xsd:attribute name="methods" type="xsd:string" /> |
| 56 | + </xsd:complexType> |
56 | 57 |
|
57 | | - <xsd:complexType name="element"> |
58 | | - <xsd:simpleContent> |
59 | | - <xsd:extension base="xsd:string"> |
60 | | - <xsd:attribute name="key" type="xsd:string" use="required" /> |
61 | | - </xsd:extension> |
62 | | - </xsd:simpleContent> |
63 | | - </xsd:complexType> |
| 58 | + <xsd:complexType name="element"> |
| 59 | + <xsd:simpleContent> |
| 60 | + <xsd:extension base="xsd:string"> |
| 61 | + <xsd:attribute name="key" type="xsd:string" use="required" /> |
| 62 | + </xsd:extension> |
| 63 | + </xsd:simpleContent> |
| 64 | + </xsd:complexType> |
64 | 65 | </xsd:schema> |
0 commit comments