1 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" version=
"1.0">
2 <xsl:output method=
"html"
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()">
9 <xsl:apply-templates select=
"@*|node()"/>
13 <xsl:template match=
"/">
17 <xsl:value-of select=
"/page/@title"/>
19 <link rel=
"stylesheet" type=
"text/css" href=
"index.css"/>
20 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
23 <xsl:call-template name=
"sidebar"/>
24 <xsl:call-template name=
"header"/>
25 <xsl:apply-templates/>
30 <xsl:template match=
"page">
31 <div id=
"homepage" class=
"main">
32 <xsl:apply-templates/>
36 <xsl:template match=
"blau">
37 <span style=
"color: black">
38 <xsl:apply-templates/>
42 <xsl:template match=
"raute">
43 <span style=
"font-size: 12pt">⬗</span>
46 <xsl:template match=
"example-box">
47   <!-- sonst zu breit -->
48 <div style=
"background-color: #ffffff;
53 <div style=
"border-bottom: 1px solid #9c0000;
59 <div style=
"border-right: 2px solid #9c0000;
60 background-color: #f7f7f7;
64 <xsl:for-each select=
"fun|macro">
65 <a href=
"atdoc/pages/closure-html__{local-name()}__{string()}.html">
66 <span style=
"color: #777777">chtml:
</span>
67 <xsl:apply-templates/>
71 <xsl:for-each select=
"a">
72 <xsl:apply-templates select=
"."/>
79 <xsl:template match=
"example">
81 <xsl:text>*
</xsl:text>
82 <xsl:apply-templates/>
86 <xsl:template match=
"result">
88 <xsl:text>=
> </xsl:text>
89 <xsl:apply-templates/>
93 <xsl:template match=
"toc">
95 <xsl:for-each select=
"//section">
97 <a href=
"#{generate-id()}">
98 <xsl:apply-templates/>
105 <xsl:template match=
"section">
107 <xsl:apply-templates/>
108 <a name=
"{generate-id()}"/>
112 <xsl:template name=
"header">
114 <div style=
"margin-left: 30px">
116 <span style=
"color: #9c0000">
117 <xsl:value-of select=
"/page/@title"/>
124 <xsl:template name=
"sidebar">
125 <div class=
"sidebar">
126 <xsl:if test=
"/page/@clear-sidebar">
127 <xsl:attribute name=
"style">
128 clear:
<xsl:value-of select=
"/page/@clear-sidebar"/>;
131 <div class=
"sidebar-title">
132 <a href=
"index.html">Closure HTML
</a>
134 <div class=
"sidebar-main">
137 <a href=
"installation.html">Installing Closure HTML
</a>
139 <li><a href=
"installation.html#download">Download
</a></li>
140 <li><a href=
"installation.html#compilation">Installation
</a></li>
144 <a href=
"examples.html">Examples
</a>
148 <a href=
"atdoc/index.html">API documentation
</a>