Changeset 9536529 in subsurface


Ignore:
Timestamp:
May 6, 2017, 8:06:42 AM (3 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
5f3f641
Parents:
ba5f10a
git-author:
Miika Turkia <miika.turkia@…> (05/04/17 13:08:18)
git-committer:
Dirk Hohndel <dirk@…> (05/06/17 08:06:42)
Message:

Grab DC model on UDDF import if available

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/uddf.xslt

    r63f034c r9536529  
    350350        </xsl:attribute>
    351351        <xsl:attribute name="model">
    352           <xsl:value-of select="/uddf/generator/name|/u:uddf/u:generator/u:name|/u1:uddf/u1:generator/u1:name|/UDDF/history/modified/application/name"/>
     352          <xsl:choose>
     353            <xsl:when test="/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 != ''">
     354                <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" />
     355              </xsl:when>
     356              <xsl:otherwise>
     357              <xsl:value-of select="/uddf/generator/name|/u:uddf/u:generator/u:name|/u1:uddf/u1:generator/u1:name|/UDDF/history/modified/application/name"/>
     358            </xsl:otherwise>
     359          </xsl:choose>
    353360        </xsl:attribute>
    354361
Note: See TracChangeset for help on using the changeset viewer.