|
@@ -0,0 +1,22 @@
|
|
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
|
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
|
|
|
+ xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
|
|
|
|
|
+ exclude-result-prefixes="xs"
|
|
|
|
|
+ version="2.0">
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:function name="system_cache__dita:big_values_format">
|
|
|
|
|
+ <xsl:param name="value"/>
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="$value < 1000">
|
|
|
|
|
+ <xsl:value-of select='format-number($value, "#.0")'/>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:when test="$value < 1000000">
|
|
|
|
|
+ <xsl:value-of select='format-number($value div 1000, "#.0")'/> k
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:value-of select='format-number($value div 100000, "#.0")'/> m
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </xsl:function>
|
|
|
|
|
+</xsl:stylesheet>
|