diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2017-05-04 22:44:08 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-06 08:06:42 -0700 |
commit | 63f034c92bc288273de33c0f0574651a6f29317c (patch) | |
tree | c317135e66f31abc83edbe4273452b72cea42ffb /xslt | |
parent | 95895fc5432caadac04d3f475a229038d413e710 (diff) | |
download | subsurface-63f034c92bc288273de33c0f0574651a6f29317c.tar.gz |
Add model and nick for DC on UDDF import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/uddf.xslt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt index 54c79d045..2ff57fffd 100644 --- a/xslt/uddf.xslt +++ b/xslt/uddf.xslt @@ -15,6 +15,12 @@ <xsl:attribute name="deviceid"> <xsl:value-of select="/uddf/diver/owner/equipment/divecomputer/@id|/u:uddf/u:diver/u:owner/u:equipment/u:divecomputer/@id|/u1:uddf/u1:diver/u1:owner/u1:equipment/u1:divecomputer/@id" /> </xsl:attribute> + <xsl:attribute name="model"> + <xsl:value-of select="/uddf/diver/owner/equipment/divecomputer/model|/u:uddf/u:diver/u:owner/u:equipment/u:divecomputer/u:model|/u1:uddf/u1:diver/u1:owner/u1:equipment/u1:divecomputer/u1:model" /> + </xsl:attribute> + <xsl:attribute name="nickname"> + <xsl:value-of select="/uddf/diver/owner/equipment/divecomputer/name|/u:uddf/u:diver/u:owner/u:equipment/u:divecomputer/u:name|/u1:uddf/u1:diver/u1:owner/u1:equipment/u1:divecomputer/u1:name" /> + </xsl:attribute> <xsl:choose> <xsl:when test="/UDDF/history != ''"> <xsl:apply-templates select="/UDDF/history"/> |