Skip to content

Commit

Permalink
Bugzilla 742: remove redundant prefixes in synthesised Extensions ele…
Browse files Browse the repository at this point in the history
…ments.

This affects all unsigned intermediate files, but only the signed aggregate that changes is the test aggregate.
  • Loading branch information
iay committed Jun 17, 2010
1 parent beb16dd commit f581f7a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions build/master_ukfederation.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,23 @@
<xsl:copy>
<xsl:variable name="entityID" select="ancestor::md:EntityDescriptor/@entityID"/>
<xsl:apply-templates select="@*"/>
<xsl:text>&#10; </xsl:text><Extensions>
<!-- copy scopes from EntityDescriptor extensions -->
<xsl:text>&#10; </xsl:text>
<xsl:element name="Extensions" namespace="urn:oasis:names:tc:SAML:2.0:metadata">
<!-- copy scopes from EntityDescriptor extensions -->
<xsl:for-each select="ancestor::md:EntityDescriptor/md:Extensions/shibmeta:Scope">
<xsl:text>&#10; </xsl:text>
<xsl:copy-of select="."/>
</xsl:for-each>
<!-- copy scopes from member outsource records -->
<xsl:for-each select="$outsourcedScopes[members:Entity = $entityID]/members:Scope">
<xsl:text>&#10; </xsl:text>
<shibmeta:Scope regexp="false"><xsl:value-of select="."/></shibmeta:Scope>
<xsl:text>&#10; </xsl:text>
<xsl:element name="shibmeta:Scope">
<xsl:attribute name="regexp">false</xsl:attribute>
<xsl:value-of select="."/>
</xsl:element>
</xsl:for-each>
<xsl:text>&#10; </xsl:text></Extensions>
<xsl:text>&#10; </xsl:text>
</xsl:element>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>
Expand Down

0 comments on commit f581f7a

Please sign in to comment.