Package docstring
[xuriella.git] / doc / index.xsl
blob287911c3a633957f0d3210b84e2666115385d2d6
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 <html>
15 <head>
16 <title>
17 <xsl:value-of select="/page/@title"/>
18 </title>
19 <link rel="stylesheet" type="text/css" href="index.css"/>
20 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
21 </head>
22 <body>
23 <xsl:call-template name="sidebar"/>
24 <xsl:call-template name="header"/>
25 <xsl:apply-templates/>
26 </body>
27 </html>
28 </xsl:template>
30 <xsl:template match="page">
31 <div id="homepage" class="main">
32 <xsl:apply-templates/>
33 </div>
34 </xsl:template>
36 <xsl:template match="blau">
37 <span style="color: black">
38 <xsl:apply-templates/>
39 </span>
40 </xsl:template>
42 <xsl:template match="raute">
43 <span style="font-size: 12pt">&#x2b17;</span>
44 </xsl:template>
46 <xsl:template match="toc">
47 <ul>
48 <xsl:for-each select="//section">
49 <li>
50 <a href="#{generate-id()}">
51 <xsl:apply-templates/>
52 </a>
53 </li>
54 </xsl:for-each>
55 </ul>
56 </xsl:template>
58 <xsl:template match="section">
59 <h3>
60 <xsl:apply-templates/>
61 <a name="{generate-id()}"/>
62 </h3>
63 </xsl:template>
65 <xsl:template name="header">
66 <div id="header">
67 <div style="margin-left: 30px">
68 <b>
69 <span class="colored">
70 <xsl:value-of select="/page/@title"/>
71 </span>
72 </b>
73 </div>
74 </div>
75 </xsl:template>
77 <xsl:template name="sidebar">
78 <div class="sidebar">
79 <xsl:if test="/page/@clear-sidebar">
80 <xsl:attribute name="style">
81 clear: <xsl:value-of select="/page/@clear-sidebar"/>;
82 </xsl:attribute>
83 </xsl:if>
84 <div class="sidebar-title">
85 <a href="index.html">Xuriella XSLT</a>
86 </div>
87 <div class="sidebar-main">
88 <ul class="main">
89 <li>
90 <a href="installation.html">Installing Xuriella</a>
91 <ul class="sub">
92 <li><a href="installation.html#download">Download</a></li>
93 <li><a href="installation.html#compilation">Installation</a></li>
94 </ul>
95 </li>
96 <li>
97 <a href="examples.html"><strike>Examples</strike></a>
98 (to be written)
99 <br/>&#160;
100 </li>
101 <li>
102 <a href="atdoc/pages/xuriella.html">API documentation</a>
103 </li>
104 </ul>
105 </div>
106 </div>
107 </xsl:template>
108 </xsl:stylesheet>