display-nocontent.xslt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/producer/wsrp-impl/transforms/display-nocontent.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. <xsl:template match="/">
  22. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  23. <tr>
  24. <td class="portlet-font" align="center" valign="middle" height="100">
  25. <xsl:choose>
  26. <xsl:when test="$ui-mode = 'wsrp:preview'"><xts:string id="IDS_PRO_NOC_LABEL_NO_CONTENT"/></xsl:when>
  27. <xsl:otherwise><xts:string id="IDS_PRO_NOC_LABEL_CLICK_EDIT"/></xsl:otherwise>
  28. </xsl:choose>
  29. </td>
  30. </tr>
  31. </table>
  32. <ui:preview/>
  33. </xsl:template>
  34. </xsl:stylesheet>