diff options
author | Leif Johansson <leifj@sunet.se> | 2014-11-02 21:34:25 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2014-11-02 21:34:25 +0100 |
commit | 1d026f94c7f43411afc8eb079c4e30e5ba447df3 (patch) | |
tree | 5d5246466baf28f4ecb82fd6fa783e78bf750cea /xslt/import-metadata.xsl | |
parent | fb455038ec3f8caae5462a7aa8029b7e3e47beca (diff) | |
parent | 2e58965f6c923d0c346c9e857bdd44401ada08ac (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}"> |