ready.xslt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cpscrn
  5. (C) Copyright IBM Corp. 2005, 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <!-- $Header: //cpscrn/main/templates/cps4/portlets/nav/portlet-impl/viewer/ready.xslt#1 $ -->
  13. <!-- $DateTime: 2008/10/22 11:12:04 $ -->
  14. <!-- $Change: 25109 $ -->
  15. <xsl:stylesheet version="1.0"
  16. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  17. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  18. xmlns:ui="http://developer.cognos.com/schemas/cps/logic/ui/1/"
  19. exclude-result-prefixes="xts ui">
  20. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  21. <ui:property name="display-height" select="'display_height'"/>
  22. <xsl:template match="/">
  23. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  24. <tr>
  25. <td class="portlet-font" align="center" valign="middle">
  26. <xsl:attribute name="height">
  27. <xsl:choose>
  28. <xsl:when test="$display-height!=''"><xsl:value-of select="$display-height"/></xsl:when>
  29. <xsl:otherwise>100</xsl:otherwise>
  30. </xsl:choose>
  31. </xsl:attribute>
  32. <xsl:choose>
  33. <xsl:when test="$ui-state-params[@name = 'channel'] != ''"><xts:string id="IDS_NAV_VEW_READY_FOR_REQUESTS"/></xsl:when>
  34. <xsl:otherwise>
  35. <xsl:choose>
  36. <xsl:when test="$ui-mode = 'wsrp:preview'"><xts:string id="IDS_PRO_NOC_LABEL_NO_CONTENT"/></xsl:when>
  37. <xsl:otherwise><xts:string id="IDS_PRO_NOC_LABEL_CLICK_EDIT"/></xsl:otherwise>
  38. </xsl:choose>
  39. </xsl:otherwise>
  40. </xsl:choose>
  41. </td>
  42. </tr>
  43. </table>
  44. <xsl:if test="$ui-mode = 'wsrp:preview'">
  45. <table border="0" cellpadding="0" cellspacing="0" valign="top" width="100%">
  46. <tr>
  47. <td class="cognos-help-link" align="center">
  48. <ui:help/>
  49. <a class="cognos-anchor" href="javascript:wsrp_rewrite_doHelp();"><xts:string id="IDS_PRO_HTM_HELP_LINK"/></a>
  50. </td>
  51. </tr>
  52. </table>
  53. </xsl:if>
  54. </xsl:template>
  55. </xsl:stylesheet>