aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt')
-rw-r--r--xslt/divelogs-export.xslt22
1 files changed, 11 insertions, 11 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index eaa1c510c..1bcf6e057 100644
--- a/xslt/divelogs-export.xslt
+++ b/xslt/divelogs-export.xslt
@@ -42,6 +42,17 @@
<xsl:value-of select="//site[@uuid = $uuid]/@name"/>
</xsl:variable>
<xsl:choose>
+ <xsl:when test="/divelog/divesites/site[@uuid = $uuid]/geo/@value != ''">
+ <LOCATION>
+ <xsl:for-each select="/divelog/divesites/site[@uuid = $uuid]/geo/@value">
+ <xsl:if test="position() != 1"> / </xsl:if>
+ <xsl:value-of select="."/>
+ </xsl:for-each>
+ </LOCATION>
+ <SITE>
+ <xsl:value-of select="$location"/>
+ </SITE>
+ </xsl:when>
<xsl:when test="contains($location, '/')">
<xsl:variable name="site">
<xsl:call-template name="basename">
@@ -56,17 +67,6 @@
</LOCATION>
</xsl:when>
<xsl:otherwise>
- <xsl:if test="/divelog/divesites/site[@uuid = $uuid]/geo/@value != ''">
- <LOCATION>
- <xsl:for-each select="/divelog/divesites/site[@uuid = $uuid]/geo/@value">
- <xsl:if test="position() != 1"> / </xsl:if>
- <xsl:value-of select="."/>
- </xsl:for-each>
- </LOCATION>
- </xsl:if>
- <SITE>
- <xsl:value-of select="$location"/>
- </SITE>
</xsl:otherwise>
</xsl:choose>