Skip to content

Commit

Permalink
Pull the double-comment structure from the test stream into the main …
Browse files Browse the repository at this point in the history
…stream.
  • Loading branch information
iay committed Jul 16, 2009
1 parent 71e82c9 commit faa260b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions build/uk_master_unsigned.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,35 @@
<xsl:variable name="now" select="date:date-time()"/>

<!--
Add a comment to the start of the output file.
Document root.
-->
<xsl:template match="/">
<xsl:call-template name="document.comment"/>
<xsl:apply-templates/>
</xsl:template>

<!--
Document element.
-->
<xsl:template match="/md:EntitiesDescriptor">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:call-template name="document.comment"/>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>

<!--
Comment to be added to the top of the document, and just inside the document element.
-->
<xsl:template name="document.comment">
<xsl:comment>
<xsl:text>&#10;&#9;U K F E D E R A T I O N M E T A D A T A&#10;</xsl:text>
<xsl:text>&#10;</xsl:text>
<xsl:text>&#9;Aggregate built </xsl:text>
<xsl:value-of select="$now"/>
<xsl:text>&#10;</xsl:text>
</xsl:comment>
<xsl:apply-templates/>
</xsl:template>

<!--
Expand Down

0 comments on commit faa260b

Please sign in to comment.