summaryrefslogtreecommitdiffstats
path: root/xslt/uddf.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/uddf.xslt')
-rw-r--r--xslt/uddf.xslt10
1 files changed, 8 insertions, 2 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index d06747878..5f117382b 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -23,12 +23,12 @@
<xsl:template match="generator|u:generator">
<xsl:if test="manufacturer/name|u:manufacturer/u:name != ''">
<xsl:attribute name="model">
- <xsl:value-of select="manufacturer/name|/u:manufacturer/u:name"/>
+ <xsl:value-of select="name|u:name"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="name|u:name != ''">
<xsl:attribute name="firmware">
- <xsl:value-of select="name|u:name"/>
+ <xsl:value-of select="manufacturer/name|/u:manufacturer/u:name"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="version|u:version != ''">
@@ -92,6 +92,12 @@
</temperature>
</xsl:for-each>
+ <divecomputer deviceid="ffffffff">
+ <xsl:attribute name="model">
+ <xsl:value-of select="/uddf/generator/name|/u:uddf/u:generator/u:name"/>
+ </xsl:attribute>
+ </divecomputer>
+
<xsl:apply-templates select="/uddf/gasdefinitions|/u:uddf/u:gasdefinitions"/>
<depth>
<xsl:for-each select="greatestdepth|informationafterdive/greatestdepth|u:greatestdepth|u:informationafterdive/u:greatestdepth">