summaryrefslogtreecommitdiffstats
path: root/doc/keys-html.xsl
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-04-25 03:08:15 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-04-25 03:08:15 +0000
commit44e73e96cf2b97f643d3c8c7d5b3f7e3a0ad7aa8 (patch)
treeee81b6270732d805990e9a6abe43ec296db04849 /doc/keys-html.xsl
parentAdd doctormo's barcode extension. Patch 1681456. Still need to make it work w... (diff)
downloadinkscape-44e73e96cf2b97f643d3c8c7d5b3f7e3a0ad7aa8.tar.gz
inkscape-44e73e96cf2b97f643d3c8c7d5b3f7e3a0ad7aa8.zip
paint bucket, node sculpting, grow/shrink selection updates; general copyedit and rearrange; new TOC
(bzr r2959)
Diffstat (limited to 'doc/keys-html.xsl')
-rw-r--r--doc/keys-html.xsl29
1 files changed, 21 insertions, 8 deletions
diff --git a/doc/keys-html.xsl b/doc/keys-html.xsl
index a84fa880a..d274b30ef 100644
--- a/doc/keys-html.xsl
+++ b/doc/keys-html.xsl
@@ -23,20 +23,33 @@ It is generated automatically from doc/keys.xml by doc/keys-html.xsl.
.key {font-weight: bold}
.action {}
.note {padding-left: 50px; font-size: 70%}
-.contents {padding: 1em; background-color: #eeeeee; font-size: small;}
-.contents strong {font-size: large;}
+.contents {padding: 1em; padding-left: 50px; background-color: #eeeeee; font-size: small; line-height: 1.7em;}
+.contents-title {font-size: large; font-weight: bold; letter-spacing: 0.4em;}
+.contents-section {font-size: large; font-weight: bold;}
+.contents-group {font-size: small; }
body {margin: 1em; background-color: #ffffff;}
h1 {margin-top: 0.5em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em; letter-spacing: -0.02em}
+h2 {margin-top: 0.0em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em; font-size: small;}
h4 {font-weight: bold; font-style: italic; margin-top: 1em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em}
</style>
</head>
<body>
+<h1><xsl:value-of select="/k:root/@title"/></h1>
+<h2>Version <xsl:value-of select="/k:root/@ver"/></h2>
+
<xsl:apply-templates select="k:p"/>
-<p class="contents"><strong>Contents:</strong><xsl:text> </xsl:text>
+<p class="contents"><span class="contents-title">Contents:</span><xsl:text> </xsl:text>
<xsl:for-each select="//k:section">
-<a href="#{./@title}"><xsl:value-of select="./@title"/></a>
-<xsl:if test="following::k:section"><xsl:text> | </xsl:text></xsl:if>
+<a class="contents-section" href="#{generate-id()}"><xsl:value-of select="./@title"/></a>
+<xsl:if test="./k:group[k:title]">
+<span class="contents-section">: </span>
+</xsl:if>
+<xsl:for-each select="./k:group[k:title]">
+<a class="contents-group" href="#{generate-id()}"><xsl:value-of select="./k:title"/></a>
+<xsl:if test="following-sibling::k:group[k:title]"><xsl:text>&#160;&#183; </xsl:text></xsl:if>
+</xsl:for-each>
+<span class="contents-section"><xsl:if test="following::k:section"><xsl:text>&#160;| </xsl:text></xsl:if></span>
</xsl:for-each>
</p>
@@ -71,12 +84,12 @@ h4 {font-weight: bold; font-style: italic; margin-top: 1em; padding-left: 50px;
</xsl:template>
<xsl:template match="k:section">
-<tr><td colspan="3"><a name="{@title}"/><h1><xsl:value-of select="@title"/></h1></td></tr>
+<tr><td colspan="3"><a name="{generate-id()}"/><h1><xsl:value-of select="@title"/></h1></td></tr>
<xsl:apply-templates/>
</xsl:template>
-<xsl:template match="k:title">
-<tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><h4><xsl:value-of select="text()"/></h4></td></tr>
+<xsl:template match="k:group/k:title">
+<tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><h4><a name="{generate-id(..)}"/><xsl:value-of select="text()"/></h4></td></tr>
</xsl:template>
<xsl:template match="k:note">