about.xts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. *****************************************************************
  4. ** Licensed Materials - Property of IBM
  5. **
  6. ** BI and PM: qs
  7. **
  8. ** (C) Copyright IBM Corp. 2001, 2017
  9. **
  10. ** US Government Users Restricted Rights - Use, duplication or
  11. ** disclosure restricted by GSA ADP Schedule Contract with
  12. ** IBM Corp.
  13. *****************************************************************
  14. -->
  15. <!--
  16. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  17. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  18. -->
  19. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/QSAboutBox.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio">
  20. <!--
  21. This morphlet (about.xts) consists of the following blocks:
  22. formlogic_init - update various /root/env level parameters based on new or changed /root/env parameters.
  23. format - render the product about page.
  24. -->
  25. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="logicsheets/formlogic_init.xslt"/>
  26. <xts:block id="format" dependency="formlogic_init" mode="output" processor="XSLT" type="exec" mimeType="text/html">
  27. <!-- get the debug logic sheet -->
  28. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  29. <xts:logicsheet path="logicsheets/portal.xsl"/>
  30. <xts:logicsheet path="qs/logicsheets/dialogIncludes.xsl"/>
  31. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  32. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  33. <xts:logicsheet path="logicsheets/presentation/dialog/centralabout.xsl"/>
  34. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  35. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  36. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  37. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:ca="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/centralabout/" xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" xmlns:qsdialog="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts lyt pf dp df ca utml qsdialog xtsext">
  38. <xsl:import href="qs/logicsheets/markupTemplates.xsl"/>
  39. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  40. <!-- add any theme variables -->
  41. <pf:variables/>
  42. <!-- get the version from the version file -->
  43. <xsl:variable name="version" select="document('version.xml')/version"/>
  44. <!-- start the output -->
  45. <xsl:template match="/root">
  46. <!-- get passed in parameters -->
  47. <xsl:variable name="prd" select="/root/env/param[@name = 'prd']"/>
  48. <xsl:variable name="qsWebRoot" select="/root/env/param[@name = 'qsWebRoot']"/>
  49. <dp:page>
  50. <dp:script>
  51. <qsdialog:headerIncludes dlgSize="407" featureName="About"/>
  52. </dp:script>
  53. <form style="margin:0px" name="f" method="POST" onsubmit="return false;">
  54. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  55. <tr>
  56. <td width="100%" height="0%">
  57. <!-- dialog header -->
  58. <dp:header help="false">
  59. <dp:close>
  60. <a>
  61. <xsl:attribute name="href">javascript:goDialogManager.getWindowManager().hideDialogFrame()</xsl:attribute>
  62. <dp:closeMarker/>
  63. </a>
  64. </dp:close>
  65. <!-- header titles -->
  66. <dp:title>
  67. <xts:string id="QUERY_STUDIO_WINDOW_TITLE"/>
  68. </dp:title>
  69. </dp:header>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td width="100%" height="100%" valign="top">
  74. <img>
  75. <xsl:choose>
  76. <xsl:when test="/root/user/param[@name='productLocale']!= 'en'">
  77. <xsl:variable name="imageName" select="concat('/images/qs_about_box_',/root/user/param[@name='productLocale'],'.jpg')"/>
  78. <xsl:attribute name="src"><xsl:value-of select="$qsWebRoot"/><xsl:value-of select="$imageName"/></xsl:attribute>
  79. </xsl:when>
  80. <xsl:otherwise>
  81. <xsl:attribute name="src"><xsl:value-of select="$qsWebRoot"/>/images/qs_about_box_en.jpg</xsl:attribute>
  82. </xsl:otherwise>
  83. </xsl:choose>
  84. <xsl:attribute name="alt"><xts:string id="IDS_PROP_LEGAL"/></xsl:attribute>
  85. <xsl:attribute name="onError">this.src='<xsl:value-of select="$qsWebRoot"/>/images/qs_about_box_en.jpg'</xsl:attribute>
  86. </img>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td width="100%" height="0%">
  91. <dp:footer>
  92. <df:button df:id="IDS_OK" df:style="href" df:href="javascript:goDialogManager.getWindowManager().hideDialogFrame();" df:defaultKey="active"/>
  93. </dp:footer>
  94. </td>
  95. </tr>
  96. </table>
  97. </form>
  98. </dp:page>
  99. </xsl:template>
  100. </xsl:stylesheet>
  101. </xts:block>
  102. <!-- Debug -->
  103. <xts:block id="debug" type="exec" dependency="format" mode="output" condition=".[ /root/session/param[@name='debug'] = '1' ]" processor="XSLT" mandatory="false" mimeType="text/html">
  104. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  105. <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="xsl dbg">
  106. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  107. <dbg:templates/>
  108. <xsl:template match="/">
  109. <dbg:dumpxml select="/root"/>
  110. </xsl:template>
  111. </xsl:stylesheet>
  112. </xts:block>
  113. </xts:morphlet>