Skip tank volume if not present on UDCF import

Concatenating unit to empty value will give a "Strange volume reading"
error on subsurface (console output) when importing. Getting rid of it.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2013-06-30 09:39:51 +03:00 committed by Dirk Hohndel
parent 140d2e4165
commit d12088b4f4

View File

@ -68,9 +68,11 @@
<xsl:attribute name="description">
<xsl:value-of select="MIXNAME|mixname"/>
</xsl:attribute>
<xsl:attribute name="size">
<xsl:value-of select="concat(TANK/TANKVOLUME|tank/tankvolume, ' l')"/>
</xsl:attribute>
<xsl:if test="TANK/TANKVOLUME|tank/tankvolume != ''">
<xsl:attribute name="size">
<xsl:value-of select="concat(TANK/TANKVOLUME|tank/tankvolume, ' l')"/>
</xsl:attribute>
</xsl:if>
<xsl:attribute name="start">
<xsl:value-of select="TANK/PSTART|tank/pstart"/>
</xsl:attribute>