summaryrefslogtreecommitdiffstats
path: root/schemas/genshi.xsd
diff options
context:
space:
mode:
Diffstat (limited to 'schemas/genshi.xsd')
-rw-r--r--schemas/genshi.xsd23
1 files changed, 14 insertions, 9 deletions
diff --git a/schemas/genshi.xsd b/schemas/genshi.xsd
index 4d3ad0e31..35d81e2f1 100644
--- a/schemas/genshi.xsd
+++ b/schemas/genshi.xsd
@@ -8,12 +8,10 @@
<xs:documentation>
Genshi schema
Chris St. Pierre
- $Id$
</xs:documentation>
</xs:annotation>
- <!-- genshi tags -->
- <xs:element name="for" type="py:forType"/>
+ <!-- genshi types -->
<xs:complexType name="forType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -21,7 +19,6 @@
<xs:attribute name="each" type="xs:string" use="required"/>
</xs:complexType>
- <xs:element name="if" type="py:ifType"/>
<xs:complexType name="ifType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -29,7 +26,6 @@
<xs:attribute name="test" type="xs:string" use="required"/>
</xs:complexType>
- <xs:element name="match" type="py:matchType"/>
<xs:complexType name="matchType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -40,7 +36,6 @@
<xs:attribute name="recursive" type="xs:boolean" default="true"/>
</xs:complexType>
- <xs:element name="def" type="py:defType"/>
<xs:complexType name="defType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -48,7 +43,6 @@
<xs:attribute name="function" type="xs:string" use="required"/>
</xs:complexType>
- <xs:element name="with" type="py:withType"/>
<xs:complexType name="withType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -56,7 +50,6 @@
<xs:attribute name="vars" type="xs:string" use="required"/>
</xs:complexType>
- <xs:element name="replace" type="py:replaceType"/>
<xs:complexType name="replaceType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -64,7 +57,6 @@
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
- <xs:element name="choose" type="py:chooseType"/>
<xs:complexType name="chooseType" mixed="true">
<xs:sequence>
<xs:element name="when" type="py:ifType" maxOccurs="unbounded"/>
@@ -80,6 +72,19 @@
</xs:choice>
</xs:complexType>
+ <!-- genshi tags -->
+ <xs:group name="genshiElements">
+ <xs:choice>
+ <xs:element name="with" type="py:withType"/>
+ <xs:element name="replace" type="py:replaceType"/>
+ <xs:element name="choose" type="py:chooseType"/>
+ <xs:element name="for" type="py:forType"/>
+ <xs:element name="if" type="py:ifType"/>
+ <xs:element name="match" type="py:matchType"/>
+ <xs:element name="def" type="py:defType"/>
+ </xs:choice>
+ </xs:group>
+
<!-- genshi attributes -->
<xs:attributeGroup name="genshiAttrs">
<xs:attribute name="if" type="xs:string" form="qualified"/>