Skip to content

Commit

Permalink
Reverse the filtering for uklabel namespace elements. Instead of excl…
Browse files Browse the repository at this point in the history
…uding only uklabel:Software, exclude everything *except* a list of specific elements. This means that we can deploy new elements internally and have them hidden from publication by default.
  • Loading branch information
iay committed Sep 11, 2009
1 parent 3aeaa28 commit 33aff17
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 8 deletions.
15 changes: 13 additions & 2 deletions build/uk_master_back.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,20 @@
</xsl:template>

<!--
Strip uklabel:Software elements entirely.
Pass through certain uklabel namespace elements.
-->
<xsl:template match="uklabel:Software|uklabel:Software">
<xsl:template match="uklabel:UKFederationMember |
uklabel:SDSSPolicy |
uklabel:AccountableUsers">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>

<!--
Strip all other uklabel namespace elements entirely.
-->
<xsl:template match="uklabel:*">
<!-- do nothing -->
</xsl:template>

Expand Down
15 changes: 13 additions & 2 deletions build/uk_master_export.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,20 @@
</xsl:template>

<!--
Strip uklabel:Software elements entirely.
Pass through certain uklabel namespace elements.
-->
<xsl:template match="uklabel:Software|uklabel:Software">
<xsl:template match="uklabel:UKFederationMember |
uklabel:SDSSPolicy |
uklabel:AccountableUsers">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>

<!--
Strip all other uklabel namespace elements entirely.
-->
<xsl:template match="uklabel:*">
<!-- do nothing -->
</xsl:template>

Expand Down
15 changes: 13 additions & 2 deletions build/uk_master_test.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,20 @@
</xsl:template>

<!--
Strip uklabel:Software elements entirely.
Pass through certain uklabel namespace elements.
-->
<xsl:template match="uklabel:Software|uklabel:Software">
<xsl:template match="uklabel:UKFederationMember |
uklabel:SDSSPolicy |
uklabel:AccountableUsers">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>

<!--
Strip all other uklabel namespace elements entirely.
-->
<xsl:template match="uklabel:*">
<!-- do nothing -->
</xsl:template>

Expand Down
15 changes: 13 additions & 2 deletions build/uk_master_unsigned.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,20 @@
</xsl:template>

<!--
Strip uklabel:Software elements entirely.
Pass through certain uklabel namespace elements.
-->
<xsl:template match="uklabel:Software|uklabel:Software">
<xsl:template match="uklabel:UKFederationMember |
uklabel:SDSSPolicy |
uklabel:AccountableUsers">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>

<!--
Strip all other uklabel namespace elements entirely.
-->
<xsl:template match="uklabel:*">
<!-- do nothing -->
</xsl:template>

Expand Down

0 comments on commit 33aff17

Please sign in to comment.