Skip to content

Commit

Permalink
Test stream: duplicate the document comment inside the document eleme…
Browse files Browse the repository at this point in the history
…nt so that it (may) be preserved when downloaded by e.g., Shibboleth 2.x.
  • Loading branch information
iay committed Mar 21, 2009
1 parent dab6832 commit f94c2c5
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions build/uk_master_test.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,27 @@
<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:call-template name="document.comment"/>
<xsl:apply-templates/>
</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>
Expand All @@ -42,7 +60,6 @@
<xsl:value-of select="$now"/>
<xsl:text>&#10;</xsl:text>
</xsl:comment>
<xsl:apply-templates/>
</xsl:template>

<!--
Expand Down

0 comments on commit f94c2c5

Please sign in to comment.