summaryrefslogtreecommitdiffstats
path: root/xslt/subsurfacecsv.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/subsurfacecsv.xslt')
-rw-r--r--xslt/subsurfacecsv.xslt18
1 files changed, 18 insertions, 0 deletions
diff --git a/xslt/subsurfacecsv.xslt b/xslt/subsurfacecsv.xslt
index 0d3a32425..dbc579c62 100644
--- a/xslt/subsurfacecsv.xslt
+++ b/xslt/subsurfacecsv.xslt
@@ -93,6 +93,24 @@
</xsl:call-template>
</xsl:attribute>
+ <!-- If reading of SAC is added at some point, it is already available in our own CSV import -->
+ <xsl:variable name="sac">
+ <xsl:call-template name="getFieldByIndex">
+ <xsl:with-param name="index" select="4"/>
+ <xsl:with-param name="line" select="$line"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:attribute name="sac">
+ <xsl:choose>
+ <xsl:when test="$units = 1">
+ <xsl:value-of select="format-number($sac * 0.035315, '#.##')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$sac"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
<xsl:attribute name="tags">
<xsl:call-template name="getFieldByIndex">
<xsl:with-param name="index" select="22"/>