Skip to content

Commit

Permalink
Add a dummy entity to the master file (so that there will always be a…
Browse files Browse the repository at this point in the history
…t least one, which the schema requires) and then strip it out during the generation process.
  • Loading branch information
iay committed Nov 3, 2006
1 parent c1701b4 commit 3597e38
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 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.1 2006/09/14 11:03:00 iay Exp $
$Id: master_sdss.xsl,v 1.2 2006/11/03 16:22:58 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.1 2006/09/14 11:03:00 iay Exp $</xsl:param>
<xsl:param name="cvsId">$Id: master_sdss.xsl,v 1.2 2006/11/03 16:22:58 iay Exp $</xsl:param>

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

<!--
Drop any dummy entities.
-->
<xsl:template match="md:EntityDescriptor[@entityID='dummy']">
<!-- nothing -->
</xsl:template>

<!--By default, copy text blocks, comments and attributes unchanged.-->
<xsl:template match="text()|comment()|@*">
<xsl:copy/>
Expand Down
11 changes: 9 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.1 2006/10/09 19:16:00 iay Exp $
$Id: master_ukfederation.xsl,v 1.2 2006/11/03 16:22:58 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_ukfederation.xsl,v 1.1 2006/10/09 19:16:00 iay Exp $</xsl:param>
<xsl:param name="cvsId">$Id: master_ukfederation.xsl,v 1.2 2006/11/03 16:22:58 iay Exp $</xsl:param>

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

<!--
Drop any dummy entities.
-->
<xsl:template match="md:EntityDescriptor[@entityID='dummy']">
<!-- 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 3597e38

Please sign in to comment.