mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Take pressure info from first DC on CSV export
Try to grab pressure information from first DC if it is not manually entered. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f1b3ecbfa9
commit
f9b7b9bba0
1 changed files with 15 additions and 1 deletions
|
@ -37,7 +37,21 @@
|
|||
<xsl:apply-templates select="divecomputer[1]/temperature"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:apply-templates select="cylinder"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="cylinder/@start|cylinder/@end != ''">
|
||||
<xsl:apply-templates select="cylinder"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$fs"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:value-of select="divecomputer[1]/sample[@pressure]/@pressure"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:value-of select="$fs"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:value-of select="divecomputer[1]/sample[@pressure][last()]/@pressure"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:apply-templates select="location"/>
|
||||
<xsl:apply-templates select="divemaster"/>
|
||||
<xsl:apply-templates select="buddy"/>
|
||||
|
|
Loading…
Reference in a new issue