[PATCH 3/7] Prevent UserID from being 'stuffed' into the start of UDDF export.

Martin Long martin at longhome.co.uk
Tue Dec 9 15:24:49 PST 2014


Due to there being no xsl template for the userID, it ended up getting
inserted at the start of the output. This adds an empty template to
map the <settings> element, preventing this erronious insertion.
---
 xslt/uddf-export.xslt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index 42e0e58..0488258 100644
--- a/xslt/uddf-export.xslt
+++ b/xslt/uddf-export.xslt
@@ -7,6 +7,8 @@
   <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:template match="/divelog/settings"/>
+
   <xsl:template match="/divelog/dives">
     <uddf version="3.2.0">
       <generator>
-- 
1.9.1



More information about the subsurface mailing list