mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
CSV export: Split printing of header
This will split the printing of header for CSV export. Cylinder information is printed by itself allowing me to later print it in a loop as many times as there are cylinders. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
9deb4f4a22
commit
19cdab52b3
1 changed files with 22 additions and 6 deletions
|
@ -13,6 +13,8 @@
|
||||||
<xsl:template match="/divelog/dives">
|
<xsl:template match="/divelog/dives">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$units = 1">
|
<xsl:when test="$units = 1">
|
||||||
|
|
||||||
|
<!-- Print beginning of the header -->
|
||||||
<xsl:value-of select="concat(
|
<xsl:value-of select="concat(
|
||||||
'"dive number"',
|
'"dive number"',
|
||||||
$fs,
|
$fs,
|
||||||
|
@ -33,7 +35,10 @@
|
||||||
'"airtemp (F)"',
|
'"airtemp (F)"',
|
||||||
$fs,
|
$fs,
|
||||||
'"watertemp (F)"',
|
'"watertemp (F)"',
|
||||||
$fs,
|
$fs)"/>
|
||||||
|
|
||||||
|
<!-- Print cylinder info according to the amount of cylinders in dive -->
|
||||||
|
<xsl:value-of select="concat(
|
||||||
'"cylinder size (cuft)"',
|
'"cylinder size (cuft)"',
|
||||||
$fs,
|
$fs,
|
||||||
'"startpressure (psi)"',
|
'"startpressure (psi)"',
|
||||||
|
@ -43,7 +48,10 @@
|
||||||
'"o2 (%)"',
|
'"o2 (%)"',
|
||||||
$fs,
|
$fs,
|
||||||
'"he (%)"',
|
'"he (%)"',
|
||||||
$fs,
|
$fs)"/>
|
||||||
|
|
||||||
|
<!-- Print rest of the header -->
|
||||||
|
<xsl:value-of select="concat(
|
||||||
'"location"',
|
'"location"',
|
||||||
$fs,
|
$fs,
|
||||||
'"gps"',
|
'"gps"',
|
||||||
|
@ -65,8 +73,10 @@
|
||||||
'"tags"')"/>
|
'"tags"')"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="
|
|
||||||
concat('"dive number"',
|
<!-- Print beginning of the header -->
|
||||||
|
<xsl:value-of select="concat(
|
||||||
|
'"dive number"',
|
||||||
$fs,
|
$fs,
|
||||||
'"date"',
|
'"date"',
|
||||||
$fs,
|
$fs,
|
||||||
|
@ -85,7 +95,10 @@
|
||||||
'"airtemp (C)"',
|
'"airtemp (C)"',
|
||||||
$fs,
|
$fs,
|
||||||
'"watertemp (C)"',
|
'"watertemp (C)"',
|
||||||
$fs,
|
$fs)"/>
|
||||||
|
|
||||||
|
<!-- Print cylinder info according to the amount of cylinders in dive -->
|
||||||
|
<xsl:value-of select="concat(
|
||||||
'"cylinder size (l)"',
|
'"cylinder size (l)"',
|
||||||
$fs,
|
$fs,
|
||||||
'"startpressure (bar)"',
|
'"startpressure (bar)"',
|
||||||
|
@ -95,7 +108,10 @@
|
||||||
'"o2 (%)"',
|
'"o2 (%)"',
|
||||||
$fs,
|
$fs,
|
||||||
'"he (%)"',
|
'"he (%)"',
|
||||||
$fs,
|
$fs)"/>
|
||||||
|
|
||||||
|
<!-- Print rest of the header -->
|
||||||
|
<xsl:value-of select="concat(
|
||||||
'"location"',
|
'"location"',
|
||||||
$fs,
|
$fs,
|
||||||
'"gps"',
|
'"gps"',
|
||||||
|
|
Loading…
Add table
Reference in a new issue