ChangeLog.xsl 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0"?>
  2. <!-- this stylesheet builds the ChangeLog.html -->
  3. <xsl:stylesheet version="1.0"
  4. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  5. <!-- Import the rest of the site stylesheets -->
  6. <xsl:import href="site.xsl"/>
  7. <!-- Generate XHTML-1.0 transitional -->
  8. <xsl:output method="xml" encoding="ISO-8859-1" indent="yes"
  9. doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
  10. doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  11. <xsl:param name="module">libxml2</xsl:param>
  12. <!-- The table of content for the HTML page -->
  13. <xsl:variable name="menu_name">API Menu</xsl:variable>
  14. <xsl:variable name="develtoc">
  15. <form action="../search.php"
  16. enctype="application/x-www-form-urlencoded" method="get">
  17. <input name="query" type="text" size="20" value=""/>
  18. <input name="submit" type="submit" value="Search ..."/>
  19. </form>
  20. <ul><!-- style="margin-left: -1em" -->
  21. <li><a style="font-weight:bold"
  22. href="{$href_base}index.html">Main Menu</a></li>
  23. <li><a style="font-weight:bold"
  24. href="{$href_base}docs.html">Developer Menu</a></li>
  25. <li><a style="font-weight:bold"
  26. href="{$href_base}html/index.html">Modules Index</a></li>
  27. <li><a style="font-weight:bold"
  28. href="{$href_base}examples/index.html">Code Examples</a></li>
  29. <li><a style="font-weight:bold"
  30. href="index.html">API Menu</a></li>
  31. <li><a href="html/libxml-parser.html">Parser API</a></li>
  32. <li><a href="html/libxml-tree.html">Tree API</a></li>
  33. <li><a href="html/libxml-xmlreader.html">Reader API</a></li>
  34. <li><a href="{$href_base}guidelines.html">XML Guidelines</a></li>
  35. </ul>
  36. </xsl:variable>
  37. <xsl:template match="bug">
  38. <a href="http://bugzilla.gnome.org/show_bug.cgi?id={@number}">
  39. <xsl:value-of select="@number"/></a>
  40. </xsl:template>
  41. <xsl:template match="item">
  42. <li><xsl:apply-templates/></li>
  43. </xsl:template>
  44. <xsl:template match="entry">
  45. <p>
  46. <b><xsl:value-of select="@who"/></b>
  47. <xsl:text> </xsl:text>
  48. <xsl:value-of select="@date"/>
  49. <xsl:text> </xsl:text>
  50. <xsl:value-of select="@timezone"/>
  51. <ul>
  52. <xsl:apply-templates select="item"/>
  53. </ul>
  54. </p>
  55. </xsl:template>
  56. <xsl:template match="log">
  57. <xsl:variable name="title">ChangeLog last entries of <xsl:value-of select="$module"/></xsl:variable>
  58. <html>
  59. <head>
  60. <xsl:call-template name="style"/>
  61. <xsl:element name="title">
  62. <xsl:value-of select="$title"/>
  63. </xsl:element>
  64. </head>
  65. <body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000">
  66. <xsl:call-template name="titlebox">
  67. <xsl:with-param name="title" select="$title"/>
  68. </xsl:call-template>
  69. <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center">
  70. <tr>
  71. <td bgcolor="#8b7765">
  72. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  73. <tr>
  74. <td valign="top" width="200" bgcolor="#8b7765">
  75. <xsl:call-template name="develtoc"/>
  76. </td>
  77. <td valign="top" bgcolor="#8b7765">
  78. <table border="0" cellspacing="0" cellpadding="1" width="100%">
  79. <tr>
  80. <td>
  81. <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000">
  82. <tr>
  83. <td>
  84. <table border="0" cellpadding="3" cellspacing="1" width="100%">
  85. <tr>
  86. <td bgcolor="#fffacd">
  87. <xsl:apply-templates select="entry"/>
  88. <p><a href="{$href_base}bugs.html">Daniel Veillard</a></p>
  89. </td>
  90. </tr>
  91. </table>
  92. </td>
  93. </tr>
  94. </table>
  95. </td>
  96. </tr>
  97. </table>
  98. </td>
  99. </tr>
  100. </table>
  101. </td>
  102. </tr>
  103. </table>
  104. </body>
  105. </html>
  106. </xsl:template>
  107. </xsl:stylesheet>