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.70.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://docbook.cvs.sourceforge.net/docbook/</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 stable release of the 1.70 stylesheets. It
38    includes only a few small changes from 1.70.0.
39</fm:Changes>
40</fm:project>
41
42<xsl:template match="/" priority="-100">
43  <xsl:if test="$sf-relid = 0">
44    <xsl:message terminate="yes">
45      <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
46    </xsl:message>
47  </xsl:if>
48
49  <xsl:apply-templates select="//fm:project"/>
50</xsl:template>
51
52<xsl:template match="fm:project">
53  <xsl:text>&#10;</xsl:text>
54  <xsl:apply-templates/>
55  <xsl:text>&#10;</xsl:text>
56  <xsl:apply-templates select="fm:Changes" mode="text"/>
57</xsl:template>
58
59<xsl:template match="fm:Changes"/>
60
61<xsl:template match="fm:Gzipped-Tar-URL|fm:Zipped-Tar-URL|fm:Bzipped-Tar-URL">
62  <xsl:value-of select="local-name(.)"/>
63  <xsl:text>: </xsl:text>
64  <xsl:value-of select="substring-before(., '{VERSION}')"/>
65  <xsl:value-of select="$VERSION"/>
66  <xsl:value-of select="substring-after(., '{VERSION}')"/>
67  <xsl:text>&#10;</xsl:text>
68</xsl:template>
69
70<xsl:template match="fm:Changelog-URL">
71  <xsl:value-of select="local-name(.)"/>
72  <xsl:text>: </xsl:text>
73  <xsl:value-of select="substring-before(., '{SFRELID}')"/>
74  <xsl:value-of select="$sf-relid"/>
75  <xsl:value-of select="substring-after(., '{SFRELID}')"/>
76  <xsl:text>&#10;</xsl:text>
77</xsl:template>
78
79<xsl:template match="fm:*">
80  <xsl:value-of select="local-name(.)"/>
81  <xsl:text>: </xsl:text>
82  <xsl:value-of select="normalize-space(.)"/>
83  <xsl:text>&#10;</xsl:text>
84</xsl:template>
85
86</xsl:stylesheet>
87