about.xts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  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. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml">
  13. <!--
  14. This morphlet (about.xts) consists of the following blocks:
  15. formlogic_init - update various /root/env level parameters based on new or changed /root/env parameters.
  16. format - render the product about page.
  17. -->
  18. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  19. <xts:block id="format" dependency="formlogic_init" mode="output" processor="XSLT" type="exec" mimeType="text/html">
  20. <xts:logicsheet path="logicsheets/portal.xsl"/>
  21. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  22. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  23. <xts:logicsheet path="logicsheets/presentation/dialog/centralabout.xsl"/>
  24. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  25. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  26. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  27. <xsl:stylesheet version="1.0"
  28. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  29. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  30. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  31. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  32. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  33. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  34. xmlns:ca="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/centralabout/"
  35. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  36. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  37. exclude-result-prefixes="xsl xts lyt pf dp df ca utml">
  38. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  39. <!-- current file name -->
  40. <xsl:variable name="mname" select="'about.xts'"/>
  41. <!-- add any theme variables -->
  42. <pf:variables/>
  43. <!-- get the version from the version file -->
  44. <xsl:variable name="version" select="document('version.xml')/version"/>
  45. <!-- start the output -->
  46. <xsl:template match="/root">
  47. <!-- get passed in parameters -->
  48. <xsl:variable name="prd" select="/root/env/param[@name = 'prd']"/>
  49. <xsl:variable name="fullprd" select="/root/env/param[@name = 'fullprd']"/>
  50. <xsl:variable name="browserTitle">
  51. <xsl:choose>
  52. <xsl:when test="$prd != ''"><xsl:value-of select="$prd"/></xsl:when>
  53. <xsl:otherwise><xts:string id="IDS_PORTAL"/></xsl:otherwise>
  54. </xsl:choose>
  55. </xsl:variable>
  56. <xsl:variable name="aboutTitle">
  57. <xsl:choose>
  58. <xsl:when test="$fullprd != ''"><xsl:value-of select="$fullprd"/></xsl:when>
  59. <xsl:when test="$prd != ''"><xsl:value-of select="$prd"/></xsl:when>
  60. <xsl:otherwise><xts:string id="IDS_ABOUT_PORTAL"/></xsl:otherwise>
  61. </xsl:choose>
  62. </xsl:variable>
  63. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  64. <dp:meta>
  65. <pf:meta/> <!-- Standard meta tags -->
  66. </dp:meta>
  67. <dp:script>
  68. <pf:help context=""/> <!-- Help system -->
  69. </dp:script>
  70. <utml:form name="pform" method="post" action="{$gateway}">
  71. <!-- dialog header -->
  72. <dp:header help="false">
  73. <!-- header titles-->
  74. <dp:title showName="false">
  75. <xsl:value-of select="$browserTitle"/>
  76. </dp:title>
  77. <!-- header introduction -->
  78. <dp:description>
  79. <dp:descriptionText><xts:string id="IDS_ABOUT_CC"><xts:param name="portal"><xsl:value-of select="$aboutTitle"/></xts:param></xts:string></dp:descriptionText>
  80. <dp:descriptionLink><a target="_blank" href="http://www.ibm.com/cognos/"><xts:string id="IDS_ABOUT_COGNOS"/></a></dp:descriptionLink>
  81. </dp:description>
  82. <dp:close>
  83. <xsl:variable name="close"><xts:string id="IDS_CLOSE"/></xsl:variable>
  84. <xsl:choose>
  85. <xsl:when test="key('env-param', 'backURL')">
  86. <a href="{key('env-param', 'backURL')}"><img height="16" width="16" class="dialogClose" vspace="2" border="0" src="{$skin_images}close.gif" alt="{$close}" onmouseover="this.className = 'dialogCloseOver'" onmouseout="this.className = 'dialogClose'"/></a>
  87. </xsl:when>
  88. <xsl:otherwise>
  89. <a href="javascript:history.back();"><img height="16" width="16" class="dialogClose" vspace="2" border="0" src="{$skin_images}close.gif" alt="{$close}" onmouseover="this.className = 'dialogCloseOver'" onmouseout="this.className = 'dialogClose'"/></a>
  90. </xsl:otherwise>
  91. </xsl:choose>
  92. </dp:close>
  93. </dp:header>
  94. <!-- body contents - linklist -->
  95. <ca:version>
  96. <dp:version>
  97. <xsl:value-of select="$version/@productMajor"/>.<xsl:value-of select="$version/@productMinor"/>
  98. </dp:version>
  99. <dp:versionText>
  100. <xsl:if test="$version/@isRelease='false'"><xts:string id="IDS_ABOUT_RESALE"/></xsl:if>
  101. </dp:versionText>
  102. </ca:version>
  103. <ca:trademark/>
  104. <ca:legal/>
  105. <dp:footer>
  106. <xsl:choose>
  107. <xsl:when test="key('env-param', 'backURL')"><df:button df:id="IDS_OK" df:style="back-url"/></xsl:when>
  108. <xsl:otherwise><df:button df:id="IDS_OK" df:style="href" df:href="javascript:history.back();"/></xsl:otherwise>
  109. </xsl:choose>
  110. </dp:footer>
  111. </utml:form>
  112. </dp:page>
  113. </xsl:template>
  114. </xsl:stylesheet>
  115. </xts:block>
  116. <!-- Debug -->
  117. <xts:block id="debug" type="exec" dependency="format" mode="output" condition=".[ /root/session/param[@name='debug'] = '1' ]" processor="XSLT" mandatory="false" mimeType="text/html" >
  118. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  119. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
  120. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  121. <dbg:templates/>
  122. <xsl:template match="/">
  123. <dbg:dumpxml select="/root"/>
  124. </xsl:template>
  125. </xsl:stylesheet>
  126. </xts:block>
  127. </xts:morphlet>