VERSION 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. <xsl:output omit-xml-declaration="yes"/>
  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. <xsl:param name="DistroName">docbook-xsl</xsl:param>
  16. <xsl:param name="PreviousRelease">1.72.0</xsl:param>
  17. <xsl:param name="PreviousReleaseRevision">6549</xsl:param>
  18. <xsl:param name="Revision">$Revision$</xsl:param>
  19. <xsl:param name="VersionFileURL">$URL: https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl/VERSION $</xsl:param>
  20. <xsl:strip-space elements="fm:*"/>
  21. <fm:project>
  22. <fm:Project>DocBook</fm:Project>
  23. <fm:Branch>XSL Stylesheets</fm:Branch>
  24. <fm:Version>1.73.2</fm:Version>
  25. <!--
  26. <fm:License>MIT/X Consortium License</fm:License>
  27. -->
  28. <fm:Release-Focus>
  29. <!-- * Initial freshmeat announcement -->
  30. <!-- * Documentation -->
  31. <!-- * Code cleanup -->
  32. <!-- * Minor feature enhancements -->
  33. <!-- * Major feature enhancements -->
  34. Minor bugfixes
  35. <!-- * Major bugfixes -->
  36. <!-- * Minor security fixes -->
  37. <!-- * Major security fixes -->
  38. </fm:Release-Focus>
  39. <fm:Home-Page-URL>http://sourceforge.net/projects/docbook/</fm:Home-Page-URL>
  40. <fm:Gzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.tar.gz?download</fm:Gzipped-Tar-URL>
  41. <fm:Zipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.zip?download</fm:Zipped-Tar-URL>
  42. <fm:Bzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.bz2?download</fm:Bzipped-Tar-URL>
  43. <fm:Changelog-URL>http://sourceforge.net/project/shownotes.php?release_id={SFRELID}</fm:Changelog-URL>
  44. <fm:CVS-URL>http://docbook.svn.sourceforge.net/viewvc/docbook/</fm:CVS-URL>
  45. <fm:Mailing-List-URL>http://lists.oasis-open.org/archives/docbook-apps/</fm:Mailing-List-URL>
  46. <fm:Changes>This is a bug-fix update to the 1.73.1 release.
  47. </fm:Changes>
  48. </fm:project>
  49. <xsl:template match="/" priority="-100">
  50. <xsl:choose>
  51. <xsl:when test="$get = 'Tag'">
  52. <xsl:value-of select="$Tag"/>
  53. </xsl:when>
  54. <xsl:when test="$get = 'PreviousRelease'">
  55. <xsl:value-of select="$PreviousRelease"/>
  56. </xsl:when>
  57. <xsl:when test="$get = 'PreviousReleaseRevision'">
  58. <xsl:value-of select="$PreviousReleaseRevision"/>
  59. </xsl:when>
  60. <xsl:when test="$get = 'DistroTitle'">
  61. <xsl:value-of select="$DistroTitle"/>
  62. </xsl:when>
  63. <xsl:otherwise>
  64. <xsl:if test="$sf-relid = 0">
  65. <xsl:message terminate="yes">
  66. <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
  67. </xsl:message>
  68. </xsl:if>
  69. <xsl:apply-templates select="//fm:project"/>
  70. </xsl:otherwise>
  71. </xsl:choose>
  72. </xsl:template>
  73. <xsl:template match="fm:project">
  74. <xsl:apply-templates/>
  75. <xsl:text>&#10;</xsl:text>
  76. <xsl:apply-templates select="fm:Changes" mode="text"/>
  77. </xsl:template>
  78. <xsl:template match="fm:Changes"/>
  79. <xsl:template match="fm:Gzipped-Tar-URL|fm:Zipped-Tar-URL|fm:Bzipped-Tar-URL">
  80. <xsl:value-of select="local-name(.)"/>
  81. <xsl:text>: </xsl:text>
  82. <xsl:value-of select="substring-before(., '{DISTRONAME-VERSION}')"/>
  83. <xsl:value-of select="concat($DistroName, '-', $VERSION)"/>
  84. <xsl:value-of select="substring-after(., '{DISTRONAME-VERSION}')"/>
  85. <xsl:text>&#10;</xsl:text>
  86. </xsl:template>
  87. <xsl:template match="fm:Changelog-URL">
  88. <xsl:value-of select="local-name(.)"/>
  89. <xsl:text>: </xsl:text>
  90. <xsl:value-of select="substring-before(., '{SFRELID}')"/>
  91. <xsl:value-of select="$sf-relid"/>
  92. <xsl:value-of select="substring-after(., '{SFRELID}')"/>
  93. <xsl:text>&#10;</xsl:text>
  94. </xsl:template>
  95. <xsl:template match="fm:*">
  96. <xsl:value-of select="local-name(.)"/>
  97. <xsl:text>: </xsl:text>
  98. <xsl:value-of select="normalize-space(.)"/>
  99. <xsl:text>&#10;</xsl:text>
  100. </xsl:template>
  101. </xsl:stylesheet>