mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
Limit cylinders to one dive only
With XSLT we have to be specific if we want to apply cylinder iteration operation to one dive only. Thus using the last dive as reference when printing cylinder header. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
eb455fe0d2
commit
8f7c9bc7d1
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
|||
$fs)"/>
|
||||
|
||||
<!-- Print cylinder info according to the amount of cylinders in dive -->
|
||||
<xsl:for-each select="dive/cylinder|trip/dive/cylinder">
|
||||
<xsl:for-each select="dive[position()=last()]/cylinder|trip[position()=last()]/dive[position()=last()]/cylinder">
|
||||
<xsl:value-of select="concat(
|
||||
'"cylinder size (cuft)"',
|
||||
$fs,
|
||||
|
@ -100,7 +100,7 @@
|
|||
$fs)"/>
|
||||
|
||||
<!-- Print cylinder info according to the amount of cylinders in dive -->
|
||||
<xsl:for-each select="dive/cylinder|trip/dive/cylinder">
|
||||
<xsl:for-each select="dive[position()=last()]/cylinder|trip[position()=last()]/dive[position()=last()]/cylinder">
|
||||
<xsl:value-of select="concat(
|
||||
'"cylinder size (l)"',
|
||||
$fs,
|
||||
|
|
Loading…
Reference in a new issue