Code

Make curvature work again by fixing a minor omission
[inkscape.git] / doc / keys-html.xsl
1 <?xml version="1.0" encoding="utf-8"?> 
3 <xsl:stylesheet
4    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
5    xmlns="http://www.w3.org/1999/xhtml"
6    xmlns:k="http://www.inkscape.org/namespaces/keys"
7    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
8    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9    xmlns:xlink="http://www.w3.org/1999/xlink"
10    exclude-result-prefixes="k #default inkscape sodipodi xlink"
11 >
12 <xsl:output method="html" encoding="utf-8" indent="no" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"/>
14 <xsl:template match="k:root">
15 <xsl:comment>
16 Do not edit this file.
17 It is generated automatically from doc/keys.xml by doc/keys-html.xsl.
18 </xsl:comment>
19 <html>
20 <head>
21 <title>Inkscape keys and mouse reference</title>
22 <style type="text/css">
23 .key {font-weight: bold}
24 .action {}
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; }
30 body {margin: 1em; background-color: #ffffff;}
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}
34 </style>
35 </head>
36 <body>
37 <h1><xsl:value-of select="/k:root/@title"/></h1>
38 <h2>Version <xsl:value-of select="/k:root/@ver"/></h2>
40 <xsl:apply-templates select="k:p"/>
42 <p class="contents"><span class="contents-title">Contents:</span><xsl:text>   </xsl:text>
43 <xsl:for-each select="//k:section">
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>
47 </xsl:if>
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>&#160;&#183; </xsl:text></xsl:if>
51 </xsl:for-each>
52 <span class="contents-section"><xsl:if test="following::k:section"><xsl:text>&#160;| </xsl:text></xsl:if></span>
53 </xsl:for-each>
54 </p>
56 <center>
57 <table border="0" cellspacing="0" cellpadding="4" width="100%">
58 <xsl:apply-templates select="k:column"/>
59 </table>
60 </center>
62     <p>
63       <a href="http://validator.w3.org/check/referer"><img border="0"
64           src="http://www.w3.org/Icons/valid-html40"
65           alt="Valid HTML 4.0!" height="31" width="88" /></a>
66     </p>
68 </body>
69 </html>
70 </xsl:template>
72 <xsl:template match="k:p">
73 <p><xsl:apply-templates/></p>
74 </xsl:template>
76 <xsl:template match="k:a">
77 <a href="{@href}"><xsl:apply-templates/></a>
78 </xsl:template>
80 <xsl:template match="k:root/text() | k:column/text()"/>
82 <xsl:template match="k:column">
83 <xsl:apply-templates/>
84 </xsl:template>
86 <xsl:template match="k:section">
87 <tr><td colspan="3"><a name="{generate-id()}"/><h1><xsl:value-of select="@title"/></h1></td></tr>
88 <xsl:apply-templates/>
89 </xsl:template>
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>
93 </xsl:template>
95 <xsl:template match="k:note">
96 <tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><span class="note"><xsl:value-of select="text()"/></span></td></tr>
97 </xsl:template>
99 <xsl:template match="k:keys | k:mouse">
100 <tr bgcolor="{ancestor::k:section/@color}">
101 <td align="right" width="40%">
102 <xsl:choose>
103 <xsl:when test="count(k:key) = 2">
104 <span class="key"><xsl:apply-templates select="k:key[1]"/></span>,
105 <span class="key"><xsl:apply-templates select="k:key[2]"/></span>
106 </xsl:when>
107 <xsl:otherwise>
108 <span class="key"><xsl:apply-templates select="k:key[1]"/></span>
109 </xsl:otherwise>
110 </xsl:choose>
111 </td>
112 <td>
113 <span class="action">
114 <xsl:apply-templates select="k:action"/>
115 </span>
116 </td>
117 </tr>
118 </xsl:template>
120 <xsl:template match="k:action">
121 <xsl:apply-templates/>
122 </xsl:template>
124 <xsl:template match="k:key">
125 <xsl:apply-templates/>
126 </xsl:template>
128 <xsl:template match="k:shift">
129 <xsl:text>Shift+</xsl:text>
130 </xsl:template>
132 <xsl:template match="k:ctrl">
133 <xsl:text>Ctrl+</xsl:text>
134 </xsl:template>
136 <xsl:template match="k:alt">
137 <xsl:text>Alt+</xsl:text>
138 </xsl:template>
140 <xsl:template match="k:left">
141 <xsl:text>Left </xsl:text>
142 </xsl:template>
144 <xsl:template match="k:right">
145 <xsl:text>Right </xsl:text>
146 </xsl:template>
148 <xsl:template match="k:keyf | k:misc | k:misc-wide">
149 <xsl:value-of select="@f"/>
150 </xsl:template>
152 <xsl:template match="k:arrows">
153 <xsl:text>arrows</xsl:text>
154 </xsl:template>
156 <xsl:template match="k:up">
157 <xsl:text>Up arrow</xsl:text>
158 </xsl:template>
160 <xsl:template match="k:down">
161 <xsl:text>Down arrow</xsl:text>
162 </xsl:template>
164 <xsl:template match="k:left-arrow">
165 <xsl:text>Left arrow</xsl:text>
166 </xsl:template>
168 <xsl:template match="k:right-arrow">
169 <xsl:text>Right arrow</xsl:text>
170 </xsl:template>
172 <xsl:template match="k:up-arrow">
173 <xsl:text>Up arrow</xsl:text>
174 </xsl:template>
176 <xsl:template match="k:down-arrow">
177 <xsl:text>Down arrow</xsl:text>
178 </xsl:template>
180 <xsl:template match="k:wheel">
181 <xsl:text>mouse wheel</xsl:text>
182 </xsl:template>
184 <xsl:template match="k:left-drag">
185 <xsl:text>mouse drag</xsl:text>
186 </xsl:template>
188 <xsl:template match="k:left-click">
189 <xsl:text>click</xsl:text>
190 </xsl:template>
192 <xsl:template match="k:mid-drag">
193 <xsl:text>middle button drag</xsl:text>
194 </xsl:template>
196 <xsl:template match="k:mid-click">
197 <xsl:text>middle click</xsl:text>
198 </xsl:template>
200 <xsl:template match="k:right-drag">
201 <xsl:text>right button drag</xsl:text>
202 </xsl:template>
204 <xsl:template match="k:right-click">
205 <xsl:text>right click</xsl:text>
206 </xsl:template>
208 </xsl:stylesheet>