mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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)"/>
|
$fs)"/>
|
||||||
|
|
||||||
<!-- Print cylinder info according to the amount of cylinders in dive -->
|
<!-- 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(
|
<xsl:value-of select="concat(
|
||||||
'"cylinder size (cuft)"',
|
'"cylinder size (cuft)"',
|
||||||
$fs,
|
$fs,
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
$fs)"/>
|
$fs)"/>
|
||||||
|
|
||||||
<!-- Print cylinder info according to the amount of cylinders in dive -->
|
<!-- 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(
|
<xsl:value-of select="concat(
|
||||||
'"cylinder size (l)"',
|
'"cylinder size (l)"',
|
||||||
$fs,
|
$fs,
|
||||||
|
|
Loading…
Reference in a new issue