Only print separator when really needed on import

The separator was printed if SITE had data, even if LOCATION was empty.
Now print the separator only if both of these contain data.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2013-03-16 09:42:13 +02:00 committed by Dirk Hohndel
parent fbb260aeb5
commit 38d224a335

View file

@ -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:if test=". != '' and following-sibling::*[1] != ''"> / </xsl:if>
</xsl:for-each>
</location>