Clean up MacDive location conversion

We got additional slashes in front of the site if country and/or
location was missing.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-05-20 21:45:56 +03:00 committed by Dirk Hohndel
parent f7e86b5838
commit 95c2c06be4

View file

@ -89,10 +89,10 @@
<location debug="true">
<xsl:for-each select="site/country|site/location|site/name">
<xsl:choose>
<xsl:when test="following-sibling::location[1] != ''">
<xsl:when test="following-sibling::location[1] != '' and . != ''">
<xsl:value-of select="concat(., ' / ')"/>
</xsl:when>
<xsl:when test="following-sibling::name[1] != ''">
<xsl:when test="following-sibling::name[1] != '' and . != ''">
<xsl:value-of select="concat(., ' / ')"/>
</xsl:when>
<xsl:otherwise>
@ -114,10 +114,10 @@
<location>
<xsl:for-each select="country|location|site">
<xsl:choose>
<xsl:when test="following-sibling::location[1] != ''">
<xsl:when test="following-sibling::location[1] != '' and . != ''">
<xsl:value-of select="concat(., ' / ')"/>
</xsl:when>
<xsl:when test="following-sibling::site[1] != ''">
<xsl:when test="following-sibling::site[1] != '' and . != ''">
<xsl:value-of select="concat(., ' / ')"/>
</xsl:when>
<xsl:otherwise>