summaryrefslogtreecommitdiff
path: root/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt')
-rw-r--r--xslt/normalize.xsl7
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>