summaryrefslogtreecommitdiffstats
path: root/schemas/genshi.xsd
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-23 13:53:33 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-23 13:53:33 -0500
commitadcd396e3dad04030ccbbff5c77c56df566dacab (patch)
tree4ea980b3583b5fc00faefdf7450397ef9f879e91 /schemas/genshi.xsd
parent514e8f4bb75da4e75cd64c55697efe770427403d (diff)
downloadbcfg2-adcd396e3dad04030ccbbff5c77c56df566dacab.tar.gz
bcfg2-adcd396e3dad04030ccbbff5c77c56df566dacab.tar.bz2
bcfg2-adcd396e3dad04030ccbbff5c77c56df566dacab.zip
cleaned up genshi schema
Diffstat (limited to 'schemas/genshi.xsd')
-rw-r--r--schemas/genshi.xsd22
1 files changed, 14 insertions, 8 deletions
diff --git a/schemas/genshi.xsd b/schemas/genshi.xsd
index 4d3ad0e31..088ec56be 100644
--- a/schemas/genshi.xsd
+++ b/schemas/genshi.xsd
@@ -12,8 +12,7 @@
</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 +20,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 +27,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 +37,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 +44,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 +51,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 +58,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 +73,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"/>