task-tooltip.xslt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  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" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  9. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
  10. <xsl:template match="/" mode="common">
  11. <script type="text/javascript">
  12. /*
  13. * Generate the localised task type text. Used in the task image alt and title attributes
  14. */
  15. function _THIS_getLocalisedTaskTooltip(presentationName) {
  16. //alert(&apos;_THIS_getLocalisedTaskTooltip&apos;+presentationName);
  17. var tooltip='';
  18. if (presentationName=='Approve Task') {
  19. tooltip='<xts:string id="IDS_APPROVAL_TASK_TOOLTIP" encode="javascript"/>';
  20. }
  21. else if (presentationName=='Notification Task') {
  22. tooltip='<xts:string id="IDS_NOTIFICATION_TASK_TOOLTIP" encode="javascript"/>';
  23. }
  24. else if (presentationName=='Generic Task') {
  25. tooltip='<xts:string id="IDS_GENERIC_TASK_TOOLTIP" encode="javascript"/>';
  26. }
  27. else if (presentationName=='Acknowledge Task') {
  28. tooltip='<xts:string id="IDS_ACKNOWLEDGE_TASK_TOOLTIP" encode="javascript"/>';
  29. }
  30. return tooltip;
  31. }
  32. </script>
  33. </xsl:template>
  34. </xsl:stylesheet>