summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiß <holger@zedat.fu-berlin.de>2011-06-06 00:54:55 +0200
committerSol Jerome <sol.jerome@gmail.com>2011-06-14 12:36:46 -0500
commitce4a4aa66d30d3c37098b37a8e5fd3fdbabed832 (patch)
treec593509703b962f6298cb76305bad0f701731bec
parent70d480f2a77902347601596a7ab8f606a4b4290d (diff)
downloadbcfg2-ce4a4aa66d30d3c37098b37a8e5fd3fdbabed832.tar.gz
bcfg2-ce4a4aa66d30d3c37098b37a8e5fd3fdbabed832.tar.bz2
bcfg2-ce4a4aa66d30d3c37098b37a8e5fd3fdbabed832.zip
All Genshi XML tags should be namespace-qualified
Our XML Schema for Genshi templates expected "choose" blocks to be declared like this: <py:choose test="$foo"> <when test="0"><!-- [...] --></when> <when test="1"><!-- [...] --></when> <otherwise><!-- [...] --></otherwise> </py:choose> However, we prefer to namespace-qualify not only the "choose" element, but also the "when" and "otherwise" tags (for clarity, and because that's how it's done in the Genshi documentation): <py:choose test="$foo"> <py:when test="0"><!-- [...] --></py:when> <py:when test="1"><!-- [...] --></py:when> <py:otherwise><!-- [...] --></py:otherwise> </py:choose> This commit tells XML Schema validators to expect the latter style.
-rw-r--r--schemas/genshi.xsd3
1 files changed, 2 insertions, 1 deletions
diff --git a/schemas/genshi.xsd b/schemas/genshi.xsd
index 853b69c0d..d87c4a6e3 100644
--- a/schemas/genshi.xsd
+++ b/schemas/genshi.xsd
@@ -2,7 +2,8 @@
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:py="http://genshi.edgewall.org/"
xml:lang="en"
- targetNamespace="http://genshi.edgewall.org/">
+ targetNamespace="http://genshi.edgewall.org/"
+ elementFormDefault="qualified">
<xs:annotation>
<xs:documentation>
Genshi schema