diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-10-12 21:42:09 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-12 14:59:51 -0400 |
commit | 6d65e45787cd29c60153d9db0745cdc7bd088f1d (patch) | |
tree | 460b5bce03bbaf5963d5906eb1ad3f0129bd1687 /xslt | |
parent | 613402f6c9dd73dfd36e65254fab9534765d9eb6 (diff) | |
download | subsurface-6d65e45787cd29c60153d9db0745cdc7bd088f1d.tar.gz |
Support for importing additional tanks
This patch adds support for importing additional cylinders from
divelogs.de. This also adds support for He on the import.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/divelogs.xslt | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/xslt/divelogs.xslt b/xslt/divelogs.xslt index 2f191aee0..067a72675 100644 --- a/xslt/divelogs.xslt +++ b/xslt/divelogs.xslt @@ -75,11 +75,15 @@ <xsl:value-of select="PARTNER"/> </buddy> - <!-- Helium? --> <cylinder> <xsl:attribute name="o2"> <xsl:value-of select="O2PCT"/> </xsl:attribute> + <xsl:if test="HEPCT != ''"> + <xsl:attribute name="he"> + <xsl:value-of select="HEPCT"/> + </xsl:attribute> + </xsl:if> <xsl:attribute name="start"> <xsl:value-of select="CYLINDERSTARTPRESSURE"/> </xsl:attribute> @@ -101,6 +105,38 @@ </xsl:attribute> </cylinder> + <xsl:for-each select="ADDITIONALTANKS/TANK"> + <cylinder> + <xsl:attribute name="o2"> + <xsl:value-of select="O2PCT"/> + </xsl:attribute> + <xsl:if test="HEPCT != ''"> + <xsl:attribute name="he"> + <xsl:value-of select="HEPCT"/> + </xsl:attribute> + </xsl:if> + <xsl:attribute name="start"> + <xsl:value-of select="CYLINDERSTARTPRESSURE"/> + </xsl:attribute> + <xsl:attribute name="end"> + <xsl:value-of select="CYLINDERENDPRESSURE"/> + </xsl:attribute> + <xsl:if test="CYLINDERSIZE != ''"> + <xsl:attribute name="size"> + <xsl:value-of select="format-number(CYLINDERSIZE + CYLINDERSIZE * DBLTANK, '#.##')"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="WORKINGPRESSURE > 0"> + <xsl:attribute name="workpressure"> + <xsl:value-of select="WORKINGPRESSURE"/> + </xsl:attribute> + </xsl:if> + <xsl:attribute name="description"> + <xsl:value-of select="CYLINDERDESCRIPTION"/> + </xsl:attribute> + </cylinder> + </xsl:for-each> + <xsl:if test="WEIGHT != ''"> <weightsystem> <xsl:attribute name="description"> |