You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

299 lines
12 KiB

  1. <?xml version="1.0"?>
  2. <!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/REC-html40" version="1.0">
  4. <xsl:output method="html" version="4.0" indent="yes" encoding="UTF-8"
  5. media-type="text/plain; charset=UTF-8"/>
  6. <xsl:param name="pagetogenerate" select="UNDEFINED"/>
  7. <xsl:template match="page[outfile!=$pagetogenerate]">
  8. </xsl:template>
  9. <xsl:template match="page[outfile=$pagetogenerate]">
  10. <xsl:variable name="Xlevel2parent" select="level2parent"/>
  11. <xsl:variable name="Xlevel3parent" select="level3parent"/>
  12. <html>
  13. <head>
  14. <title>OpenOCD debugger</title>
  15. <meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
  16. <link href="menuweb.css" rel="stylesheet" type="text/css"/>
  17. </head>
  18. <tcl>
  19. set console ""
  20. set upload_filename /ram/upload
  21. </tcl>
  22. <body style="margin:0px;">
  23. <div style="width:974px;height:85px;">
  24. <div style="float:left;position:relative;left:32px;width:478px;">
  25. <a href="/">
  26. OpenOCD
  27. </a>
  28. </div>
  29. <div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
  30. <div class="textlight" style="position:relative;left:15px;top:4px;">
  31. <tcl>append buffer [capture version]</tcl>
  32. </div>
  33. </div>
  34. </div>
  35. <table style="padding:0px;border-collapse:collapse;">
  36. <tr>
  37. <td style="width:33px;">
  38. <div style="width:20px;height:510px;">
  39. &nbsp;
  40. </div>
  41. </td>
  42. <!-- level 2 menu bar on left -->
  43. <td style="vertical-align:top;height:100%;width:140px;padding:0px;">
  44. <table style="padding:0px;border-collapse:collapse;height:100%;width:140px;">
  45. <tr style="height:59px;">
  46. <td></td>
  47. </tr>
  48. <xsl:for-each select="parent::language/page[outfile = $Xlevel2parent]/level2menu">
  49. <tr>
  50. <td>
  51. <xsl:choose>
  52. <xsl:when test="contains(@href, $pagetogenerate)">
  53. <xsl:attribute name="style">width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;</xsl:attribute>
  54. </xsl:when>
  55. <xsl:otherwise>
  56. <xsl:attribute name="style">width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;</xsl:attribute>
  57. </xsl:otherwise>
  58. </xsl:choose>
  59. <div style="position:relative;left:10px;top:10px;font-weight:bold;">
  60. <a>
  61. <xsl:attribute name="href">
  62. <xsl:value-of select="@href"/>
  63. </xsl:attribute>
  64. <xsl:choose>
  65. <xsl:when test="(@href = $pagetogenerate)">
  66. <xsl:attribute name="style">font-weight: bold;</xsl:attribute>
  67. </xsl:when>
  68. <xsl:otherwise>
  69. <xsl:choose>
  70. <xsl:when test="(@href = $Xlevel3parent)">
  71. <xsl:attribute name="style">font-weight: bold;</xsl:attribute>
  72. </xsl:when>
  73. <xsl:otherwise>
  74. <xsl:attribute name="style"></xsl:attribute>
  75. </xsl:otherwise>
  76. </xsl:choose>
  77. </xsl:otherwise>
  78. </xsl:choose>
  79. <xsl:value-of select="@title"/>
  80. </a>
  81. </div>
  82. </td>
  83. </tr>
  84. </xsl:for-each>
  85. <tr>
  86. <td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')">
  87. </td>
  88. </tr>
  89. <tr>
  90. <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')">
  91. </td>
  92. </tr>
  93. <tr>
  94. <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')">
  95. </td>
  96. </tr>
  97. </table>
  98. </td>
  99. <!-- top level menu -->
  100. <td style="vertical-align:top;padding:0px;height:100%">
  101. <table style="padding:0px;border-collapse:collapse;height:100%;">
  102. <tr>
  103. <td>
  104. <table style="padding:0px;border-collapse:collapse;">
  105. <tr>
  106. <xsl:for-each select="parent::language/page">
  107. <xsl:if test="menutext">
  108. <td>
  109. <xsl:choose>
  110. <xsl:when test="(outfile = $pagetogenerate) or (outfile = $Xlevel2parent)">
  111. <xsl:attribute name="style">width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;</xsl:attribute>
  112. </xsl:when>
  113. <xsl:otherwise>
  114. <xsl:attribute name="style">width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;</xsl:attribute>
  115. </xsl:otherwise>
  116. </xsl:choose>
  117. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  118. <a>
  119. <xsl:attribute name="href"><xsl:value-of select="menulink"/></xsl:attribute>
  120. <xsl:if test="(outfile = $pagetogenerate)">
  121. <xsl:attribute name="style">font-weight: bold;</xsl:attribute>
  122. </xsl:if>
  123. <xsl:if test="(outfile = $Xlevel2parent)">
  124. <xsl:attribute name="style">font-weight: bold;</xsl:attribute>
  125. </xsl:if>
  126. <xsl:value-of select="menutext"/>
  127. </a>
  128. </div>
  129. </td>
  130. </xsl:if>
  131. </xsl:for-each>
  132. </tr>
  133. </table>
  134. </td>
  135. </tr>
  136. <tr>
  137. <td colspan="6" style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;">
  138. <div style="width:500px;background-color:#ffffff;height:100%;">
  139. &nbsp;
  140. </div>
  141. </td>
  142. </tr>
  143. <tr>
  144. <td colspan="6" style="background-color:#ffffff;text-indent:30px;height:40px;">
  145. <H1><xsl:value-of select="pageheading"/></H1>
  146. </td>
  147. </tr>
  148. <tr style="height:100%;">
  149. <td colspan="6" style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;">
  150. <xsl:value-of disable-output-escaping="yes" select="pagetext/markup_code"/>
  151. </td>
  152. </tr>
  153. <tcl>
  154. <!-- This is the output from any OpenOCD commands -->
  155. set toggle_details [formfetch toggle_details]
  156. if {[string length $toggle_details]==0} {
  157. set toggle_details 0
  158. }
  159. set show_details [load_var show_details]
  160. if {[string length $show_details]==0} {
  161. set show_details 0
  162. }
  163. if {$toggle_details==1} {
  164. set show_details [expr 1-$show_details]
  165. save_var show_details $show_details
  166. }
  167. if {[string length $console]!=0} {
  168. </tcl>
  169. <tr style="height:100%;">
  170. <td colspan="6" style="height:100%;background-color:red;">
  171. <table class="textgray" style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%">
  172. <td style="width:25px;">&nbsp;</td>
  173. <tcl>
  174. if {$show_details==1} {
  175. append buffer <xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>
  176. append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
  177. append buffer <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
  178. } else {
  179. append buffer <xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>
  180. append buffer {td style="background-image:url('menu_cuts/h_tab_free.png');width:110px;height:29px;background-repeat: no-repeat;background-position:top left;"}
  181. append buffer <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
  182. }
  183. </tcl>
  184. <a class="openocd">
  185. <xsl:attribute name="href"><xsl:value-of select="$pagetogenerate"/>?toggle_details=1</xsl:attribute>
  186. <tcl>
  187. if {$show_details==1} {
  188. append buffer "Hide details"
  189. append buffer <br/>
  190. } else {
  191. append buffer {<div style="position:relative;top:7px;text-align:center;">}
  192. append buffer "Show details"
  193. append buffer {</div>}
  194. }
  195. </tcl>
  196. </a>
  197. <tcl>
  198. if {$show_details==1} {
  199. append buffer $console
  200. }
  201. </tcl>
  202. <xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>/td<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
  203. <tcl>
  204. if {$show_details!=1} {
  205. append buffer {<td>&nbsp;</td>}
  206. }
  207. </tcl>
  208. <td style="width:25px;">&nbsp;</td>
  209. </table>
  210. </td>
  211. </tr>
  212. <tcl>
  213. }
  214. </tcl>
  215. <tr>
  216. <td colspan="6" style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;">
  217. <div style="width:500px;background-color:#ffffff;height:100%;">
  218. &nbsp;
  219. </div>
  220. </td>
  221. </tr>
  222. </table>
  223. </td>
  224. <td style="width:6px;">
  225. </td>
  226. <td style="width:245px;height:100%">
  227. <table style="padding:0px;border-collapse:collapse;height:100%;">
  228. <tr>
  229. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
  230. <div class="textgray" style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;">
  231. Documentation
  232. </div>
  233. </td>
  234. <td width="40px">
  235. &nbsp;
  236. </td>
  237. <td>
  238. </td>
  239. </tr>
  240. <tr>
  241. <td colspan="3" style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');"></td>
  242. </tr>
  243. <tr>
  244. <td colspan="3" style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;">
  245. <a href="http://openocd.berlios.de/doc/openocd.pdf" target="_blank">OpenOCD Manual</a><br/>
  246. </td>
  247. </tr>
  248. <tr><td colspan="3" style="background-color:#d8d7d7;height:15px;"></td></tr>
  249. <tr>
  250. <td colspan="3">
  251. <table style="padding:0px;border-collapse:collapse;">
  252. <td style="background-color:#d8d7d7;width:10px;height:1px"></td>
  253. <td style="background-color:#999999;width:225px; height:1px;"></td>
  254. <td style="background-color:#d8d7d7;width:10px;height:1px"></td>
  255. </table>
  256. </td>
  257. </tr>
  258. <tr><td colspan="3" style="background-color:#d8d7d7;height:15px;"></td></tr>
  259. <tr style="height:100%;">
  260. <td class="textgray" colspan="3" style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;">
  261. <xsl:choose>
  262. <xsl:when test="(pagetext/right_column)">
  263. <xsl:value-of disable-output-escaping="yes" select="pagetext/right_column"/>
  264. </xsl:when>
  265. <xsl:otherwise>
  266. </xsl:otherwise>
  267. </xsl:choose>
  268. </td>
  269. </tr>
  270. <tr>
  271. <td colspan="3" style="height:30px;background-image:url('menu_cuts/right_bottom.png');">
  272. &nbsp;
  273. </td>
  274. </tr>
  275. </table>
  276. </td>
  277. </tr>
  278. </table>
  279. </body>
  280. </html>
  281. </xsl:template>
  282. </xsl:stylesheet>