Skip to content

Commit

Permalink
Split processing of EntitiesDescriptor and EntityDescriptor, as they use
Browse files Browse the repository at this point in the history
different attribute names for the thing that will become the KeyName.
  • Loading branch information
iay committed Apr 8, 2005
1 parent f283078 commit 9520af7
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions build/v13_to_v12_trust.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Author: Ian A. Young <ian@iay.org.uk>
$Id: v13_to_v12_trust.xsl,v 1.2 2005/04/05 16:20:18 iay Exp $
$Id: v13_to_v12_trust.xsl,v 1.3 2005/04/08 13:46:23 iay Exp $
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Expand All @@ -23,7 +23,7 @@
Version information for this file. Remember to peel off the dollar signs
before dropping the text into another versioned file.
-->
<xsl:param name="cvsId">$Id: v13_to_v12_trust.xsl,v 1.2 2005/04/05 16:20:18 iay Exp $</xsl:param>
<xsl:param name="cvsId">$Id: v13_to_v12_trust.xsl,v 1.3 2005/04/08 13:46:23 iay Exp $</xsl:param>

<!--
Add a comment to the start of the output file.
Expand All @@ -48,9 +48,9 @@
<xsl:output omit-xml-declaration="no" method="xml" encoding="UTF-8" indent="yes"/>

<!--
Extract a KeyAuthority extension from an EntitiesDescriptor or EntityDescriptor.
Extract a KeyAuthority extension from an EntitiesDescriptor.
-->
<xsl:template match="md:EntitiesDescriptor | md:EntityDescriptor">
<xsl:template match="md:EntitiesDescriptor">

<!-- extract KeyAuthority metadata, if any -->
<xsl:if test="md:Extensions/shibmeta:KeyAuthority/ds:KeyInfo">
Expand All @@ -63,6 +63,18 @@
<xsl:apply-templates select="md:EntitiesDescriptor | md:EntityDescriptor"/>
</xsl:template>

<!--
Extract a KeyAuthority extension from an EntityDescriptor.
-->
<xsl:template match="md:EntityDescriptor">
<!-- extract KeyAuthority metadata, if any -->
<xsl:if test="md:Extensions/shibmeta:KeyAuthority/ds:KeyInfo">
<xsl:apply-templates select="md:Extensions/shibmeta:KeyAuthority">
<xsl:with-param name="name" select="@entityID"/>
</xsl:apply-templates>
</xsl:if>
</xsl:template>

<!--
Map shibmeta:KeyAuthority to trust:KeyAuthority
-->
Expand Down

0 comments on commit 9520af7

Please sign in to comment.