VERSION 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version='1.0'?> <!-- -*- nxml -*- -->
  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. exclude-result-prefixes="fm sf"
  6. version='1.0'>
  7. <xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
  8. <xsl:param name="DistroTitle" select="string(document('')//fm:Branch[1])"/>
  9. <xsl:param name="DistroName">docbook-xsl</xsl:param>
  10. <xsl:param name="PreviousRelease">1.72.0</xsl:param>
  11. <xsl:param name="PreviousReleaseRevision">6553</xsl:param>
  12. <xsl:param name="Revision">$Revision$</xsl:param>
  13. <xsl:param name="sf-relid" select="0"/>
  14. <xsl:strip-space elements="fm:*"/>
  15. <fm:project>
  16. <fm:Project>DocBook</fm:Project>
  17. <fm:Branch>XSL Stylesheets</fm:Branch>
  18. <fm:Version>snapshot_6771</fm:Version>
  19. <!--
  20. <fm:License>MIT/X Consortium License</fm:License>
  21. -->
  22. <fm:Release-Focus>
  23. <!-- * Initial freshmeat announcement -->
  24. <!-- * Documentation -->
  25. <!-- * Code cleanup -->
  26. <!-- * Minor feature enhancements -->
  27. Major feature enhancements
  28. <!-- * Minor bugfixes -->
  29. <!-- * Major bugfixes -->
  30. <!-- * Minor security fixes -->
  31. <!-- * Major security fixes -->
  32. </fm:Release-Focus>
  33. <fm:Home-Page-URL>http://sourceforge.net/projects/docbook/</fm:Home-Page-URL>
  34. <fm:Gzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.tar.gz?download</fm:Gzipped-Tar-URL>
  35. <fm:Zipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.zip?download</fm:Zipped-Tar-URL>
  36. <fm:Bzipped-Tar-URL>http://prdownloads.sourceforge.net/docbook/{DISTRONAME-VERSION}.bz2?download</fm:Bzipped-Tar-URL>
  37. <fm:Changelog-URL>http://sourceforge.net/project/shownotes.php?release_id={SFRELID}</fm:Changelog-URL>
  38. <fm:CVS-URL>http://docbook.cvs.sourceforge.net/docbook/</fm:CVS-URL>
  39. <fm:Mailing-List-URL>http://lists.oasis-open.org/archives/docbook-apps/</fm:Mailing-List-URL>
  40. <fm:Changes>This is a bug-fix release with a few feature enhancements.
  41. </fm:Changes>
  42. </fm:project>
  43. <xsl:template match="/" priority="-100">
  44. <xsl:if test="$sf-relid = 0">
  45. <xsl:message terminate="yes">
  46. <xsl:text>You must specify the sf-relid as a parameter.</xsl:text>
  47. </xsl:message>
  48. </xsl:if>
  49. <xsl:apply-templates select="//fm:project"/>
  50. </xsl:template>
  51. <xsl:template match="fm:project">
  52. <xsl:text>&#10;</xsl:text>
  53. <xsl:apply-templates/>
  54. <xsl:text>&#10;</xsl:text>
  55. <xsl:apply-templates select="fm:Changes" mode="text"/>
  56. </xsl:template>
  57. <xsl:template match="fm:Changes"/>
  58. <xsl:template match="fm:Gzipped-Tar-URL|fm:Zipped-Tar-URL|fm:Bzipped-Tar-URL">
  59. <xsl:value-of select="local-name(.)"/>
  60. <xsl:text>: </xsl:text>
  61. <xsl:value-of select="substring-before(., '{DISTRONAME-VERSION}')"/>
  62. <xsl:value-of select="concat($DistroName, '-', $VERSION)"/>
  63. <xsl:value-of select="substring-after(., '{DISTRONAME-VERSION}')"/>
  64. <xsl:text>&#10;</xsl:text>
  65. </xsl:template>
  66. <xsl:template match="fm:Changelog-URL">
  67. <xsl:value-of select="local-name(.)"/>
  68. <xsl:text>: </xsl:text>
  69. <xsl:value-of select="substring-before(., '{SFRELID}')"/>
  70. <xsl:value-of select="$sf-relid"/>
  71. <xsl:value-of select="substring-after(., '{SFRELID}')"/>
  72. <xsl:text>&#10;</xsl:text>
  73. </xsl:template>
  74. <xsl:template match="fm:*">
  75. <xsl:value-of select="local-name(.)"/>
  76. <xsl:text>: </xsl:text>
  77. <xsl:value-of select="normalize-space(.)"/>
  78. <xsl:text>&#10;</xsl:text>
  79. </xsl:template>
  80. </xsl:stylesheet>