source: BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/VERSION@ d52b7f85

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d52b7f85 was d7c9f58, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Updated DocBook-XSL code to version 1.73.2

  • Property mode set to 100644
File size: 4.2 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: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"
8 version='1.0'>
9
10<xsl:output omit-xml-declaration="yes"/>
11
12<xsl:param name="get"/>
13<xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
14<xsl:param name="Tag" select="concat('V',translate(string(document('')//fm:Version[1]),'.',''))"/>
15<xsl:param name="DistroTitle" select="string(document('')//fm:Branch[1])"/>
16<xsl:param name="sf-relid" select="0"/>
17
18<xsl:param name="DistroName">docbook-xsl</xsl:param>
19<xsl:param name="PreviousRelease">1.72.0</xsl:param>
20<xsl:param name="PreviousReleaseRevision">6549</xsl:param>
21<xsl:param name="Revision">$Revision$</xsl:param>
22<xsl:param name="VersionFileURL">$URL: https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl/VERSION $</xsl:param>
23
24<xsl:strip-space elements="fm:*"/>
25
26<fm:project>
27 <fm:Project>DocBook</fm:Project>
28 <fm:Branch>XSL Stylesheets</fm:Branch>
29 <fm:Version>1.73.2</fm:Version>
30<!--
31 <fm:License>MIT/X Consortium License</fm:License>
32-->
33 <fm:Release-Focus>
34<!-- * Initial freshmeat announcement -->
35<!-- * Documentation -->
36<!-- * Code cleanup -->
37<!-- * Minor feature enhancements -->
38<!-- * Major feature enhancements -->
39Minor bugfixes
40<!-- * Major bugfixes -->
41<!-- * Minor security fixes -->
42<!-- * Major security fixes -->
43 </fm:Release-Focus>
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 bug-fix update to the 1.73.1 release.
52</fm:Changes>
53</fm:project>
54
55<xsl:template match="/" priority="-100">
56 <xsl:choose>
57 <xsl:when test="$get = 'Tag'">
58 <xsl:value-of select="$Tag"/>
59 </xsl:when>
60 <xsl:when test="$get = 'PreviousRelease'">
61 <xsl:value-of select="$PreviousRelease"/>
62 </xsl:when>
63 <xsl:when test="$get = 'PreviousReleaseRevision'">
64 <xsl:value-of select="$PreviousReleaseRevision"/>
65 </xsl:when>
66 <xsl:when test="$get = 'DistroTitle'">
67 <xsl:value-of select="$DistroTitle"/>
68 </xsl:when>
69 <xsl:otherwise>
70 <xsl:if test="$sf-relid = 0">
71 <xsl:message terminate="yes">
72 <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
73 </xsl:message>
74 </xsl:if>
75 <xsl:apply-templates select="//fm:project"/>
76 </xsl:otherwise>
77 </xsl:choose>
78</xsl:template>
79
80<xsl:template match="fm:project">
81 <xsl:apply-templates/>
82 <xsl:text>&#10;</xsl:text>
83 <xsl:apply-templates select="fm:Changes" mode="text"/>
84</xsl:template>
85
86<xsl:template match="fm:Changes"/>
87
88<xsl:template match="fm:Gzipped-Tar-URL|fm:Zipped-Tar-URL|fm:Bzipped-Tar-URL">
89 <xsl:value-of select="local-name(.)"/>
90 <xsl:text>: </xsl:text>
91 <xsl:value-of select="substring-before(., '{DISTRONAME-VERSION}')"/>
92 <xsl:value-of select="concat($DistroName, '-', $VERSION)"/>
93 <xsl:value-of select="substring-after(., '{DISTRONAME-VERSION}')"/>
94 <xsl:text>&#10;</xsl:text>
95</xsl:template>
96
97<xsl:template match="fm:Changelog-URL">
98 <xsl:value-of select="local-name(.)"/>
99 <xsl:text>: </xsl:text>
100 <xsl:value-of select="substring-before(., '{SFRELID}')"/>
101 <xsl:value-of select="$sf-relid"/>
102 <xsl:value-of select="substring-after(., '{SFRELID}')"/>
103 <xsl:text>&#10;</xsl:text>
104</xsl:template>
105
106<xsl:template match="fm:*">
107 <xsl:value-of select="local-name(.)"/>
108 <xsl:text>: </xsl:text>
109 <xsl:value-of select="normalize-space(.)"/>
110 <xsl:text>&#10;</xsl:text>
111</xsl:template>
112
113</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.