diff options
author | Fredrik Aslund <fredrik.aslund@umu.se> | 2014-11-06 17:01:19 +0100 |
---|---|---|
committer | Fredrik Aslund <fredrik.aslund@umu.se> | 2014-11-06 17:01:19 +0100 |
commit | 7fb9b16cad7ec9f731695704a7b44e7973bb22e7 (patch) | |
tree | b8e4d5d36d58862de2e94ecf741fda34995407b7 /xslt/import-metadata.xsl | |
parent | 9a4bef2f6a1d34435efb39b138cffd774be787d8 (diff) | |
parent | 0b0690a13b13f2ff814224790c3fbe7c05a676d9 (diff) |
Merge branch 'master' of md-master.swamid.se:swamid-metadata
Diffstat (limited to 'xslt/import-metadata.xsl')
-rw-r--r-- | xslt/import-metadata.xsl | 7 |
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}"> |