Skip to content

Commit

Permalink
Drop federation key authorities in export metadata. Drop all but expl…
Browse files Browse the repository at this point in the history
…icitly opted-in entities in export metadata.
  • Loading branch information
iay committed Sep 11, 2009
1 parent 33aff17 commit d6c4f36
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build/uk_master_export.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,28 @@
</xsl:comment>
<xsl:apply-templates/>
</xsl:template>

<!--
Drop the federation-specific key authority information.
We assume, for now, that this is the only extension on the EntitiesDescriptor
and just omit that entirely. If we ever start putting other extensions in at
that level, this would need to be revised.
-->
<xsl:template match="md:EntitiesDescriptor/md:Extensions">
<!-- do nothing -->
</xsl:template>

<!--
Only include explicitly opted-in entities by discarding
everything else.
There must be at least one of these, or the output will
not be schema-valid.
-->
<xsl:template match="md:EntityDescriptor[not(md:Extensions/uklabel:ExportOptIn)]">
<!-- do nothing -->
</xsl:template>

<!--
Pass through certain uklabel namespace elements.
Expand Down

0 comments on commit d6c4f36

Please sign in to comment.