diff options
author | svu <svu> | 2004-01-19 14:39:43 +0000 |
---|---|---|
committer | svu <svu> | 2004-01-19 14:39:43 +0000 |
commit | efd413655c8c700f9e0202f8a26a7eac1569b6cf (patch) | |
tree | 0ca8db8b1d38b2cd83d20615c05765a7b153ac7f /xslt | |
parent | eb5fb78e97ac9cd81973b56048bb5ea69122322b (diff) | |
download | xkeyboard-config-efd413655c8c700f9e0202f8a26a7eac1569b6cf.tar.gz xkeyboard-config-efd413655c8c700f9e0202f8a26a7eac1569b6cf.tar.bz2 xkeyboard-config-efd413655c8c700f9e0202f8a26a7eac1569b6cf.zip |
bugfix
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/xfree86.xsl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xslt/xfree86.xsl b/xslt/xfree86.xsl index 1c88e9e2..29345b74 100644 --- a/xslt/xfree86.xsl +++ b/xslt/xfree86.xsl @@ -21,11 +21,11 @@ <!-- If there are some shortDescriptions --> <xsl:if test="count(./shortDescription)!=0"> <!-- First, put the non-translated version --> - <shortDescription><xsl:value-of select="./shortDescription[@xml:lang='']"/></shortDescription> + <shortDescription><xsl:value-of select="./shortDescription[not(@xml:lang)]"/></shortDescription> <!-- For all translated versions ... --> - <xsl:for-each select="./shortDescription[@xml:lang!='']"> + <xsl:for-each select="./shortDescription[@xml:lang]"> <!-- ... which are different from non-translated one ... --> - <xsl:if test="../shortDescription[@xml:lang='']/text() != ./text()"> + <xsl:if test="../shortDescription[not(@xml:lang)]/text() != ./text()"> <!-- ... - output! --> <shortDescription xml:lang="{./@xml:lang}"><xsl:value-of select="./text()"/></shortDescription> </xsl:if> @@ -34,11 +34,11 @@ <!-- If there are some descriptions --> <xsl:if test="count(./description)!=0"> <!-- First, put the non-translated version --> - <description><xsl:value-of select="./description[@xml:lang='']"/></description> + <description><xsl:value-of select="./description[not(@xml:lang)]"/></description> <!-- For all translated versions ... --> - <xsl:for-each select="./description[@xml:lang!='']"> + <xsl:for-each select="./description[@xml:lang]"> <!-- ... which are different from non-translated one ... --> - <xsl:if test="../description[@xml:lang='']/text() != ./text()"> + <xsl:if test="../description[not(@xml:lang)]/text() != ./text()"> <!-- ... - output! --> <description xml:lang="{./@xml:lang}"><xsl:value-of select="./text()"/></description> </xsl:if> |