contextMenu.xslt 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: HTS
  5. (C) Copyright IBM Corp. 2005, 2010
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsl:stylesheet version="1.0"
  9. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  10. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  11. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  12. <xsl:template match="/">
  13. <xsl:variable name="taskMenuName"><xts:string id="IDS_FRAG_MENU_LABEL_TASK"/></xsl:variable>
  14. <response>
  15. <contextMenu id="contextMenu">
  16. <!-- define the list of task actions, a style is defined so that the menu title looks like a hyperlink. The rebuild attribute tells the menu
  17. to rebuild itself each time it is opened because certain actions may not be available depending on the task state -->
  18. <item type="menu">
  19. <menu id="actionContextMenu" displayName="{$taskMenuName}" titleStyle="menuDiv" rebuild="true">
  20. <item>
  21. <name><xts:string id="IDS_FRAG_MENU_LABEL_ACTIVATE_TASK"/></name>
  22. <image>/fragments/myinbox/images/activate.gif</image>
  23. <action>_THIS_action('activate');</action>
  24. </item>
  25. <item>
  26. <name><xts:string id="IDS_FRAG_MENU_LABEL_CLAIM_TASK"/></name>
  27. <image>/fragments/myinbox/images/claim.gif</image>
  28. <action>_THIS_action('claim');</action>
  29. </item>
  30. <item>
  31. <name><xts:string id="IDS_FRAG_MENU_LABEL_ASSIGN_TASK"/></name>
  32. <image>/fragments/myinbox/images/assign.gif</image>
  33. <action>_THIS_action('assign');</action>
  34. </item>
  35. <item>
  36. <name><xts:string id="IDS_FRAG_MENU_LABEL_RELEASE_TASK"/></name>
  37. <image>/fragments/myinbox/images/returntask.gif</image>
  38. <action>_THIS_action('release');</action>
  39. </item>
  40. <item separatorBefore="true">
  41. <name><xts:string id="IDS_FRAG_MENU_LABEL_SET_PRIORITY"/></name>
  42. <image>/fragments/myinbox/images/priority.gif</image>
  43. <action>_THIS_action('setPriority');</action>
  44. </item>
  45. <item separatorBefore="true">
  46. <name><xts:string id="IDS_FRAG_MENU_LABEL_START_TASK"/></name>
  47. <image>/fragments/myinbox/images/start.gif</image>
  48. <action>_THIS_action('start');</action>
  49. </item>
  50. <item>
  51. <name><xts:string id="IDS_FRAG_MENU_LABEL_STOP_TASK"/></name>
  52. <image>/fragments/myinbox/images/stop.gif</image>
  53. <action>_THIS_action('stop');</action>
  54. </item>
  55. </menu>
  56. </item>
  57. </contextMenu>
  58. </response>
  59. </xsl:template>
  60. </xsl:stylesheet>