mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix divecomputer part of UDDF export
XPath was incorrect for parsing divecomputers into the equipment section, meaning they dont get inserted. Signed-off-by: Martin Long <martin@longhome.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c043d02f26
commit
cbb613bcde
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
<xsl:key name="gases" match="cylinder" use="concat(substring-before(@o2, '.'), '/', substring-before(@he, '.'))" />
|
||||
<xsl:key name="images" match="picture" use="concat(../../dive/@number|../dive/@number, ':', @filename, '@', @offset)" />
|
||||
<xsl:key name="divecomputer" match="divecomputer" use="@deviceid" />
|
||||
|
||||
<!-- This needs to be set at this top level so that it is avialable in both the buddies and profiledata sections-->
|
||||
<xsl:variable name="buddies">
|
||||
|
@ -52,7 +53,7 @@
|
|||
<diver>
|
||||
<owner id="owner">
|
||||
<equipment>
|
||||
<xsl:for-each select="/divelog/settings/divecomputerid">
|
||||
<xsl:for-each select="//dive/divecomputer[generate-id() = generate-id(key('divecomputer', @deviceid)[1])]">
|
||||
<divecomputer id="{./@deviceid}">
|
||||
<name>
|
||||
<xsl:choose>
|
||||
|
|
Loading…
Add table
Reference in a new issue