diff options
author | Leif Johansson <leifj@sunet.se> | 2016-12-12 09:29:09 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2016-12-12 09:29:09 +0100 |
commit | 99d766c8939714b075aae0cb5fa7b3aa53eb8a5e (patch) | |
tree | 5acad47cd0c44a442bac7f565b0de15fce4f9da8 /xslt | |
parent | 69a138022ced0f75643ac27888fd6fe6e3499875 (diff) |
normalize generates Name from target
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/normalize.xsl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xslt/normalize.xsl b/xslt/normalize.xsl index 0886feef..015f8415 100644 --- a/xslt/normalize.xsl +++ b/xslt/normalize.xsl @@ -33,7 +33,12 @@ If You do not accept these Terms, then You must not continue to use this Metadat </xsl:comment></xsl:if> <md:EntitiesDescriptor> <xsl:attribute name="ID"><xsl:value-of select="$ID"/></xsl:attribute> - <xsl:attribute name="Name"><xsl:value-of select="@Name"/></xsl:attribute> + <xsl:attribute name="Name"> + <xsl:choose> + <xsl:when test="$target"><xsl:value-of select="$target"/></xsl:when> + <xsl:otherwise><xsl:value-of select="@Name"/></xsl:otherwise> + </xsl:choose> + </xsl:attribute> <xsl:if test="@cacheDuration"> <xsl:attribute name="cacheDuration"><xsl:value-of select="@cacheDuration"/></xsl:attribute> </xsl:if> |