[9882b55] | 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/"
|
---|
[9642843] | 4 | xmlns:dyn="http://exslt.org/dynamic"
|
---|
| 5 | xmlns:saxon="http://icl.com/saxon"
|
---|
[241f9a9] | 6 | exclude-result-prefixes="sf"
|
---|
[9882b55] | 7 | version='1.0'>
|
---|
| 8 |
|
---|
[9642843] | 9 | <xsl:output omit-xml-declaration="yes"/>
|
---|
| 10 |
|
---|
| 11 | <xsl:param name="get"/>
|
---|
[241f9a9] | 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])"/>
|
---|
[9642843] | 15 | <xsl:param name="sf-relid" select="0"/>
|
---|
| 16 |
|
---|
[9882b55] | 17 | <xsl:param name="DistroName">docbook-xsl</xsl:param>
|
---|
| 18 | <xsl:param name="PreviousRelease">1.72.0</xsl:param>
|
---|
[9642843] | 19 | <xsl:param name="PreviousReleaseRevision">6549</xsl:param>
|
---|
[9882b55] | 20 | <xsl:param name="Revision">$Revision$</xsl:param>
|
---|
[00b1e11] | 21 | <xsl:param name="VersionFileURL">$URL: https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl/VERSION $</xsl:param>
|
---|
[9642843] | 22 |
|
---|
[241f9a9] | 23 | <xsl:strip-space elements="sf:*"/>
|
---|
[9882b55] | 24 |
|
---|
[241f9a9] | 25 | <sf:project>
|
---|
| 26 | <sf:Project>DocBook</sf:Project>
|
---|
| 27 | <sf:Branch>XSL Stylesheets</sf:Branch>
|
---|
| 28 | <sf:Version>1.73.2</sf:Version>
|
---|
[9882b55] | 29 | <!--
|
---|
[241f9a9] | 30 | <sf:License>MIT/X Consortium License</sf:License>
|
---|
[9882b55] | 31 | -->
|
---|
[241f9a9] | 32 | <sf:Release-Focus>
|
---|
[9882b55] | 33 | <!-- * Documentation -->
|
---|
| 34 | <!-- * Code cleanup -->
|
---|
| 35 | <!-- * Minor feature enhancements -->
|
---|
[9642843] | 36 | <!-- * Major feature enhancements -->
|
---|
| 37 | Minor bugfixes
|
---|
[9882b55] | 38 | <!-- * Major bugfixes -->
|
---|
| 39 | <!-- * Minor security fixes -->
|
---|
| 40 | <!-- * Major security fixes -->
|
---|
[241f9a9] | 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>
|
---|
[9882b55] | 52 |
|
---|
| 53 | <xsl:template match="/" priority="-100">
|
---|
[9642843] | 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>
|
---|
[241f9a9] | 73 | <xsl:apply-templates select="//sf:project"/>
|
---|
[9642843] | 74 | </xsl:otherwise>
|
---|
| 75 | </xsl:choose>
|
---|
[9882b55] | 76 | </xsl:template>
|
---|
| 77 |
|
---|
[241f9a9] | 78 | <xsl:template match="sf:project">
|
---|
[9882b55] | 79 | <xsl:apply-templates/>
|
---|
| 80 | <xsl:text> </xsl:text>
|
---|
[241f9a9] | 81 | <xsl:apply-templates select="sf:Changes" mode="text"/>
|
---|
[9882b55] | 82 | </xsl:template>
|
---|
| 83 |
|
---|
[241f9a9] | 84 | <xsl:template match="sf:Changes"/>
|
---|
[9882b55] | 85 |
|
---|
[241f9a9] | 86 | <xsl:template match="sf:Gzipped-Tar-URL|sf:Zipped-Tar-URL|sf:Bzipped-Tar-URL">
|
---|
[9882b55] | 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> </xsl:text>
|
---|
| 93 | </xsl:template>
|
---|
| 94 |
|
---|
[241f9a9] | 95 | <xsl:template match="sf:Changelog-URL">
|
---|
[9882b55] | 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> </xsl:text>
|
---|
| 102 | </xsl:template>
|
---|
| 103 |
|
---|
[241f9a9] | 104 | <xsl:template match="sf:*">
|
---|
[9882b55] | 105 | <xsl:value-of select="local-name(.)"/>
|
---|
| 106 | <xsl:text>: </xsl:text>
|
---|
| 107 | <xsl:value-of select="normalize-space(.)"/>
|
---|
| 108 | <xsl:text> </xsl:text>
|
---|
| 109 | </xsl:template>
|
---|
| 110 |
|
---|
| 111 | </xsl:stylesheet>
|
---|