source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/VERSION.xsl@ 15c7d39

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 15c7d39 was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.4 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:param name="get"/>
11<xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
12<xsl:param name="Tag" select="concat('V',translate(string(document('')//fm:Version[1]),'.',''))"/>
13<xsl:param name="DistroTitle" select="string(document('')//fm:Branch[1])"/>
14<xsl:param name="sf-relid" select="0"/>
15
16<xsl:param name="DistroName">docbook-xsl</xsl:param>
17<xsl:param name="PreviousRelease">1.78.0</xsl:param>
18<xsl:param name="PreviousReleaseRevision">9696</xsl:param>
19<xsl:param name="Revision">$Revision: 9731 $</xsl:param>
20<xsl:param name="VersionFileURL">$URL: https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl/VERSION $</xsl:param>
21
22<xsl:strip-space elements="fm:*"/>
23
24<fm:project>
25 <fm:Project>DocBook</fm:Project>
26 <fm:Branch>XSL Stylesheets</fm:Branch>
27 <!-- * set/keep fm:version as N.NN.N-pre except for official releases, -->
28 <!-- * then after the release, revert it to N.NN.N-pre & check back in -->
29 <fm:Version>1.78.1</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
39<!-- * Minor 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 release with bugfixes and some enhancements.</fm:Changes>
52</fm:project>
53
54<xsl:template match="/" priority="-100">
55 <xsl:choose>
56 <xsl:when test="$get = 'Tag'">
57 <xsl:value-of select="$Tag"/>
58 </xsl:when>
59 <xsl:when test="$get = 'PreviousRelease'">
60 <xsl:value-of select="$PreviousRelease"/>
61 </xsl:when>
62 <xsl:when test="$get = 'PreviousReleaseRevision'">
63 <xsl:value-of select="$PreviousReleaseRevision"/>
64 </xsl:when>
65 <xsl:when test="$get = 'DistroTitle'">
66 <xsl:value-of select="$DistroTitle"/>
67 </xsl:when>
68 <xsl:when test="$get = 'VERSION'">
69 <xsl:value-of select="$VERSION"/>
70 </xsl:when>
71 <xsl:otherwise>
72 <xsl:if test="$sf-relid = 0">
73 <xsl:message terminate="yes">
74 <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
75 </xsl:message>
76 </xsl:if>
77 <xsl:apply-templates select="//fm:project"/>
78 </xsl:otherwise>
79 </xsl:choose>
80</xsl:template>
81
82<xsl:template match="fm:project">
83 <xsl:apply-templates/>
84 <xsl:text>&#10;</xsl:text>
85 <xsl:apply-templates select="fm:Changes" mode="text"/>
86</xsl:template>
87
88<xsl:template match="fm:Changes"/>
89
90<xsl:template match="fm:Gzipped-Tar-URL|fm:Zipped-Tar-URL|fm:Bzipped-Tar-URL">
91 <xsl:value-of select="local-name(.)"/>
92 <xsl:text>: </xsl:text>
93 <xsl:value-of select="substring-before(., '{DISTRONAME-VERSION}')"/>
94 <xsl:value-of select="concat($DistroName, '-', $VERSION)"/>
95 <xsl:value-of select="substring-after(., '{DISTRONAME-VERSION}')"/>
96 <xsl:text>&#10;</xsl:text>
97</xsl:template>
98
99<xsl:template match="fm:Changelog-URL">
100 <xsl:value-of select="local-name(.)"/>
101 <xsl:text>: </xsl:text>
102 <xsl:value-of select="substring-before(., '{SFRELID}')"/>
103 <xsl:value-of select="$sf-relid"/>
104 <xsl:value-of select="substring-after(., '{SFRELID}')"/>
105 <xsl:text>&#10;</xsl:text>
106</xsl:template>
107
108<xsl:template match="fm:*">
109 <xsl:value-of select="local-name(.)"/>
110 <xsl:text>: </xsl:text>
111 <xsl:value-of select="normalize-space(.)"/>
112 <xsl:text>&#10;</xsl:text>
113</xsl:template>
114
115</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.