Rocco Rutte:
[apps/madmutt.git] / doc / xslt / VERSION
1 <?xml version='1.0'?> <!-- -*- nxml -*- -->
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                 xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
4                 xmlns:sf="http://sourceforge.net/"
5                 exclude-result-prefixes="fm sf"
6                 version='1.0'>
7
8 <xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
9 <xsl:param name="sf-relid" select="0"/>
10 <xsl:strip-space elements="fm:*"/>
11
12 <fm:project>
13   <fm:Project>DocBook</fm:Project>
14   <fm:Branch>XSL Stylesheets</fm:Branch>
15   <fm:Version>1.69.1</fm:Version>
16 <!--
17   <fm:License>MIT/X Consortium License</fm:License>
18 -->
19   <fm:Release-Focus>
20   <!-- Initial freshmeat announcement -->
21   <!-- Documentation -->
22   <!-- Code cleanup -->
23   <!-- Minor feature enhancements -->
24   <!-- Major feature enhancements -->
25   Minor bugfixes
26   <!-- Major bugfixes -->
27   <!-- Minor security fixes -->
28   <!-- Major security fixes -->
29   </fm:Release-Focus>
30   <fm:Home-Page-URL>http://sourceforge.net/projects/docbook/</fm:Home-Page-URL>
31   <fm:Gzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/docbook-xsl-{VERSION}.tar.gz?download</fm:Gzipped-Tar-URL>
32   <fm:Zipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/docbook-xsl-{VERSION}.zip?download</fm:Zipped-Tar-URL>
33   <fm:Bzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/docbook-xsl-{VERSION}.bz2?download</fm:Bzipped-Tar-URL>
34   <fm:Changelog-URL>http://sourceforge.net/project/shownotes.php?release_id={SFRELID}</fm:Changelog-URL>
35   <fm:CVS-URL>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/docbook/xsl/</fm:CVS-URL>
36   <fm:Mailing-List-URL>http://lists.oasis-open.org/archives/docbook-apps/</fm:Mailing-List-URL>
37   <fm:Changes>This is a minor bug-fix update to the 1.69.0 release.
38 </fm:Changes>
39 </fm:project>
40
41 <xsl:template match="/" priority="-100">
42   <xsl:if test="$sf-relid = 0">
43     <xsl:message terminate="yes">
44       <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
45     </xsl:message>
46   </xsl:if>
47
48   <xsl:apply-templates select="//fm:project"/>
49 </xsl:template>
50
51 <xsl:template match="fm:project">
52   <xsl:text>&#10;</xsl:text>
53   <xsl:apply-templates/>
54   <xsl:text>&#10;</xsl:text>
55   <xsl:apply-templates select="fm:Changes" mode="text"/>
56 </xsl:template>
57
58 <xsl:template match="fm:Changes"/>
59
60 <xsl:template match="fm:Gzipped-Tar-URL|fm:Zipped-Tar-URL|fm:Bzipped-Tar-URL">
61   <xsl:value-of select="local-name(.)"/>
62   <xsl:text>: </xsl:text>
63   <xsl:value-of select="substring-before(., '{VERSION}')"/>
64   <xsl:value-of select="$VERSION"/>
65   <xsl:value-of select="substring-after(., '{VERSION}')"/>
66   <xsl:text>&#10;</xsl:text>
67 </xsl:template>
68
69 <xsl:template match="fm:Changelog-URL">
70   <xsl:value-of select="local-name(.)"/>
71   <xsl:text>: </xsl:text>
72   <xsl:value-of select="substring-before(., '{SFRELID}')"/>
73   <xsl:value-of select="$sf-relid"/>
74   <xsl:value-of select="substring-after(., '{SFRELID}')"/>
75   <xsl:text>&#10;</xsl:text>
76 </xsl:template>
77
78 <xsl:template match="fm:*">
79   <xsl:value-of select="local-name(.)"/>
80   <xsl:text>: </xsl:text>
81   <xsl:value-of select="normalize-space(.)"/>
82   <xsl:text>&#10;</xsl:text>
83 </xsl:template>
84
85 </xsl:stylesheet>