Skip to content

Commit

Permalink
Strip comments and text nodes from inside SDSSPolicy label elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Feb 20, 2007
1 parent f15e61d commit 7839f72
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions build/master_ukfederation.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Author: Ian A. Young <ian@iay.org.uk>
$Id: master_ukfederation.xsl,v 1.4 2007/02/19 15:38:46 iay Exp $
$Id: master_ukfederation.xsl,v 1.5 2007/02/20 09:10:54 iay Exp $
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Expand All @@ -27,7 +27,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: master_ukfederation.xsl,v 1.4 2007/02/19 15:38:46 iay Exp $</xsl:param>
<xsl:param name="cvsId">$Id: master_ukfederation.xsl,v 1.5 2007/02/20 09:10:54 iay Exp $</xsl:param>

<!--
Add a comment to the start of the output file.
Expand Down Expand Up @@ -89,6 +89,20 @@
<!-- nothing -->
</xsl:template>

<!--
Drop comments from SDSSPolicy elements.
-->
<xsl:template match="uklabel:SDSSPolicy/comment()">
<!-- nothing -->
</xsl:template>

<!--
Drop text nodes from SDSSPolicy elements.
-->
<xsl:template match="uklabel:SDSSPolicy/text()">
<!-- nothing -->
</xsl:template>

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

0 comments on commit 7839f72

Please sign in to comment.