source: clfs-embedded/BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/VERSION

Last change on this file was 241f9a9, checked in by Andrew Bradford <andrew@…>, 7 years ago

Remove freshmeat references

Apparently freshmeat.net is no longer (for some time), so remove all
references to it.

Thanks to akhiezer <lfs65@…> for pointing this out.

  • Property mode set to 100644
File size: 4.1 KB
Line 
1<?xml version='1.0'?> <!-- -*- nxml -*- vim: set foldlevel=2: -->
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3  xmlns:sf="http://sourceforge.net/"
4  xmlns:dyn="http://exslt.org/dynamic"
5  xmlns:saxon="http://icl.com/saxon"
6  exclude-result-prefixes="sf"
7  version='1.0'>
8
9<xsl:output omit-xml-declaration="yes"/>
10
11<xsl:param name="get"/>
12<xsl:param name="VERSION" select="string(document('')//sf:Version[1])"/>
13<xsl:param name="Tag" select="concat('V',translate(string(document('')//sf:Version[1]),'.',''))"/>
14<xsl:param name="DistroTitle" select="string(document('')//sf:Branch[1])"/>
15<xsl:param name="sf-relid" select="0"/>
16
17<xsl:param name="DistroName">docbook-xsl</xsl:param>
18<xsl:param name="PreviousRelease">1.72.0</xsl:param>
19<xsl:param name="PreviousReleaseRevision">6549</xsl:param>
20<xsl:param name="Revision">$Revision$</xsl:param>
21<xsl:param name="VersionFileURL">$URL: https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl/VERSION $</xsl:param>
22
23<xsl:strip-space elements="sf:*"/>
24
25<sf:project>
26  <sf:Project>DocBook</sf:Project>
27  <sf:Branch>XSL Stylesheets</sf:Branch>
28  <sf:Version>1.73.2</sf:Version>
29<!--
30  <sf:License>MIT/X Consortium License</sf:License>
31-->
32  <sf:Release-Focus>
33<!-- * Documentation -->
34<!-- * Code cleanup -->
35<!-- * Minor feature enhancements -->
36<!-- * Major feature enhancements -->
37Minor bugfixes
38<!-- * Major bugfixes -->
39<!-- * Minor security fixes -->
40<!-- * Major security fixes -->
41  </sf:Release-Focus>
42  <sf:Home-Page-URL>http://sourceforge.net/projects/docbook/</sf:Home-Page-URL>
43  <sf:Gzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.tar.gz?download</sf:Gzipped-Tar-URL>
44  <sf:Zipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.zip?download</sf:Zipped-Tar-URL>
45  <sf:Bzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.bz2?download</sf:Bzipped-Tar-URL>
46  <sf:Changelog-URL>http://sourceforge.net/project/shownotes.php?release_id={SFRELID}</sf:Changelog-URL>
47  <sf:CVS-URL>http://docbook.svn.sourceforge.net/viewvc/docbook/</sf:CVS-URL>
48  <sf:Mailing-List-URL>http://lists.oasis-open.org/archives/docbook-apps/</sf:Mailing-List-URL>
49  <sf:Changes>This is a bug-fix update to the 1.73.1 release.
50</sf:Changes>
51</sf:project>
52
53<xsl:template match="/" priority="-100">
54  <xsl:choose>
55    <xsl:when test="$get = 'Tag'">
56      <xsl:value-of select="$Tag"/>
57    </xsl:when>
58    <xsl:when test="$get = 'PreviousRelease'">
59      <xsl:value-of select="$PreviousRelease"/>
60    </xsl:when>
61    <xsl:when test="$get = 'PreviousReleaseRevision'">
62      <xsl:value-of select="$PreviousReleaseRevision"/>
63    </xsl:when>
64    <xsl:when test="$get = 'DistroTitle'">
65      <xsl:value-of select="$DistroTitle"/>
66    </xsl:when>
67    <xsl:otherwise>
68      <xsl:if test="$sf-relid = 0">
69        <xsl:message terminate="yes">
70         <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
71        </xsl:message>
72      </xsl:if>
73      <xsl:apply-templates select="//sf:project"/>
74    </xsl:otherwise>
75  </xsl:choose>
76</xsl:template>
77
78<xsl:template match="sf:project">
79  <xsl:apply-templates/>
80  <xsl:text>&#10;</xsl:text>
81  <xsl:apply-templates select="sf:Changes" mode="text"/>
82</xsl:template>
83
84<xsl:template match="sf:Changes"/>
85
86<xsl:template match="sf:Gzipped-Tar-URL|sf:Zipped-Tar-URL|sf:Bzipped-Tar-URL">
87  <xsl:value-of select="local-name(.)"/>
88  <xsl:text>: </xsl:text>
89  <xsl:value-of select="substring-before(., '{DISTRONAME-VERSION}')"/>
90  <xsl:value-of select="concat($DistroName, '-', $VERSION)"/>
91  <xsl:value-of select="substring-after(., '{DISTRONAME-VERSION}')"/>
92  <xsl:text>&#10;</xsl:text>
93</xsl:template>
94
95<xsl:template match="sf:Changelog-URL">
96  <xsl:value-of select="local-name(.)"/>
97  <xsl:text>: </xsl:text>
98  <xsl:value-of select="substring-before(., '{SFRELID}')"/>
99  <xsl:value-of select="$sf-relid"/>
100  <xsl:value-of select="substring-after(., '{SFRELID}')"/>
101  <xsl:text>&#10;</xsl:text>
102</xsl:template>
103
104<xsl:template match="sf:*">
105  <xsl:value-of select="local-name(.)"/>
106  <xsl:text>: </xsl:text>
107  <xsl:value-of select="normalize-space(.)"/>
108  <xsl:text>&#10;</xsl:text>
109</xsl:template>
110
111</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.