1 <?xml version='1.0'?> <!-- -*- nxml -*- vim: set foldlevel=2: -->
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 xmlns:dyn="http://exslt.org/dynamic"
6 xmlns:saxon="http://icl.com/saxon"
7 exclude-result-prefixes="fm sf"
10 <xsl:param name="get"/>
11 <xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
12 <xsl:param name="Tag" select="concat('V',translate(string(document('')//fm:Version[1]),'.',''))"/>
13 <xsl:param name="DistroTitle" select="string(document('')//fm:Branch[1])"/>
14 <xsl:param name="sf-relid" select="0"/>
16 <xsl:param name="DistroName">docbook-xsl</xsl:param>
17 <xsl:param name="PreviousRelease">1.76.0</xsl:param>
18 <xsl:param name="PreviousReleaseRevision">8900</xsl:param>
19 <xsl:param name="Revision">$Revision: 8933 $</xsl:param>
20 <xsl:param name="VersionFileURL">$URL: https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl/VERSION $</xsl:param>
22 <xsl:strip-space elements="fm:*"/>
25 <fm:Project>DocBook</fm:Project>
26 <fm:Branch>XSL Stylesheets</fm:Branch>
27 <!-- * set/keep fm:version as N.NN.N-pre except for official releases, -->
28 <!-- * then after the release, revert it to N.NN.N-pre & check back in -->
29 <fm:Version>1.76.1</fm:Version>
31 <fm:License>MIT/X Consortium License</fm:License>
34 <!-- * Initial freshmeat announcement -->
35 <!-- * Documentation -->
36 <!-- * Code cleanup -->
37 <!-- * Minor feature enhancements -->
38 <!-- * Major feature enhancements -->
40 <!-- * Major bugfixes -->
41 <!-- * Minor security fixes -->
42 <!-- * Major security fixes -->
44 <fm:Home-Page-URL>http://sourceforge.net/projects/docbook/</fm:Home-Page-URL>
45 <fm:Gzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.tar.gz?download</fm:Gzipped-Tar-URL>
46 <fm:Zipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.zip?download</fm:Zipped-Tar-URL>
47 <fm:Bzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.bz2?download</fm:Bzipped-Tar-URL>
48 <fm:Changelog-URL>http://sourceforge.net/project/shownotes.php?release_id={SFRELID}</fm:Changelog-URL>
49 <fm:CVS-URL>http://docbook.svn.sourceforge.net/viewvc/docbook/</fm:CVS-URL>
50 <fm:Mailing-List-URL>http://lists.oasis-open.org/archives/docbook-apps/</fm:Mailing-List-URL>
51 <fm:Changes>This is a release with bugfixes and some enhancements.</fm:Changes>
54 <xsl:template match="/" priority="-100">
56 <xsl:when test="$get = 'Tag'">
57 <xsl:value-of select="$Tag"/>
59 <xsl:when test="$get = 'PreviousRelease'">
60 <xsl:value-of select="$PreviousRelease"/>
62 <xsl:when test="$get = 'PreviousReleaseRevision'">
63 <xsl:value-of select="$PreviousReleaseRevision"/>
65 <xsl:when test="$get = 'DistroTitle'">
66 <xsl:value-of select="$DistroTitle"/>
68 <xsl:when test="$get = 'VERSION'">
69 <xsl:value-of select="$VERSION"/>
72 <xsl:if test="$sf-relid = 0">
73 <xsl:message terminate="yes">
74 <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
77 <xsl:apply-templates select="//fm:project"/>
82 <xsl:template match="fm:project">
83 <xsl:apply-templates/>
84 <xsl:text> </xsl:text>
85 <xsl:apply-templates select="fm:Changes" mode="text"/>
88 <xsl:template match="fm:Changes"/>
90 <xsl:template match="fm:Gzipped-Tar-URL|fm:Zipped-Tar-URL|fm:Bzipped-Tar-URL">
91 <xsl:value-of select="local-name(.)"/>
92 <xsl:text>: </xsl:text>
93 <xsl:value-of select="substring-before(., '{DISTRONAME-VERSION}')"/>
94 <xsl:value-of select="concat($DistroName, '-', $VERSION)"/>
95 <xsl:value-of select="substring-after(., '{DISTRONAME-VERSION}')"/>
96 <xsl:text> </xsl:text>
99 <xsl:template match="fm:Changelog-URL">
100 <xsl:value-of select="local-name(.)"/>
101 <xsl:text>: </xsl:text>
102 <xsl:value-of select="substring-before(., '{SFRELID}')"/>
103 <xsl:value-of select="$sf-relid"/>
104 <xsl:value-of select="substring-after(., '{SFRELID}')"/>
105 <xsl:text> </xsl:text>
108 <xsl:template match="fm:*">
109 <xsl:value-of select="local-name(.)"/>
110 <xsl:text>: </xsl:text>
111 <xsl:value-of select="normalize-space(.)"/>
112 <xsl:text> </xsl:text>