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"
8 <xsl:param name=
"VERSION" select=
"string(document('')//fm:Version[1])"/>
9 <xsl:param name=
"DistroTitle" select=
"string(document('')//fm:Branch[1])"/>
10 <xsl:param name=
"DistroName">docbook-xsl
</xsl:param>
11 <xsl:param name=
"PreviousRelease">1.72.0</xsl:param>
12 <xsl:param name=
"PreviousReleaseRevision">6553</xsl:param>
13 <xsl:param name=
"Revision">$Revision:
1.1 $
</xsl:param>
14 <xsl:param name=
"sf-relid" select=
"0"/>
15 <xsl:strip-space elements=
"fm:*"/>
18 <fm:Project>DocBook
</fm:Project>
19 <fm:Branch>XSL Stylesheets
</fm:Branch>
20 <fm:Version>snapshot_6661
</fm:Version>
22 <fm:License>MIT/X Consortium License</fm:License>
25 <!-- * Initial freshmeat announcement -->
26 <!-- * Documentation -->
27 <!-- * Code cleanup -->
28 <!-- * Minor feature enhancements -->
29 Major feature enhancements
30 <!-- * Minor bugfixes -->
31 <!-- * Major bugfixes -->
32 <!-- * Minor security fixes -->
33 <!-- * Major security fixes -->
35 <fm:Home-Page-URL>http://sourceforge.net/projects/docbook/
</fm:Home-Page-URL>
36 <fm:Gzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.tar.gz?download
</fm:Gzipped-Tar-URL>
37 <fm:Zipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.zip?download
</fm:Zipped-Tar-URL>
38 <fm:Bzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.bz2?download
</fm:Bzipped-Tar-URL>
39 <fm:Changelog-URL>http://sourceforge.net/project/shownotes.php?release_id={SFRELID}
</fm:Changelog-URL>
40 <fm:CVS-URL>http://docbook.cvs.sourceforge.net/docbook/
</fm:CVS-URL>
41 <fm:Mailing-List-URL>http://lists.oasis-open.org/archives/docbook-apps/
</fm:Mailing-List-URL>
42 <fm:Changes>This is a bug-fix release with a few feature enhancements.
46 <xsl:template match=
"/" priority=
"-100">
47 <xsl:if test=
"$sf-relid = 0">
48 <xsl:message terminate=
"yes">
49 <xsl:text>You must specify the sf-relid as a parameter.
</xsl:text>
53 <xsl:apply-templates select=
"//fm:project"/>
56 <xsl:template match=
"fm:project">
57 <xsl:text> </xsl:text>
58 <xsl:apply-templates/>
59 <xsl:text> </xsl:text>
60 <xsl:apply-templates select=
"fm:Changes" mode=
"text"/>
63 <xsl:template match=
"fm:Changes"/>
65 <xsl:template match=
"fm:Gzipped-Tar-URL|fm:Zipped-Tar-URL|fm:Bzipped-Tar-URL">
66 <xsl:value-of select=
"local-name(.)"/>
67 <xsl:text>:
</xsl:text>
68 <xsl:value-of select=
"substring-before(., '{DISTRONAME-VERSION}')"/>
69 <xsl:value-of select=
"concat($DistroName, '-', $VERSION)"/>
70 <xsl:value-of select=
"substring-after(., '{DISTRONAME-VERSION}')"/>
71 <xsl:text> </xsl:text>
74 <xsl:template match=
"fm:Changelog-URL">
75 <xsl:value-of select=
"local-name(.)"/>
76 <xsl:text>:
</xsl:text>
77 <xsl:value-of select=
"substring-before(., '{SFRELID}')"/>
78 <xsl:value-of select=
"$sf-relid"/>
79 <xsl:value-of select=
"substring-after(., '{SFRELID}')"/>
80 <xsl:text> </xsl:text>
83 <xsl:template match=
"fm:*">
84 <xsl:value-of select=
"local-name(.)"/>
85 <xsl:text>:
</xsl:text>
86 <xsl:value-of select=
"normalize-space(.)"/>
87 <xsl:text> </xsl:text>