summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xslt/import-metadata.xsl7
1 files changed, 1 insertions, 6 deletions
diff --git a/xslt/import-metadata.xsl b/xslt/import-metadata.xsl
index 7c3a9991..f67d1921 100644
--- a/xslt/import-metadata.xsl
+++ b/xslt/import-metadata.xsl
@@ -21,12 +21,7 @@
<!-- xsl:param name="output"/ -->
<xsl:variable name="uri"><xsl:value-of select="substring-after(@entityID,'://')"/></xsl:variable>
<xsl:variable name="host">
- <xsl:if test="contains($uri,'/')">
- <xsl:value-of select="substring-before($uri,'/')"/>
- </xsl:if>
- <xsl:if test="not(contains($uri,'/'))">
- <xsl:value-of select="$uri"/>
- </xsl:if>
+ <xsl:value-of select="translate($uri,'/','-')"/>
</xsl:variable>
<xsl:variable name="file" select="concat($output,'/',$host,'.xml')"/>
<exsl:document method="xml" indent="yes" href="{$file}">