summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Lördal <anders.lordal@hig.se>2014-10-29 20:42:07 +0100
committerAnders Lördal <anders.lordal@hig.se>2014-10-29 20:42:07 +0100
commitfb0a12eb06bb64aa24a22414b895b20b38ff412d (patch)
treed63fa16ab98a999064ca5ba9e134a4f180a783bb
parent42f5597cd550b433667e11f432b5fa3daf7429a8 (diff)
Updated XSLT for interfederations
-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}">