VERSION 3.5 KB

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