Skip to content

Commit

Permalink
Add version comment to output file. Some tidying.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Mar 17, 2005
1 parent 71eba7a commit 38f2d4b
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion build/v12_to_v11.xsl
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:shibb10="urn:mace:shibboleth:1.0" xmlns:trust10="urn:mace:shibboleth:trust:1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" exclude-result-prefixes="shibb10 trust10">
<!--
v12_to_v11.xsl
XSL stylesheet converting a Shibboleth 1.2 metadata file into the equivalent for
Shibboleth 1.1.
Author: Ian A. Young <ian@iay.org.uk>
$Id: v12_to_v11.xsl,v 1.2 2005/03/17 11:27:10 iay Exp $
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:shibb10="urn:mace:shibboleth:1.0"
xmlns:trust10="urn:mace:shibboleth:trust:1.0"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
exclude-result-prefixes="shibb10 trust10">

<!--
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_v11.xsl,v 1.2 2005/03/17 11:27:10 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"/>
<!--trust10:Trust is the root element for the trust file. Process it by changing the default namespace used and recursing.-->
Expand Down

0 comments on commit 38f2d4b

Please sign in to comment.