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