On Wed, Dec 10, 2014 at 1:24 AM, Martin Long <[email protected]> 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
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to