Convert cylinder volume to metric

This is a rough conversion from cuft to liters. Should be close enough
when we don't have working pressure to do the real calculation. (As far
as I know, this is the case with UDCF.)

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2018-02-15 06:44:37 +02:00 committed by mturkia
parent 006e00ebc4
commit b0eca5cb32

View file

@ -85,7 +85,14 @@
<xsl:value-of select="MIXNAME|mixname"/>
</xsl:attribute>
<xsl:attribute name="size">
<xsl:value-of select="concat(TANK/TANKVOLUME|tank/tankvolume, ' l')"/>
<xsl:choose>
<xsl:when test="$units = 'Imperial'">
<xsl:value-of select="concat(TANK/TANKVOLUME|tank/tankvolume div 7, ' l')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(TANK/TANKVOLUME|tank/tankvolume, ' l')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="start">
<xsl:call-template name="pressureConvert">