Skip to content

Commit

Permalink
Separate SDSS and UK Federation metadata by looking for an EntityDesc…
Browse files Browse the repository at this point in the history
…riptor ID attribute threshold of 1000.
  • Loading branch information
iay committed Nov 15, 2006
1 parent f6eab36 commit 2016130
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build/master_sdss.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_sdss.xsl,v 1.3 2006/11/07 20:36:31 iay Exp $
$Id: master_sdss.xsl,v 1.4 2006/11/15 16:10:06 iay Exp $
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Expand All @@ -26,7 +26,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_sdss.xsl,v 1.3 2006/11/07 20:36:31 iay Exp $</xsl:param>
<xsl:param name="cvsId">$Id: master_sdss.xsl,v 1.4 2006/11/15 16:10:06 iay Exp $</xsl:param>

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

<!--
Drop any entities defined after the UK Federation went live.
-->
<xsl:template match="md:EntityDescriptor[number(substring-after(@ID, 'uk'))>=1000]">
<!-- 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 2016130

Please sign in to comment.