Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

releaseNotes2document.xsl 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0"?>
  2. <!--
  3. Copyright 2002-2005 The Apache Software Foundation or its licensors,
  4. as applicable.
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <xsl:stylesheet
  16. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  17. version="1.0">
  18. <xsl:param name="versionNumber"/>
  19. <xsl:include href="changes2document.xsl"/>
  20. <!-- Calculate path to site root, eg '../../' -->
  21. <xsl:variable name="root">
  22. <xsl:call-template name="dotdots">
  23. <xsl:with-param name="path" select="$path"/>
  24. </xsl:call-template>
  25. </xsl:variable>
  26. <!-- FIXME (JJP): bugzilla is hardwired -->
  27. <xsl:variable name="bugzilla" select="'http://issues.apache.org/bugzilla/buglist.cgi?bug_id='"/>
  28. <xsl:param name="bugtracking-url" select="$bugzilla"/>
  29. <xsl:template match="/">
  30. <xsl:apply-templates select="//changes"/>
  31. </xsl:template>
  32. <xsl:template match="changes">
  33. <document>
  34. <header>
  35. <title>
  36. <xsl:choose>
  37. <xsl:when test="@title!=''">
  38. <xsl:value-of select="@title"/>
  39. </xsl:when>
  40. <xsl:otherwise>
  41. <xsl:text>Release Notes for Apache Forrest </xsl:text><xsl:value-of select="$versionNumber"/>
  42. </xsl:otherwise>
  43. </xsl:choose>
  44. </title>
  45. </header>
  46. <body>
  47. <xsl:if test="contains($versionNumber, 'dev')">
  48. <warning>Version <xsl:value-of select="$versionNumber"/> is a development release,
  49. these notes are therefore not complete, they are intended to be an indicator
  50. of the major features that are so far included in this version.</warning>
  51. </xsl:if>
  52. <xsl:if test="release[@version=$versionNumber]/notes">
  53. <xsl:apply-templates select="release[@version=$versionNumber]/notes"/>
  54. </xsl:if>
  55. <xsl:apply-templates select="release[@version=$versionNumber]"/>
  56. </body>
  57. </document>
  58. </xsl:template>
  59. <xsl:template match="release">
  60. <section id="version_{@version}">
  61. <title>Major Changes in Version <xsl:value-of select="@version"/></title>
  62. <note>This is not a complete list of changes, a
  63. full list of changes in this release
  64. <a href="changes_{$versionNumber}.html">is available</a>.</note>
  65. <xsl:if test="action[@context='code' and @importance='high']">
  66. <section>
  67. <title>Important Changes Code Base</title>
  68. <ul>
  69. <xsl:apply-templates select="action[@context='code' and @importance='high']">
  70. <xsl:sort select="@type"/>
  71. </xsl:apply-templates>
  72. </ul>
  73. </section>
  74. </xsl:if>
  75. <xsl:if test="action[@context='docs' and @importance='high']">
  76. <section>
  77. <title>Important Changes Documentation</title>
  78. <ul>
  79. <xsl:apply-templates select="action[@context='docs' and @importance='high']">
  80. <xsl:sort select="@type"/>
  81. </xsl:apply-templates>
  82. </ul>
  83. </section>
  84. </xsl:if>
  85. <xsl:if test="action[@context='admin' and @importance='high']">
  86. <section>
  87. <title>Important Changes Project Administration</title>
  88. <ul>
  89. <xsl:apply-templates select="action[@context='admin' and @importance='high']">
  90. <xsl:sort select="@type"/>
  91. </xsl:apply-templates>
  92. </ul>
  93. </section>
  94. </xsl:if>
  95. <xsl:if test="action[@context='design' and @importance='high']">
  96. <section>
  97. <title>Important Changes Design</title>
  98. <ul>
  99. <xsl:apply-templates select="action[@context='design' and @importance='high']">
  100. <xsl:sort select="@type"/>
  101. </xsl:apply-templates>
  102. </ul>
  103. </section>
  104. </xsl:if>
  105. <xsl:if test="action[@context='build' and @importance='high']">
  106. <section>
  107. <title>Important Changes Build</title>
  108. <ul>
  109. <xsl:apply-templates select="action[@context='build' and @importance='high']">
  110. <xsl:sort select="@type"/>
  111. </xsl:apply-templates>
  112. </ul>
  113. </section>
  114. </xsl:if>
  115. </section>
  116. </xsl:template>
  117. </xsl:stylesheet>