summaryrefslogtreecommitdiff
path: root/xslt/xfree86.xsl
diff options
context:
space:
mode:
authorsvu <svu>2004-01-19 14:39:43 +0000
committersvu <svu>2004-01-19 14:39:43 +0000
commitefd413655c8c700f9e0202f8a26a7eac1569b6cf (patch)
tree0ca8db8b1d38b2cd83d20615c05765a7b153ac7f /xslt/xfree86.xsl
parenteb5fb78e97ac9cd81973b56048bb5ea69122322b (diff)
bugfix
Diffstat (limited to 'xslt/xfree86.xsl')
-rw-r--r--xslt/xfree86.xsl12
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>