Skip to content

Commit 451dcdc

Browse files
committed
it should be possible to define the defaults, req. and options in any order, just like in YAML
1 parent 50a62da commit 451dcdc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Symfony/Component/Routing/Loader/schema/routing/routing-1.0.xsd

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@
88
<xsd:element name="routes" type="routes" />
99

1010
<xsd:complexType name="routes">
11-
<xsd:choice maxOccurs="unbounded" minOccurs="0">
11+
<xsd:choice minOccurs="0" maxOccurs="unbounded">
1212
<xsd:element name="import" type="import" />
1313
<xsd:element name="route" type="route" />
1414
</xsd:choice>
1515
</xsd:complexType>
1616

1717
<xsd:complexType name="route">
18-
<xsd:sequence>
19-
<xsd:element name="default" type="element" minOccurs="0" maxOccurs="unbounded" />
20-
<xsd:element name="requirement" type="element" minOccurs="0" maxOccurs="unbounded" />
21-
<xsd:element name="option" type="element" minOccurs="0" maxOccurs="unbounded" />
22-
</xsd:sequence>
18+
<xsd:choice minOccurs="0" maxOccurs="unbounded">
19+
<xsd:element name="default" type="element"/>
20+
<xsd:element name="requirement" type="element" />
21+
<xsd:element name="option" type="element" />
22+
</xsd:choice>
2323

2424
<xsd:attribute name="id" type="xsd:string" />
2525
<xsd:attribute name="pattern" type="xsd:string" />
2626
<xsd:attribute name="hostname-pattern" type="xsd:string" />
2727
</xsd:complexType>
2828

2929
<xsd:complexType name="import">
30-
<xsd:sequence>
31-
<xsd:element name="default" type="element" minOccurs="0" maxOccurs="unbounded" />
32-
<xsd:element name="requirement" type="element" minOccurs="0" maxOccurs="unbounded" />
33-
<xsd:element name="option" type="element" minOccurs="0" maxOccurs="unbounded" />
34-
</xsd:sequence>
30+
<xsd:choice minOccurs="0" maxOccurs="unbounded">
31+
<xsd:element name="default" type="element" />
32+
<xsd:element name="requirement" type="element" />
33+
<xsd:element name="option" type="element" />
34+
</xsd:choice>
3535

3636
<xsd:attribute name="resource" type="xsd:string" />
3737
<xsd:attribute name="type" type="xsd:string" />

0 commit comments

Comments
 (0)