diff options
-rw-r--r-- | xslt/udcf.xslt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xslt/udcf.xslt b/xslt/udcf.xslt index f95e2036b..359e606b5 100644 --- a/xslt/udcf.xslt +++ b/xslt/udcf.xslt @@ -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"> |