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.

changes2document.xsl 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0"?>
  2. <xsl:stylesheet
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. version="1.0">
  5. <xsl:import href="copyover.xsl"/>
  6. <xsl:param name="name"/>
  7. <xsl:template match="changes">
  8. <document>
  9. <header>
  10. <title><xsl:value-of select="@title"/></title>
  11. </header>
  12. <body>
  13. <xsl:apply-templates/>
  14. </body>
  15. </document>
  16. </xsl:template>
  17. <xsl:template match="release">
  18. <s2 title="{$name} {@version} ({@date})">
  19. <sl>
  20. <xsl:apply-templates/>
  21. </sl>
  22. </s2>
  23. </xsl:template>
  24. <xsl:template match="action">
  25. <li>
  26. <icon src="images/{@type}.jpg" alt="{@type}"/>
  27. <xsl:apply-templates/>
  28. <xsl:text>(</xsl:text><xsl:value-of select="@dev"/><xsl:text>)</xsl:text>
  29. <xsl:if test="@due-to">
  30. <xsl:text> Thanks to </xsl:text>
  31. <link href="mailto:{@due-to-email}"><xsl:value-of select="@due-to"/></link>
  32. <xsl:text>.</xsl:text>
  33. </xsl:if>
  34. <xsl:if test="@fixes-bug">
  35. <xsl:text> Fixes </xsl:text>
  36. <link href="http://xml.apache.org/bugs/show_bug.cgi?id={@fixes-bug}">
  37. <xsl:text>bug </xsl:text><xsl:value-of select="@fixes-bug"/>
  38. </link>
  39. <xsl:text>.</xsl:text>
  40. </xsl:if>
  41. </li>
  42. </xsl:template>
  43. <xsl:template match="devs">
  44. <!-- remove -->
  45. </xsl:template>
  46. </xsl:stylesheet>