- <xsl:variable name="o2">
- <xsl:choose>
- <xsl:when test="DIVE/GASES/MIX/O2 != ''">
- <xsl:value-of select="concat(DIVE/GASES/MIX/O2*100, '%')"/>
- </xsl:when>
- <xsl:otherwise>21.0%</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="size">
- <xsl:choose>
- <xsl:when test="Equipment/Tanks/Tank/MIX/TANK/TANKVOLUME != ''">
- <xsl:value-of select="concat(Equipment/Tanks/Tank/MIX/TANK/TANKVOLUME * 1000, ' l')"/>
- </xsl:when>
- <xsl:otherwise>0 l</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="start">
- <xsl:variable name="number" select="Equipment/Tanks/Tank/MIX/TANK/PSTART"/>
- <xsl:call-template name="pressure">
- <xsl:with-param name="number" select="$number"/>
- <xsl:with-param name="units" select="$units"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="end">
- <xsl:variable name="number" select="Equipment/Tanks/Tank/MIX/TANK/PEND"/>
- <xsl:call-template name="pressure">
- <xsl:with-param name="number" select="$number"/>
- <xsl:with-param name="units" select="$units"/>
- </xsl:call-template>
- </xsl:variable>
-
- <cylinder o2="{$o2}" size="{$size}" start="{$start}" end="{$end}"/>
+ <xsl:for-each select="Equipment/Tanks/Tank">
+ <cylinder>
+ <xsl:attribute name="o2">
+ <xsl:choose>
+ <xsl:when test="MIX/O2 != ''">
+ <xsl:value-of select="concat(MIX/O2*100, '%')"/>
+ </xsl:when>
+ <xsl:otherwise>21.0%</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:if test="MIX/HE != '0.0'">
+ <xsl:attribute name="he">
+ <xsl:value-of select="concat(MIX/HE*100, '%')"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:attribute name="size">
+ <xsl:choose>
+ <xsl:when test="MIX/TANK/TANKVOLUME != ''">
+ <xsl:value-of select="concat(MIX/TANK/TANKVOLUME * 1000, ' l')"/>
+ </xsl:when>
+ <xsl:otherwise>0 l</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:attribute name="start">
+ <xsl:variable name="number" select="MIX/TANK/PSTART"/>
+ <xsl:call-template name="pressure">
+ <xsl:with-param name="number" select="$number"/>
+ <xsl:with-param name="units" select="$units"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="end">
+ <xsl:variable name="number" select="MIX/TANK/PEND"/>
+ <xsl:call-template name="pressure">
+ <xsl:with-param name="number" select="$number"/>
+ <xsl:with-param name="units" select="$units"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ </cylinder>
+ </xsl:for-each>