diff options
author | Holger Weiß <holger@zedat.fu-berlin.de> | 2011-06-06 00:54:55 +0200 |
---|---|---|
committer | Holger Weiß <holger@zedat.fu-berlin.de> | 2011-06-06 00:54:55 +0200 |
commit | 701ff48cc9561ce88e80c1de5a19f8d6cda790bb (patch) | |
tree | c593509703b962f6298cb76305bad0f701731bec /schemas/genshi.xsd | |
parent | e326ccac2c86fd6f54d900b5722149b75c6a981a (diff) | |
download | bcfg2-701ff48cc9561ce88e80c1de5a19f8d6cda790bb.tar.gz bcfg2-701ff48cc9561ce88e80c1de5a19f8d6cda790bb.tar.bz2 bcfg2-701ff48cc9561ce88e80c1de5a19f8d6cda790bb.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.
Diffstat (limited to 'schemas/genshi.xsd')
-rw-r--r-- | schemas/genshi.xsd | 3 |
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 |