SQL Workbench/J Git Repository https://www.sql-workbench.eu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

68 lines
1.6 KiB

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  3. <xsl:include href="../scripts/get_builds_from_history.xslt"/>
  4. <xsl:output encoding="iso-8859-1"
  5. method="html"
  6. omit-xml-declaration="yes"
  7. indent="yes"
  8. standalone="yes"
  9. />
  10. <xsl:template match="history">
  11. <xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
  12. <p>Changes from build <xsl:value-of select="$prev-build"/> to build <xsl:value-of select="$current-build"/></p>
  13. <xsl:if test="$active-build = -1">
  14. <xsl:call-template name="process-entries">
  15. <xsl:with-param name="entries" select="release[1]/entry[@dev-build=$last-dev-build-nr]"/>
  16. </xsl:call-template>
  17. </xsl:if>
  18. <xsl:if test="$active-build != -1">
  19. <xsl:call-template name="process-entries">
  20. <xsl:with-param name="entries" select="release[1]/entry"/>
  21. </xsl:call-template>
  22. </xsl:if>
  23. <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
  24. </xsl:template>
  25. <xsl:template name="process-entries">
  26. <xsl:param name="entries"/>
  27. <xsl:if test="count($entries[@type='enh']) &gt; 0">
  28. <p>Enhancements</p>
  29. <ul>
  30. <xsl:for-each select="$entries[@type='enh']">
  31. <li>
  32. <xsl:value-of select="normalize-space(.)"/>
  33. </li>
  34. </xsl:for-each>
  35. </ul>
  36. </xsl:if>
  37. <xsl:if test="count($entries[@type='fix']) &gt; 0">
  38. <p>Bug Fixes</p>
  39. <ul>
  40. <xsl:for-each select="$entries[@type='fix']">
  41. <li>
  42. <xsl:value-of select="normalize-space(.)"/>
  43. </li>
  44. </xsl:for-each>
  45. </ul>
  46. </xsl:if>
  47. </xsl:template>
  48. </xsl:stylesheet>