home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 June / PCpro_2005_06.ISO / files / opensource / inkscape / Inkscape-0.41-1.exe / doc / keys-html.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2005-02-09  |  3.9 KB  |  164 lines

  1. <?xml version="1.0" encoding="utf-8"?> 
  2.  
  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"/>
  13.  
  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: 4em; font-size: 70%}
  26. h1 {}
  27. h4 {font-weight: bold; font-style: italic}
  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>
  35.  
  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>
  41.  
  42. </body>
  43. </html>
  44. </xsl:template>
  45.  
  46. <xsl:template match="k:p">
  47. <p><xsl:apply-templates/></p>
  48. </xsl:template>
  49.  
  50. <xsl:template match="k:root/text() | k:column/text()"/>
  51.  
  52. <xsl:template match="k:column">
  53. <xsl:apply-templates/>
  54. </xsl:template>
  55.  
  56. <xsl:template match="k:section">
  57. <tr><td colspan="3"><h1><xsl:value-of select="@title"/></h1></td></tr>
  58. <xsl:apply-templates/>
  59. </xsl:template>
  60.  
  61. <xsl:template match="k:title">
  62. <tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><h4><xsl:value-of select="text()"/></h4></td></tr>
  63. </xsl:template>
  64.  
  65. <xsl:template match="k:note">
  66. <tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><span class="note"><xsl:value-of select="text()"/></span></td></tr>
  67. </xsl:template>
  68.  
  69. <xsl:template match="k:keys | k:mouse">
  70. <tr bgcolor="{ancestor::k:section/@color}">
  71. <td align="right">
  72. <span class="key">
  73. <xsl:choose>
  74. <xsl:when test="count(k:key) = 2">
  75. <xsl:apply-templates select="k:key[1]"/>,
  76. <xsl:apply-templates select="k:key[2]"/>
  77. </xsl:when>
  78. <xsl:otherwise>
  79. <xsl:apply-templates select="k:key[1]"/>
  80. </xsl:otherwise>
  81. </xsl:choose>
  82. </span>
  83. </td>
  84. <td>
  85. <span class="action">
  86. <xsl:apply-templates select="k:action"/>
  87. </span>
  88. </td>
  89. </tr>
  90. </xsl:template>
  91.  
  92. <xsl:template match="k:action">
  93. <xsl:apply-templates/>
  94. </xsl:template>
  95.  
  96. <xsl:template match="k:key">
  97. <xsl:apply-templates/>
  98. </xsl:template>
  99.  
  100. <xsl:template match="k:shift">
  101. <xsl:text>Shift+</xsl:text>
  102. </xsl:template>
  103.  
  104. <xsl:template match="k:ctrl">
  105. <xsl:text>Ctrl+</xsl:text>
  106. </xsl:template>
  107.  
  108. <xsl:template match="k:alt">
  109. <xsl:text>Alt+</xsl:text>
  110. </xsl:template>
  111.  
  112. <xsl:template match="k:left">
  113. <xsl:text>Left </xsl:text>
  114. </xsl:template>
  115.  
  116. <xsl:template match="k:right">
  117. <xsl:text>Right </xsl:text>
  118. </xsl:template>
  119.  
  120. <xsl:template match="k:keyf | k:misc | k:misc-wide">
  121. <xsl:value-of select="@f"/>
  122. </xsl:template>
  123.  
  124. <xsl:template match="k:arrows">
  125. <xsl:text>arrows</xsl:text>
  126. </xsl:template>
  127.  
  128. <xsl:template match="k:up">
  129. <xsl:text>Up arrow</xsl:text>
  130. </xsl:template>
  131.  
  132. <xsl:template match="k:down">
  133. <xsl:text>Down arrow</xsl:text>
  134. </xsl:template>
  135.  
  136. <xsl:template match="k:wheel">
  137. <xsl:text>mouse wheel</xsl:text>
  138. </xsl:template>
  139.  
  140. <xsl:template match="k:left-drag">
  141. <xsl:text>mouse drag</xsl:text>
  142. </xsl:template>
  143.  
  144. <xsl:template match="k:left-click">
  145. <xsl:text>click</xsl:text>
  146. </xsl:template>
  147.  
  148. <xsl:template match="k:mid-drag">
  149. <xsl:text>middle button drag</xsl:text>
  150. </xsl:template>
  151.  
  152. <xsl:template match="k:mid-click">
  153. <xsl:text>middle click</xsl:text>
  154. </xsl:template>
  155.  
  156. <xsl:template match="k:right-drag">
  157. <xsl:text>right button drag</xsl:text>
  158. </xsl:template>
  159.  
  160. <xsl:template match="k:right-click">
  161. <xsl:text>right click</xsl:text>
  162. </xsl:template>
  163.  
  164. </xsl:stylesheet>