mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:43:24 +00:00
Field variables for CSV import
Field variables for the CSV XSLT import have disappeared at some point during developing GUI for the CSV import. So adding them to the XSLT for the field selections to have effect. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
861b524e7a
commit
3ec6871720
1 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||||
<xsl:import href="commonTemplates.xsl"/>
|
<xsl:import href="commonTemplates.xsl"/>
|
||||||
<xsl:strip-space elements="*"/>
|
<xsl:strip-space elements="*"/>
|
||||||
|
<xsl:param name="timeField" select="timeField"/>
|
||||||
|
<xsl:param name="depthField" select="depthField"/>
|
||||||
<xsl:param name="tempField" select="tempField"/>
|
<xsl:param name="tempField" select="tempField"/>
|
||||||
<xsl:output method="xml" indent="yes"/>
|
<xsl:output method="xml" indent="yes"/>
|
||||||
|
|
||||||
|
@ -42,7 +44,7 @@
|
||||||
|
|
||||||
<xsl:variable name="value">
|
<xsl:variable name="value">
|
||||||
<xsl:call-template name="getFieldByIndex">
|
<xsl:call-template name="getFieldByIndex">
|
||||||
<xsl:with-param name="index" select="0"/>
|
<xsl:with-param name="index" select="$timeField"/>
|
||||||
<xsl:with-param name="line" select="$line"/>
|
<xsl:with-param name="line" select="$line"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
@ -77,7 +79,7 @@
|
||||||
|
|
||||||
<xsl:attribute name="depth">
|
<xsl:attribute name="depth">
|
||||||
<xsl:call-template name="getFieldByIndex">
|
<xsl:call-template name="getFieldByIndex">
|
||||||
<xsl:with-param name="index" select="1"/>
|
<xsl:with-param name="index" select="$depthField"/>
|
||||||
<xsl:with-param name="line" select="$line"/>
|
<xsl:with-param name="line" select="$line"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
|
|
Loading…
Add table
Reference in a new issue