Code

Make curvature work again by fixing a minor omission
[inkscape.git] / doc / keys-html.xsl
index c42e7905996075be2359c3825ae172e79b647bcb..02dcb795dad0114adf7b5424c188720545268a01 100644 (file)
@@ -22,16 +22,42 @@ It is generated automatically from doc/keys.xml by doc/keys-html.xsl.
 <style type="text/css">
 .key {font-weight: bold}
 .action {}
-.note {padding-left: 50px; font-size: 70%}
-h1 {margin-top: 0.5em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em; letter-spacing: -0.02em}
-h4 {font-weight: bold; font-style: italic; margin-top: 1em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em}
+.note {padding-left: 10em; font-size: 70%}
+.contents {padding: 1em; padding-left: 5em; 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: 2em; padding-bottom: 0em; margin-bottom: 0em; letter-spacing: -0.02em}
+h2 {margin-top: 0.0em; padding-left: 6em; padding-bottom: 0em; margin-bottom: 0em; font-size: small;}
+h4 {font-weight: bold; font-style: italic; margin-top: 1em; padding-left: 5em; padding-bottom: 0em; margin-bottom: 0em}
 </style>
 </head>
-<body bgcolor="#ffffff">
+<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"/>
-<table border ="0" cellspacing="0" cellpadding="4">
+
+<p class="contents"><span class="contents-title">Contents:</span><xsl:text>   </xsl:text>
+<xsl:for-each select="//k:section">
+<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>
+
+<center>
+<table border="0" cellspacing="0" cellpadding="4" width="100%">
 <xsl:apply-templates select="k:column"/>
 </table>
+</center>
 
     <p>
       <a href="http://validator.w3.org/check/referer"><img border="0"
@@ -58,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"><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">
@@ -72,7 +98,7 @@ h4 {font-weight: bold; font-style: italic; margin-top: 1em; padding-left: 50px;
 
 <xsl:template match="k:keys | k:mouse">
 <tr bgcolor="{ancestor::k:section/@color}">
-<td align="right">
+<td align="right" width="40%">
 <xsl:choose>
 <xsl:when test="count(k:key) = 2">
 <span class="key"><xsl:apply-templates select="k:key[1]"/></span>,