diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-06-30 09:39:51 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-30 06:01:07 -0700 |
commit | d12088b4f476705a430328824b8765df557a6abb (patch) | |
tree | 5082aea6e1b9b5e59f0b537de85c2f63da56d4ef /xslt/udcf.xslt | |
parent | 140d2e41659d394890c5b2c7ed17b79d14d5768a (diff) | |
download | subsurface-d12088b4f476705a430328824b8765df557a6abb.tar.gz |
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>
Diffstat (limited to 'xslt/udcf.xslt')
-rw-r--r-- | xslt/udcf.xslt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xslt/udcf.xslt b/xslt/udcf.xslt index b3c93e8aa..58dc80337 100644 --- a/xslt/udcf.xslt +++ b/xslt/udcf.xslt @@ -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> |