Divelogs.de import: set default working pressure

Let's use the same assumption for working pressure (where not defined)
as the origin uses.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-09-24 16:55:37 +03:00 committed by Dirk Hohndel
parent 24471cfd0d
commit f5b17f2d29

View file

@ -114,11 +114,16 @@
</xsl:otherwise>
</xsl:choose>
</CYLINDERENDPRESSURE>
<xsl:if test="cylinder[position() = $cylinder]/@workpressure != ''">
<WORKINGPRESSURE>
<xsl:value-of select="substring-before(cylinder[position() = $cylinder]/@workpressure, ' ')"/>
</WORKINGPRESSURE>
</xsl:if>
<xsl:choose>
<xsl:when test="cylinder[position() = $cylinder]/@workpressure != ''">
<WORKINGPRESSURE>
<xsl:value-of select="substring-before(cylinder[position() = $cylinder]/@workpressure, ' ')"/>
</WORKINGPRESSURE>
</xsl:when>
<xsl:otherwise>
<WORKINGPRESSURE>198</WORKINGPRESSURE>
</xsl:otherwise>
</xsl:choose>
<ADDITIONALTANKS>
<xsl:for-each select="cylinder[position() != $cylinder]">
@ -164,11 +169,16 @@
<CYLINDERENDPRESSURE>
<xsl:value-of select="@end"/>
</CYLINDERENDPRESSURE>
<xsl:if test="@workpressure != ''">
<WORKINGPRESSURE>
<xsl:value-of select="substring-before(@workpressure, ' ')"/>
</WORKINGPRESSURE>
</xsl:if>
<xsl:choose>
<xsl:when test="@workpressure != ''">
<WORKINGPRESSURE>
<xsl:value-of select="substring-before(@workpressure, ' ')"/>
</WORKINGPRESSURE>
</xsl:when>
<xsl:otherwise>
<WORKINGPRESSURE>198</WORKINGPRESSURE>
</xsl:otherwise>
</xsl:choose>
<O2PCT>
<xsl:value-of select="substring-before(@o2, '%')"/>
</O2PCT>