summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-04-27 12:56:53 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-27 09:27:19 -0700
commit4d48eb826279953d3809ec2420bcc3e848f4fa88 (patch)
treedcc1913f67af5c431e819db4961888bbbbd298d3 /xslt
parentd98f715942c4059dd2ab6b6f9fa94e7394968a0a (diff)
downloadsubsurface-4d48eb826279953d3809ec2420bcc3e848f4fa88.tar.gz
Include pressure data on UDDF import
Importing pressure samples on UDDF import was missing. This patch adds that bit of information to our import. See #499 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/uddf.xslt6
1 files changed, 6 insertions, 0 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index 7f5d668ea..45e3ba02a 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -418,6 +418,12 @@
</xsl:attribute>
</xsl:if>
+ <xsl:if test="tankpressure|u:tankpressure|u1:tankpressure != ''">
+ <xsl:attribute name="pressure">
+ <xsl:value-of select="concat(format-number(tankpressure|u:tankpressure|u1:tankpressure div 100000, '0.0'), ' bar')"/>
+ </xsl:attribute>
+ </xsl:if>
+
<xsl:if test="otu|u:otu|u1:otu &gt; 0">
<xsl:attribute name="otu">
<xsl:value-of select="otu|u:otu|u1:otu"/>