aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2020-05-31 14:46:43 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-31 08:59:47 -0700
commit2d108cb8ad6667513e53f049b7135d233b419ba3 (patch)
treec2268972c90057375912fd6bdf477498dabbaf40 /xslt
parent3dc5ac219d0544307093e24c55395a61a49f3d79 (diff)
downloadsubsurface-2d108cb8ad6667513e53f049b7135d233b419ba3.tar.gz
Fix indentation
The diff goes crazy if indentation is not fixed by itself. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/xml2manualcsv.xslt94
1 files changed, 47 insertions, 47 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index 727e59a59..b262076cc 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -240,68 +240,68 @@
<xsl:choose>
<xsl:when test="$cylinders &lt; position()"/>
<xsl:otherwise>
- <xsl:choose>
- <xsl:when test="@start|@end != ''">
- <xsl:apply-templates select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$fs"/>
- <xsl:text>&quot;</xsl:text>
<xsl:choose>
- <xsl:when test="$units = 1">
- <xsl:value-of select="concat(format-number((substring-before(@size, ' ') div 14.7 * 3000) * 0.035315, '#.#'), '')"/>
+ <xsl:when test="@start|@end != ''">
+ <xsl:apply-templates select="."/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="substring-before(@size, ' ')"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>&quot;</xsl:text>
- <xsl:value-of select="$fs"/>
- <xsl:text>&quot;</xsl:text>
- <xsl:choose>
- <xsl:when test="$units = 1">
+ <xsl:value-of select="$fs"/>
+ <xsl:text>&quot;</xsl:text>
<xsl:choose>
- <xsl:when test="substring-before(../divecomputer[1]/sample[@pressure]/@pressure, ' ') &gt; 0">
- <xsl:value-of select="concat(format-number((substring-before(../divecomputer[1]/sample[@pressure]/@pressure, ' ') * 14.5037738007), '#'), '')"/>
+ <xsl:when test="$units = 1">
+ <xsl:value-of select="concat(format-number((substring-before(@size, ' ') div 14.7 * 3000) * 0.035315, '#.#'), '')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="''"/>
+ <xsl:value-of select="substring-before(@size, ' ')"/>
</xsl:otherwise>
</xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure]/@pressure, ' ')"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>&quot;</xsl:text>
- <xsl:value-of select="$fs"/>
- <xsl:text>&quot;</xsl:text>
- <xsl:choose>
- <xsl:when test="$units = 1">
+ <xsl:text>&quot;</xsl:text>
+ <xsl:value-of select="$fs"/>
+ <xsl:text>&quot;</xsl:text>
<xsl:choose>
- <xsl:when test="substring-before(../divecomputer[1]/sample[@pressure][last()]/@pressure, ' ') &gt; 0">
- <xsl:value-of select="concat(format-number((substring-before(../divecomputer[1]/sample[@pressure][last()]/@pressure, ' ') * 14.5037738007), '#'), '')"/>
+ <xsl:when test="$units = 1">
+ <xsl:choose>
+ <xsl:when test="substring-before(../divecomputer[1]/sample[@pressure]/@pressure, ' ') &gt; 0">
+ <xsl:value-of select="concat(format-number((substring-before(../divecomputer[1]/sample[@pressure]/@pressure, ' ') * 14.5037738007), '#'), '')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="''"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="''"/>
+ <xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure]/@pressure, ' ')"/>
</xsl:otherwise>
</xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure][last()]/@pressure, ' ')"/>
+ <xsl:text>&quot;</xsl:text>
+ <xsl:value-of select="$fs"/>
+ <xsl:text>&quot;</xsl:text>
+ <xsl:choose>
+ <xsl:when test="$units = 1">
+ <xsl:choose>
+ <xsl:when test="substring-before(../divecomputer[1]/sample[@pressure][last()]/@pressure, ' ') &gt; 0">
+ <xsl:value-of select="concat(format-number((substring-before(../divecomputer[1]/sample[@pressure][last()]/@pressure, ' ') * 14.5037738007), '#'), '')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="''"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure][last()]/@pressure, ' ')"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>&quot;</xsl:text>
+ <xsl:value-of select="$fs"/>
+ <xsl:text>&quot;</xsl:text>
+ <xsl:value-of select="substring-before(@o2, '%')"/>
+ <xsl:text>&quot;</xsl:text>
+ <xsl:value-of select="$fs"/>
+ <xsl:text>&quot;</xsl:text>
+ <xsl:value-of select="substring-before(@he, '%')"/>
+ <xsl:text>&quot;</xsl:text>
</xsl:otherwise>
</xsl:choose>
- <xsl:text>&quot;</xsl:text>
- <xsl:value-of select="$fs"/>
- <xsl:text>&quot;</xsl:text>
- <xsl:value-of select="substring-before(@o2, '%')"/>
- <xsl:text>&quot;</xsl:text>
- <xsl:value-of select="$fs"/>
- <xsl:text>&quot;</xsl:text>
- <xsl:value-of select="substring-before(@he, '%')"/>
- <xsl:text>&quot;</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>