1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
|
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:k="http://www.inkscape.org/namespaces/keys"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
exclude-result-prefixes="k inkscape sodipodi xlink"
>
<xsl:param name="reference.lang" select="''" />
<xsl:output method="xml"
encoding="utf-8"
indent="yes"
doctype-public="-//OASIS//DTD DocBook XML V4.3//EN"
doctype-system="http://www.docbook.org/xml/4.3/docbookx.dtd"
/>
<xsl:template match="k:root">
<xsl:comment>
Do not edit this file. It is generated automatically from
quickreference/gimp-keys.xml.
</xsl:comment>
<reference>
<xsl:attribute name="lang">
<xsl:value-of select="$reference.lang" />
</xsl:attribute>
<title>Keys and Mouse Reference</title>
<xsl:apply-templates select="k:p"/>
<xsl:apply-templates select="k:column"/>
</reference>
</xsl:template>
<xsl:template match="k:p">
<para><xsl:apply-templates/></para>
</xsl:template>
<xsl:template match="k:root/text() | k:column/text() | k:title | k:note"/>
<xsl:template match="k:column">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="k:section">
<refentry>
<refmeta>
<refentrytitle>
<xsl:value-of select="child::k:title"/>
</refentrytitle>
</refmeta>
<refnamediv>
<refname><xsl:value-of select="child::k:title" /></refname>
<refpurpose>
Key reference for <guimenuitem>
<xsl:value-of select="child::k:title" />
</guimenuitem> menu
</refpurpose>
</refnamediv>
<refsect1>
<title><xsl:value-of select="child::k:title" /></title>
<xsl:apply-templates />
</refsect1>
</refentry>
</xsl:template>
<xsl:template match="k:group">
<variablelist>
<xsl:if test="k:title/text() != ''">
<title><xsl:value-of select="k:title/text()" /></title>
</xsl:if>
<xsl:apply-templates />
</variablelist>
<xsl:if test="k:note">
<note>
<para>
<xsl:value-of select="k:note/text()" />
</para>
</note>
</xsl:if>
</xsl:template>
<xsl:template match="k:keys | k:mouse">
<varlistentry>
<term>
<xsl:choose>
<xsl:when test="count(k:key) = 2">
<xsl:apply-templates select="k:key[1]"/>,
<xsl:apply-templates select="k:key[2]"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="k:key[1]"/>
</xsl:otherwise>
</xsl:choose>
</term>
<listitem>
<para>
<xsl:apply-templates select="k:action"/>
</para>
</listitem>
</varlistentry>
</xsl:template>
<xsl:template match="k:action">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="k:key">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="k:shift">
<keycap function="shift">Shift</keycap>+
</xsl:template>
<xsl:template match="k:ctrl">
<keycap function="control">Ctrl</keycap>+
</xsl:template>
<xsl:template match="k:alt">
<keycap function="alt">Alt</keycap>+
</xsl:template>
<xsl:template match="k:left">
<keycap function="left">Left</keycap>+
</xsl:template>
<xsl:template match="k:right">
<keycap function="right">Right</keycap>+
</xsl:template>
<xsl:template match="k:keyf | k:misc | k:misc-wide">
<xsl:value-of select="@f"/>
</xsl:template>
<xsl:template match="k:arrows">
<xsl:text>arrows</xsl:text>
</xsl:template>
<xsl:template match="k:up">
<keycap function="up">Up arrow</keycap>
</xsl:template>
<xsl:template match="k:down">
<keycap function="down">Down arrow</keycap>
</xsl:template>
<xsl:template match="k:wheel">
<xsl:text>mouse wheel</xsl:text>
</xsl:template>
<xsl:template match="k:left-drag">
<xsl:text>mouse drag</xsl:text>
</xsl:template>
<xsl:template match="k:left-click">
<xsl:text>click</xsl:text>
</xsl:template>
<xsl:template match="k:mid-drag">
<xsl:text>middle button drag</xsl:text>
</xsl:template>
<xsl:template match="k:mid-click">
<xsl:text>middle click</xsl:text>
</xsl:template>
<xsl:template match="k:right-drag">
<xsl:text>right button drag</xsl:text>
</xsl:template>
<xsl:template match="k:right-click">
<xsl:text>right click</xsl:text>
</xsl:template>
</xsl:stylesheet>
|