paginate.xsl
[cxml-rng.git] / doc / paginate.xsl
blobadb35d1a7f71d8415080266f61e136083fd19d8d
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2 <xsl:output method="html"
3 indent="yes"
4 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
5 doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
7 <xsl:template match="@*|node()">
8 <xsl:copy>
9 <xsl:apply-templates select="@*|node()"/>
10 </xsl:copy>
11 </xsl:template>
13 <xsl:template match="/">
14 <xsl:apply-templates/>
15 </xsl:template>
17 <xsl:template match="pages">
18 <xsl:apply-templates/>
19 </xsl:template>
21 <xsl:template match="main-page">
22 <xsl:call-template name="page"/>
23 </xsl:template>
25 <xsl:template match="page">
26 <xsl:document href="{@pathname}"
27 method="html"
28 indent="yes"
29 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
30 doctype-system="http://www.w3.org/TR/html4/loose.dtd">
31 <xsl:call-template name="page"/>
32 </xsl:document>
33 </xsl:template>
35 <xsl:template name="page">
36 <html>
37 <head>
38 <title>
39 <xsl:value-of select="@title"/>
40 </title>
41 <link rel="stylesheet" type="text/css" href="{@base}doc.css"/>
42 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
43 </head>
44 <body>
45 <xsl:call-template name="header">
46 <xsl:with-param name="base" select="@base"/>
47 </xsl:call-template>
48 <div class="main">
49 <xsl:apply-templates/>
50 </div>
51 </body>
52 </html>
53 </xsl:template>
55 <xsl:template name="header">
56 <xsl:param name="base"/>
57 <div id="header">
58 <table cellspacing="0" cellpadding="0" width="100%">
59 <tr>
60 <td width="176">
61 <a id="headerlink" href="{$base}../index.html">
62 <img src="{$base}logo.png" border="0"/>
63 </a>
64 </td>
65 <td valign="center">
66 &#x2014;
67 <b> Relax NG for Closure XML</b>
68 </td>
69 <td valign="center" align="right">
70 <b>API documentation</b>
71 </td>
72 </tr>
73 </table>
74 </div>
75 </xsl:template>
76 </xsl:stylesheet>