Fix makefile and spec file to include doc in rpm
[platform/upstream/libxslt.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="ISO-8859-1" 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">libxslt</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     </ul>
36   </xsl:variable>
37
38   <xsl:template match="bug">
39     <a href="http://bugzilla.gnome.org/show_bug.cgi?id={@number}">
40     <xsl:value-of select="@number"/></a>
41   </xsl:template>
42   
43   <xsl:template match="item">
44     <li><xsl:apply-templates/></li>
45   </xsl:template>
46
47   <xsl:template match="entry">
48     
49     <p>
50     <b><xsl:value-of select="@who"/></b>
51        <xsl:text> </xsl:text>
52        <xsl:value-of select="@date"/>
53        <xsl:text> </xsl:text>
54        <xsl:value-of select="@timezone"/>
55     <ul>
56       <xsl:apply-templates select="item"/>
57     </ul>
58     </p>
59   </xsl:template>
60
61   <xsl:template match="log">
62     <xsl:variable name="title">ChangeLog last entries of <xsl:value-of select="$module"/></xsl:variable>
63       <html>
64         <head>
65         <xsl:call-template name="style"/>
66         <xsl:element name="title">
67           <xsl:value-of select="$title"/>
68         </xsl:element>
69         </head>
70         <body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000">
71           <xsl:call-template name="titlebox">
72             <xsl:with-param name="title" select="$title"/>
73           </xsl:call-template>
74           <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center">
75             <tr>
76               <td bgcolor="#8b7765">
77                 <table border="0" cellspacing="0" cellpadding="2" width="100%">
78                   <tr>
79                     <td valign="top" width="200" bgcolor="#8b7765">
80                       <xsl:call-template name="develtoc"/>
81                     </td>
82                     <td valign="top" bgcolor="#8b7765">
83                       <table border="0" cellspacing="0" cellpadding="1" width="100%">
84                         <tr>
85                           <td>
86                             <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000">
87                               <tr>
88                                 <td>
89                                   <table border="0" cellpadding="3" cellspacing="1" width="100%">
90                                     <tr>
91                                       <td bgcolor="#fffacd">
92                                         <xsl:apply-templates select="entry"/>
93                                         <p><a href="{$href_base}bugs.html">Daniel Veillard</a></p>
94                                       </td>
95                                     </tr>
96                                   </table>
97                                 </td>
98                               </tr>
99                             </table>
100                           </td>
101                         </tr>
102                       </table>
103                     </td>
104                   </tr>
105                 </table>
106               </td>
107             </tr>
108           </table>
109         </body>
110       </html>
111   </xsl:template>
112
113 </xsl:stylesheet>