Changeset 95895fc in subsurface


Ignore:
Timestamp:
May 6, 2017, 8:06:42 AM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
63f034c
Parents:
e52d9c2
git-author:
Miika Turkia <miika.turkia@…> (05/04/17 12:35:39)
git-committer:
Dirk Hohndel <dirk@…> (05/06/17 08:06:42)
Message:

Import deviceid from UDDF file

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/uddf.xslt

    r0d36b6e r95895fc  
    1212    <divelog program="subsurface-import" version="2">
    1313      <settings>
    14         <divecomputerid deviceid="ffffffff">
     14        <divecomputerid>
     15          <xsl:attribute name="deviceid">
     16            <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" />
     17          </xsl:attribute>
    1518          <xsl:choose>
    1619            <xsl:when test="/UDDF/history != ''">
     
    336339
    337340
    338       <divecomputer deviceid="ffffffff">
     341      <divecomputer>
     342        <xsl:attribute name="deviceid">
     343          <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" />
     344        </xsl:attribute>
    339345        <xsl:attribute name="model">
    340346          <xsl:value-of select="/uddf/generator/name|/u:uddf/u:generator/u:name|/u1:uddf/u1:generator/u1:name|/UDDF/history/modified/application/name"/>
Note: See TracChangeset for help on using the changeset viewer.