22
22
<style type="text/css">
23
23
.key {font-weight: bold}
25
.note {padding-left: 50px; font-size: 70%}
26
.contents {padding: 1em; background-color: #eeeeee; font-size: small;}
27
.contents strong {font-size: large;}
25
.note {padding-left: 10em; font-size: 70%}
26
.contents {padding: 1em; padding-left: 5em; background-color: #eeeeee; font-size: small; line-height: 1.7em;}
27
.contents-title {font-size: large; font-weight: bold; letter-spacing: 0.4em;}
28
.contents-section {font-size: large; font-weight: bold;}
29
.contents-group {font-size: small; }
28
30
body {margin: 1em; background-color: #ffffff;}
29
h1 {margin-top: 0.5em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em; letter-spacing: -0.02em}
30
h4 {font-weight: bold; font-style: italic; margin-top: 1em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em}
31
h1 {margin-top: 0.5em; padding-left: 2em; padding-bottom: 0em; margin-bottom: 0em; letter-spacing: -0.02em}
32
h2 {margin-top: 0.0em; padding-left: 6em; padding-bottom: 0em; margin-bottom: 0em; font-size: small;}
33
h4 {font-weight: bold; font-style: italic; margin-top: 1em; padding-left: 5em; padding-bottom: 0em; margin-bottom: 0em}
37
<h1><xsl:value-of select="/k:root/@title"/></h1>
38
<h2>Version <xsl:value-of select="/k:root/@ver"/></h2>
34
40
<xsl:apply-templates select="k:p"/>
36
<p class="contents"><strong>Contents:</strong><xsl:text> </xsl:text>
42
<p class="contents"><span class="contents-title">Contents:</span><xsl:text> </xsl:text>
37
43
<xsl:for-each select="//k:section">
38
<a href="#{./@title}"><xsl:value-of select="./@title"/></a>
39
<xsl:if test="following::k:section"><xsl:text> | </xsl:text></xsl:if>
44
<a class="contents-section" href="#{generate-id()}"><xsl:value-of select="./@title"/></a>
45
<xsl:if test="./k:group[k:title]">
46
<span class="contents-section">: </span>
48
<xsl:for-each select="./k:group[k:title]">
49
<a class="contents-group" href="#{generate-id()}"><xsl:value-of select="./k:title"/></a>
50
<xsl:if test="following-sibling::k:group[k:title]"><xsl:text> · </xsl:text></xsl:if>
52
<span class="contents-section"><xsl:if test="following::k:section"><xsl:text> | </xsl:text></xsl:if></span>
73
86
<xsl:template match="k:section">
74
<tr><td colspan="3"><a name="{@title}"/><h1><xsl:value-of select="@title"/></h1></td></tr>
87
<tr><td colspan="3"><a name="{generate-id()}"/><h1><xsl:value-of select="@title"/></h1></td></tr>
75
88
<xsl:apply-templates/>
78
<xsl:template match="k:title">
79
<tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><h4><xsl:value-of select="text()"/></h4></td></tr>
91
<xsl:template match="k:group/k:title">
92
<tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><h4><a name="{generate-id(..)}"/><xsl:value-of select="text()"/></h4></td></tr>
82
95
<xsl:template match="k:note">
86
99
<xsl:template match="k:keys | k:mouse">
87
100
<tr bgcolor="{ancestor::k:section/@color}">
101
<td align="right" width="40%">
90
103
<xsl:when test="count(k:key) = 2">
91
104
<span class="key"><xsl:apply-templates select="k:key[1]"/></span>,