[c873d807] | 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/"
|
---|
[c1fe047a] | 5 | xmlns:dyn="http://exslt.org/dynamic"
|
---|
| 6 | xmlns:saxon="http://icl.com/saxon"
|
---|
[c873d807] | 7 | exclude-result-prefixes="fm sf"
|
---|
| 8 | version='1.0'>
|
---|
| 9 |
|
---|
[c1fe047a] | 10 | <xsl:param name="get"/>
|
---|
[c873d807] | 11 | <xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
|
---|
[c1fe047a] | 12 | <xsl:param name="Tag" select="concat('V',translate(string(document('')//fm:Version[1]),'.',''))"/>
|
---|
[c873d807] | 13 | <xsl:param name="DistroTitle" select="string(document('')//fm:Branch[1])"/>
|
---|
[c1fe047a] | 14 | <xsl:param name="sf-relid" select="0"/>
|
---|
| 15 |
|
---|
[c873d807] | 16 | <xsl:param name="DistroName">docbook-xsl</xsl:param>
|
---|
[15c7d39] | 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>
|
---|
[60a5a938] | 20 | <xsl:param name="VersionFileURL">$URL: https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl/VERSION $</xsl:param>
|
---|
[c1fe047a] | 21 |
|
---|
[c873d807] | 22 | <xsl:strip-space elements="fm:*"/>
|
---|
| 23 |
|
---|
| 24 | <fm:project>
|
---|
| 25 | <fm:Project>DocBook</fm:Project>
|
---|
| 26 | <fm:Branch>XSL Stylesheets</fm:Branch>
|
---|
[15c7d39] | 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>
|
---|
[c873d807] | 30 | <!--
|
---|
| 31 | <fm:License>MIT/X Consortium License</fm:License>
|
---|
| 32 | -->
|
---|
| 33 | <fm:Release-Focus>
|
---|
| 34 | <!-- * Initial freshmeat announcement -->
|
---|
| 35 | <!-- * Documentation -->
|
---|
| 36 | <!-- * Code cleanup -->
|
---|
[15c7d39] | 37 | <!-- * Minor feature enhancements -->
|
---|
| 38 | * Major feature enhancements
|
---|
| 39 | <!-- * Minor bugfixes -->
|
---|
[c873d807] | 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>
|
---|
[15c7d39] | 51 | <fm:Changes>This is a release with bugfixes and some enhancements.</fm:Changes>
|
---|
[c873d807] | 52 | </fm:project>
|
---|
| 53 |
|
---|
| 54 | <xsl:template match="/" priority="-100">
|
---|
[c1fe047a] | 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>
|
---|
[15c7d39] | 68 | <xsl:when test="$get = 'VERSION'">
|
---|
| 69 | <xsl:value-of select="$VERSION"/>
|
---|
| 70 | </xsl:when>
|
---|
[c1fe047a] | 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>
|
---|
[c873d807] | 80 | </xsl:template>
|
---|
| 81 |
|
---|
| 82 | <xsl:template match="fm:project">
|
---|
| 83 | <xsl:apply-templates/>
|
---|
| 84 | <xsl:text> </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> </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> </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> </xsl:text>
|
---|
| 113 | </xsl:template>
|
---|
| 114 |
|
---|
| 115 | </xsl:stylesheet>
|
---|