summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt')
-rw-r--r--xslt/csv2xml.xslt20
1 files changed, 10 insertions, 10 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index fa1cd3afb..960f48395 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -412,14 +412,14 @@
</xsl:if>
<xsl:if test="$pressureField >= 0">
- <xsl:attribute name="pressure">
- <xsl:variable 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:variable>
- <xsl:if test="$pressure >= 0">
+ <xsl:variable 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:variable>
+ <xsl:if test="$pressure >= 0">
+ <xsl:attribute name="pressure">
<xsl:choose>
<xsl:when test="$units = 0">
<xsl:value-of select="$pressure"/>
@@ -428,8 +428,8 @@
<xsl:value-of select="concat(format-number(($pressure div 14.5037738007), '#'), ' bar')"/>
</xsl:otherwise>
</xsl:choose>
- </xsl:if>
- </xsl:attribute>
+ </xsl:attribute>
+ </xsl:if>
</xsl:if>
</sample>
</xsl:if>