Skip to content

Commit

Permalink
Add version comment to output file.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Mar 17, 2005
1 parent 38f2d4b commit 36b2bd9
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
17 changes: 15 additions & 2 deletions build/v12_to_v13.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: v12_to_v13.xsl,v 1.2 2005/03/17 11:01:55 iay Exp $
$Id: v12_to_v13.xsl,v 1.3 2005/03/17 11:26:26 iay Exp $
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Expand All @@ -25,7 +25,20 @@
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: v12_to_v13.xsl,v 1.2 2005/03/17 11:01:55 iay Exp $</xsl:param>
<xsl:param name="cvsId">$Id: v12_to_v13.xsl,v 1.3 2005/03/17 11:26:26 iay Exp $</xsl:param>

<!--
Add a comment to the start of the output file.
-->
<xsl:template match="/">
<xsl:comment>
<xsl:text>&#10;&#9;***DO NOT EDIT THIS FILE***&#10;&#10;</xsl:text>
<xsl:text>&#9;Converted by:&#10;&#10;&#9;</xsl:text>
<xsl:value-of select="substring-before(substring-after($cvsId, ': '), '$')"/>
<xsl:text>&#10;</xsl:text>
</xsl:comment>
<xsl:apply-templates/>
</xsl:template>

<!--Force UTF-8 encoding for the output.-->
<xsl:output omit-xml-declaration="no" method="xml" encoding="UTF-8" indent="yes"/>
Expand Down
20 changes: 20 additions & 0 deletions build/v13_to_v12_sites.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Author: Ian A. Young <ian@iay.org.uk>
$Id: v13_to_v12_sites.xsl,v 1.6 2005/03/17 11:31:04 iay Exp $
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Expand All @@ -18,6 +19,25 @@
xmlns="urn:mace:shibboleth:1.0"
exclude-result-prefixes="shibmeta md">

<!--
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: v13_to_v12_sites.xsl,v 1.6 2005/03/17 11:31:04 iay Exp $</xsl:param>

<!--
Add a comment to the start of the output file.
-->
<xsl:template match="/">
<xsl:comment>
<xsl:text>&#10;&#9;***DO NOT EDIT THIS FILE***&#10;&#10;</xsl:text>
<xsl:text>&#9;Converted by:&#10;&#10;&#9;</xsl:text>
<xsl:value-of select="substring-before(substring-after($cvsId, ': '), '$')"/>
<xsl:text>&#10;</xsl:text>
</xsl:comment>
<xsl:apply-templates/>
</xsl:template>

<!--Force UTF-8 encoding for the output.-->
<xsl:output omit-xml-declaration="no" method="xml" encoding="UTF-8" indent="yes"/>

Expand Down

0 comments on commit 36b2bd9

Please sign in to comment.