Debian Codegraph @

VERSION

raw
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>Slides</fm:Branch>
15 <fm:Version>3.4.0</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-slides-{VERSION}.tar.gz?download</fm:Gzipped-Tar-URL>
32 <fm:Zipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/docbook-slides-{VERSION}.zip?download</fm:Zipped-Tar-URL>
33 <fm:Bzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/docbook-slides-{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/slides/</fm:CVS-URL>
36 <fm:Mailing-List-URL>http://lists.oasis-open.org/archives/docbook-apps/</fm:Mailing-List-URL>
37 <fm:Changes>This release adds some new features and fixes a few bugs.
38 </fm:Changes>
39 </fm:project>
40
41 <xsl:template match="/" priority="-100">
42 <xsl:choose>
43 <xsl:when test="xsl:*">
44 <xsl:if test="$sf-relid = 0">
45 <xsl:message terminate="yes">
46 <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
47 </xsl:message>
48 </xsl:if>
49
50 <xsl:apply-templates select="//fm:project"/>
51 </xsl:when>
52 <xsl:otherwise>
53 <xsl:apply-imports/>
54 </xsl:otherwise>
55 </xsl:choose>
56 </xsl:template>
57
58 <xsl:template match="fm:project">
59 <xsl:text>&#10;</xsl:text>
60 <xsl:apply-templates/>
61 <xsl:text>&#10;</xsl:text>
62 <xsl:apply-templates select="fm:Changes" mode="text"/>
63 </xsl:template>
64
65 <xsl:template match="fm:Changes"/>
66
67 <xsl:template match="fm:Gzipped-Tar-URL|fm:Zipped-Tar-URL|fm:Bzipped-Tar-URL">
68 <xsl:value-of select="local-name(.)"/>
69 <xsl:text>: </xsl:text>
70 <xsl:value-of select="substring-before(., '{VERSION}')"/>
71 <xsl:value-of select="$VERSION"/>
72 <xsl:value-of select="substring-after(., '{VERSION}')"/>
73 <xsl:text>&#10;</xsl:text>
74 </xsl:template>
75
76 <xsl:template match="fm:Changelog-URL">
77 <xsl:value-of select="local-name(.)"/>
78 <xsl:text>: </xsl:text>
79 <xsl:value-of select="substring-before(., '{SFRELID}')"/>
80 <xsl:value-of select="$sf-relid"/>
81 <xsl:value-of select="substring-after(., '{SFRELID}')"/>
82 <xsl:text>&#10;</xsl:text>
83 </xsl:template>
84
85 <xsl:template match="fm:*">
86 <xsl:value-of select="local-name(.)"/>
87 <xsl:text>: </xsl:text>
88 <xsl:value-of select="normalize-space(.)"/>
89 <xsl:text>&#10;</xsl:text>
90 </xsl:template>
91
92 </xsl:stylesheet>