welcome.xts 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2019
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" messageBase="messages/portal.xml, messages/portalRL.xml">
  9. <!--
  10. Interface:
  11. This morphlet used to render the welcome page. Now, As of Cognos 11, it simply redirects to the new IBM Cognos Analytics Welcome page
  12. -->
  13. <!--
  14. ===============================================================================================
  15. show the welcome page if that is what is desired
  16. ===============================================================================================
  17. -->
  18. <xts:block
  19. id="outputMain"
  20. mode="output"
  21. processor="XSLT"
  22. type="exec"
  23. mimeType="text/html"
  24. mandatory="false">
  25. <xsl:stylesheet version="1.0"
  26. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  27. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  28. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  29. xmlns:pf="http://developer.cognos.com/schemas/xts/pf" exclude-result-prefixes="xtsext xts pf">
  30. <xsl:variable name="webRoot">
  31. <xsl:choose>
  32. <xsl:when test="/root/http/param[@name='WEB_CONTENT_ROOT'] and string-length(string(/root/http/param[@name='WEB_CONTENT_ROOT'])) &gt; 0">
  33. <xsl:value-of select="string(/root/http/param[@name='WEB_CONTENT_ROOT'])"/>
  34. </xsl:when>
  35. <xsl:otherwise>/bi</xsl:otherwise>
  36. </xsl:choose>
  37. </xsl:variable>
  38. <xsl:template match="/">
  39. <html>
  40. <head>
  41. <meta http-equiv="refresh">
  42. <xsl:attribute name="content">0; URL=<xsl:value-of select="concat($webRoot,'/index.html')"/></xsl:attribute>
  43. </meta>
  44. </head>
  45. </html>
  46. </xsl:template>
  47. </xsl:stylesheet>
  48. </xts:block>
  49. </xts:morphlet>