diff options
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/csv2xml.xslt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt index 74770f4ad..f2a11dae3 100644 --- a/xslt/csv2xml.xslt +++ b/xslt/csv2xml.xslt @@ -11,6 +11,7 @@ <xsl:param name="ndlField" select="ndlField"/> <xsl:param name="ttsField" select="ttsField"/> <xsl:param name="stopdepthField" select="stopdepthField"/> + <xsl:param name="pressureField" select="pressureField"/> <xsl:param name="date" select="date"/> <xsl:param name="time" select="time"/> <xsl:param name="units" select="units"/> @@ -222,6 +223,15 @@ </xsl:choose> </xsl:attribute> </xsl:if> + + <xsl:if test="$pressureField >= 0"> + <xsl:attribute name="pressure"> + <xsl:call-template name="getFieldByIndex"> + <xsl:with-param name="index" select="$pressureField"/> + <xsl:with-param name="line" select="$line"/> + </xsl:call-template> + </xsl:attribute> + </xsl:if> </sample> </xsl:if> </xsl:template> |