Changeset 2e340d3 in subsurface


Ignore:
Timestamp:
Dec 10, 2017, 1:29:52 AM (6 weeks ago)
Author:
mturkia <miika.turkia@…>
Branches:
master
Children:
a07d3b7
Parents:
2b48431
git-author:
Miika Turkia <miika.turkia@…> (12/09/17 22:40:39)
git-committer:
mturkia <miika.turkia@…> (12/10/17 01:29:52)
Message:

Include cylinder pressures on export when they exist

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/uddf-export.xslt

    rbbde0a1 r2e340d3  
    361361              </tankpressurebegin>
    362362            </xsl:when>
    363             <xsl:otherwise>
     363            <xsl:when test="../divecomputer[1]/sample[@pressure]/@pressure[1]">
    364364              <tankpressurebegin>
    365365                <xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure]/@pressure[1], ' ') * 100000"/>
    366366              </tankpressurebegin>
    367             </xsl:otherwise>
     367            </xsl:when>
    368368          </xsl:choose>
    369369
     
    374374              </tankpressureend>
    375375            </xsl:when>
    376             <xsl:otherwise>
     376            <xsl:when test="../divecomputer[1]/sample[@pressure][last()]/@pressure[1]">
    377377              <tankpressureend>
    378378                <xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure][last()]/@pressure[1], ' ') * 100000"/>
    379379              </tankpressureend>
    380             </xsl:otherwise>
     380            </xsl:when>
    381381          </xsl:choose>
    382382
Note: See TracChangeset for help on using the changeset viewer.