Skip to content

Commit

Permalink
Bugzilla 748: strip most comments from published metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 23, 2010
1 parent ee110b0 commit 23180af
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions build/uk_master_test.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,25 @@
<xsl:template match="md:ContactPerson[@contactType='administrative']">
<!-- do nothing -->
</xsl:template>

<!--By default, copy text blocks, comments and attributes unchanged.-->
<xsl:template match="text()|comment()|@*">

<!--
Retain only certain comments.
-->

<xsl:template match="md:EntityDescriptor/comment()">
<xsl:copy/>
</xsl:template>

<xsl:template match="shibmd:KeyAuthority//comment()">
<xsl:copy/>
</xsl:template>

<!--
Strip all other comments.
-->

<!--By default, copy text blocks and attributes unchanged.-->
<xsl:template match="text()|@*">
<xsl:copy/>
</xsl:template>

Expand Down

0 comments on commit 23180af

Please sign in to comment.