summaryrefslogtreecommitdiffstats
path: root/xslt/uddf.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/uddf.xslt')
-rw-r--r--xslt/uddf.xslt18
1 files changed, 17 insertions, 1 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index dfffecfb0..274280169 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -128,7 +128,23 @@
<xsl:if test="condition/visibility != '' and condition/visibility != 0">
<xsl:attribute name="visibility">
- <xsl:value-of select="condition/visibility"/>
+ <xsl:choose>
+ <xsl:when test="condition/visibility &lt; 1">
+ <xsl:value-of select="1"/>
+ </xsl:when>
+ <xsl:when test="condition/visibility &lt;= 3">
+ <xsl:value-of select="2"/>
+ </xsl:when>
+ <xsl:when test="condition/visibility &lt;= 5">
+ <xsl:value-of select="3"/>
+ </xsl:when>
+ <xsl:when test="condition/visibility &lt;= 10">
+ <xsl:value-of select="4"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="5"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:attribute>
</xsl:if>