Code

no comment
[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: 50px; font-size: 70%}
26 h1 {margin-top: 0.5em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em; letter-spacing: -0.02em}
27 h4 {font-weight: bold; font-style: italic; margin-top: 1em; padding-left: 50px; padding-bottom: 0em; margin-bottom: 0em}
28 </style>
29 </head>
30 <body bgcolor="#ffffff">
31 <xsl:apply-templates select="k:p"/>
32 <table border ="0" cellspacing="0" cellpadding="4">
33 <xsl:apply-templates select="k:column"/>
34 </table>
36     <p>
37       <a href="http://validator.w3.org/check/referer"><img border="0"
38           src="http://www.w3.org/Icons/valid-html40"
39           alt="Valid HTML 4.0!" height="31" width="88" /></a>
40     </p>
42 </body>
43 </html>
44 </xsl:template>
46 <xsl:template match="k:p">
47 <p><xsl:apply-templates/></p>
48 </xsl:template>
50 <xsl:template match="k:a">
51 <a href="{@href}"><xsl:apply-templates/></a>
52 </xsl:template>
54 <xsl:template match="k:root/text() | k:column/text()"/>
56 <xsl:template match="k:column">
57 <xsl:apply-templates/>
58 </xsl:template>
60 <xsl:template match="k:section">
61 <tr><td colspan="3"><h1><xsl:value-of select="@title"/></h1></td></tr>
62 <xsl:apply-templates/>
63 </xsl:template>
65 <xsl:template match="k:title">
66 <tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><h4><xsl:value-of select="text()"/></h4></td></tr>
67 </xsl:template>
69 <xsl:template match="k:note">
70 <tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><span class="note"><xsl:value-of select="text()"/></span></td></tr>
71 </xsl:template>
73 <xsl:template match="k:keys | k:mouse">
74 <tr bgcolor="{ancestor::k:section/@color}">
75 <td align="right">
76 <xsl:choose>
77 <xsl:when test="count(k:key) = 2">
78 <span class="key"><xsl:apply-templates select="k:key[1]"/></span>,
79 <span class="key"><xsl:apply-templates select="k:key[2]"/></span>
80 </xsl:when>
81 <xsl:otherwise>
82 <span class="key"><xsl:apply-templates select="k:key[1]"/></span>
83 </xsl:otherwise>
84 </xsl:choose>
85 </td>
86 <td>
87 <span class="action">
88 <xsl:apply-templates select="k:action"/>
89 </span>
90 </td>
91 </tr>
92 </xsl:template>
94 <xsl:template match="k:action">
95 <xsl:apply-templates/>
96 </xsl:template>
98 <xsl:template match="k:key">
99 <xsl:apply-templates/>
100 </xsl:template>
102 <xsl:template match="k:shift">
103 <xsl:text>Shift+</xsl:text>
104 </xsl:template>
106 <xsl:template match="k:ctrl">
107 <xsl:text>Ctrl+</xsl:text>
108 </xsl:template>
110 <xsl:template match="k:alt">
111 <xsl:text>Alt+</xsl:text>
112 </xsl:template>
114 <xsl:template match="k:left">
115 <xsl:text>Left </xsl:text>
116 </xsl:template>
118 <xsl:template match="k:right">
119 <xsl:text>Right </xsl:text>
120 </xsl:template>
122 <xsl:template match="k:keyf | k:misc | k:misc-wide">
123 <xsl:value-of select="@f"/>
124 </xsl:template>
126 <xsl:template match="k:arrows">
127 <xsl:text>arrows</xsl:text>
128 </xsl:template>
130 <xsl:template match="k:up">
131 <xsl:text>Up arrow</xsl:text>
132 </xsl:template>
134 <xsl:template match="k:down">
135 <xsl:text>Down arrow</xsl:text>
136 </xsl:template>
138 <xsl:template match="k:left-arrow">
139 <xsl:text>Left arrow</xsl:text>
140 </xsl:template>
142 <xsl:template match="k:right-arrow">
143 <xsl:text>Right arrow</xsl:text>
144 </xsl:template>
146 <xsl:template match="k:up-arrow">
147 <xsl:text>Up arrow</xsl:text>
148 </xsl:template>
150 <xsl:template match="k:down-arrow">
151 <xsl:text>Down arrow</xsl:text>
152 </xsl:template>
154 <xsl:template match="k:wheel">
155 <xsl:text>mouse wheel</xsl:text>
156 </xsl:template>
158 <xsl:template match="k:left-drag">
159 <xsl:text>mouse drag</xsl:text>
160 </xsl:template>
162 <xsl:template match="k:left-click">
163 <xsl:text>click</xsl:text>
164 </xsl:template>
166 <xsl:template match="k:mid-drag">
167 <xsl:text>middle button drag</xsl:text>
168 </xsl:template>
170 <xsl:template match="k:mid-click">
171 <xsl:text>middle click</xsl:text>
172 </xsl:template>
174 <xsl:template match="k:right-drag">
175 <xsl:text>right button drag</xsl:text>
176 </xsl:template>
178 <xsl:template match="k:right-click">
179 <xsl:text>right click</xsl:text>
180 </xsl:template>
182 </xsl:stylesheet>