diff options
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/xml2manualcsv.xslt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt index 82f4979d4..6064a4c72 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -182,7 +182,14 @@ <xsl:value-of select="$fs"/> <xsl:text>"</xsl:text> <xsl:if test="weightsystem"> - <xsl:value-of select="concat(sum(xt:node-set($trimmedweightlist)/node()), ' kg')"/> + <xsl:choose> + <xsl:when test="$units = 1"> + <xsl:value-of select="concat(format-number((sum(xt:node-set($trimmedweightlist)/node()) div 0.453592), '#.##'), ' lb')"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="concat(sum(xt:node-set($trimmedweightlist)/node()), ' kg')"/> + </xsl:otherwise> + </xsl:choose> </xsl:if> <xsl:text>"</xsl:text> |