[PATCH 6/7] Added <leadquantity> to UDDF export, showing weight used.
Miika Turkia
miika.turkia at gmail.com
Tue Dec 9 21:53:09 PST 2014
On Wed, Dec 10, 2014 at 1:24 AM, Martin Long <martin at longhome.co.uk> wrote:
> ---
> xslt/uddf-export.xslt | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
> index e558ca5..b4c3cd9 100644
> --- a/xslt/uddf-export.xslt
> +++ b/xslt/uddf-export.xslt
> @@ -237,6 +237,10 @@
> </xsl:attribute>
> </link>
> </xsl:if>
> + <equipmentused>
> + <leadquantity><xsl:value-of
> select="substring-before(weightsystem/@weight, ' ')"/>
> + </leadquantity>
> + </equipmentused>
>
This one does not take into account that one dive might have multiple
weightsystem elements. E.g. with a 7mm suit I might have 3kg integrated and
4 on belt.
miika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141210/fac89191/attachment.html>
More information about the subsurface
mailing list