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
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface