mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
UDCF import: store units in a variable
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
3cf9989d65
commit
38ac965989
1 changed files with 10 additions and 0 deletions
|
@ -31,6 +31,16 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="DIVE|dive">
|
||||
<xsl:variable name="units">
|
||||
<xsl:choose>
|
||||
<xsl:when test="//units|//UNITS = 'imperial'">
|
||||
<xsl:value-of select="'Imperial'"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'Metric'"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<dive>
|
||||
<xsl:attribute name="date">
|
||||
<xsl:for-each select="DATE/YEAR|DATE/MONTH|DATE/DAY|date/year|date/month|date/day">
|
||||
|
|
Loading…
Add table
Reference in a new issue