summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xslt/divelogs.xslt10
1 files changed, 2 insertions, 8 deletions
diff --git a/xslt/divelogs.xslt b/xslt/divelogs.xslt
index c0585a540..32a59c358 100644
--- a/xslt/divelogs.xslt
+++ b/xslt/divelogs.xslt
@@ -45,14 +45,8 @@
</depth>
<location>
<xsl:for-each select="LOCATION|SITE">
- <xsl:choose>
- <xsl:when test="following-sibling::SITE[1] != ''">
- <xsl:value-of select="concat(., ' / ')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:value-of select="."/>
+ <xsl:if test=". != '' and following-sibling::*[1] != ''"> / </xsl:if>
</xsl:for-each>
</location>