diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-07-11 22:05:58 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-11 12:08:03 -0700 |
commit | e65c4ac55e6e8757b459dc2b3fb8ea6a3c055dda (patch) | |
tree | 91db9489010d5a2cafda431dc53e200be10bfaef /xslt | |
parent | 964401c37402d5eabc8d31fd649345be0774d756 (diff) | |
download | subsurface-e65c4ac55e6e8757b459dc2b3fb8ea6a3c055dda.tar.gz |
Add support for decimal comma on UDDF import
Gas changes generated by Xdeep can contain mix information with decimal
comma instead of decimal point. Thus we need to convert the comma to
point before performing mathematical operations on it.
Fixes #612
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.xslt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt index bdcdf8001..618c08059 100644 --- a/xslt/uddf.xslt +++ b/xslt/uddf.xslt @@ -313,7 +313,7 @@ <xsl:attribute name="value"> <xsl:call-template name="gasConvert"> <xsl:with-param name="mix"> - <xsl:value-of select="//gas_def/gas_mix[@id=$idx]/o2"/> + <xsl:value-of select="translate(//gas_def/gas_mix[@id=$idx]/o2, ',', '.')"/> </xsl:with-param> </xsl:call-template> </xsl:attribute> @@ -339,7 +339,7 @@ <xsl:attribute name="value"> <xsl:call-template name="gasConvert"> <xsl:with-param name="mix"> - <xsl:value-of select="//gasdefinitions/mix[@id=$idx]/o2|//u:gasdefinitions/u:mix[@id=$idx]/u:o2|//u1:gasdefinitions/u1:mix[@id=$idx]/u1:o2"/> + <xsl:value-of select="translate(//gasdefinitions/mix[@id=$idx]/o2|//u:gasdefinitions/u:mix[@id=$idx]/u:o2|//u1:gasdefinitions/u1:mix[@id=$idx]/u1:o2, ',', '.')"/> </xsl:with-param> </xsl:call-template> </xsl:attribute> |