commentsMenu.xslt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <response>
  14. <commentsMenu id="toolbar">
  15. <item type="button">
  16. <name><xts:string id="IDS_FRAG_COMMENT_VIEWER_ADD_COMMENT"/></name>
  17. <image>fragments/myinbox/images/add_comment.gif</image>
  18. <action>_THIS_action('addComment');</action>
  19. </item>
  20. <item type="comboButton">
  21. <menu id="commentsMenu" fullImagePath="true" >
  22. <item selected="true" fullImagePath="true">
  23. <image alt="User Comments" pre="_THIS?frag-resource=" post="/THIS_">/fragments/myinbox/images/user_comments.gif</image>
  24. <name><xts:string id="IDS_FRAG_COMMENT_VIEWER_LABEL_USER_COMMENTS"/></name>
  25. <value>USER_COMMENTS</value>
  26. <action>_THIS_action($(_THIS_),'Task.Comments',0);</action>
  27. </item>
  28. <item fullImagePath="true">
  29. <image alt="Audit Comments" pre="_THIS?frag-resource=" post="/THIS_">/fragments/myinbox/images/audit_comments.gif</image>
  30. <name><xts:string id="IDS_FRAG_COMMENT_VIEWER_LABEL_AUDIT_COMMENTS"/></name>
  31. <value>AUDIT_COMMENTS</value>
  32. <action>_THIS_action($(_THIS_),'Task.Comments',1);</action>
  33. </item>
  34. <item fullImagePath="true">
  35. <name><xts:string id="IDS_FRAG_COMMENT_VIEWER_LABEL_ALL_COMMENTS"/></name>
  36. <value>ALL_COMMENTS</value>
  37. <action>_THIS_action($(_THIS_),'Task.Comments',2);</action>
  38. </item>
  39. </menu>
  40. </item>
  41. </commentsMenu>
  42. </response>
  43. </xsl:template>
  44. </xsl:stylesheet>