display-about.xslt 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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-about.xslt#1 $ -->
  13. <!-- $DateTime: 2008/10/22 11:12:04 $ -->
  14. <!-- $Change: 25109 $ -->
  15. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:ui="http://developer.cognos.com/schemas/cps/logic/ui/1/" xmlns:utml="http://developer.cognos.com/schemas/cps/logic/form/1/" exclude-result-prefixes="xts ui">
  16. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  17. <utml:variables/>
  18. <!-- create browser variable: $ui-browser -->
  19. <ui:browser/>
  20. <!-- create portal variable: $ui-consumer-info -->
  21. <ui:consumer/>
  22. <xsl:variable name="display-versions" select="$ui-mode = 'cps:config'"/>
  23. <xsl:variable name="link-separator" select="/root/portlet/consumer/layout/linkSeparator"/>
  24. <xsl:variable name="copyrights" select="$ui-configuration[@name='cps2.platform']/platform/help/copyrightFile"/>
  25. <xsl:variable name="version" select="document('version.xml')/version"/>
  26. <xsl:template match="/">
  27. <xsl:call-template name="render-content"/>
  28. </xsl:template>
  29. <xsl:template name="render-content">
  30. <ui:copyright/>
  31. <script language="javascript">
  32. function wsrp_rewrite_doOK() {
  33. <xsl:choose>
  34. <xsl:when test="key('utml-key-params', 'edit_stack')">
  35. <utml:form-submit utml:formName="wsrp_rewrite_form" utml:operation="pop" utml:validate="false"/>
  36. </xsl:when>
  37. <xsl:when test="$ui-window-state = 'wsrp:solo'">
  38. window.close();
  39. </xsl:when>
  40. <xsl:otherwise>
  41. window.history.back();
  42. </xsl:otherwise>
  43. </xsl:choose>
  44. }
  45. function wsrp_rewrite_keyPressed() {
  46. <xsl:if test="$ui-browser = 'ie' or $ui-browser = 'moz'">
  47. // 13 is the "Enter" key
  48. if (13 == event.keyCode) {
  49. wsrp_rewrite_doOK();
  50. event.returnValue = false;
  51. }
  52. </xsl:if>
  53. return true;
  54. }
  55. <xsl:if test="$ui-browser = 'ns4'">
  56. document.captureEvents(Event.KEYDOWN)
  57. document.onKeyDown=wsrp_rewrite_returnHandler;
  58. function wsrp_rewrite_returnHandler(evnt) {
  59. if (evnt.which == 13) {
  60. wsrp_rewrite_doOK();
  61. return false;
  62. }
  63. return true;
  64. }
  65. </xsl:if>
  66. </script>
  67. <utml:form name="wsrp_rewrite_form" method="post" onkeydown="return wsrp_rewrite_keyPressed();">
  68. <utml:input type="hidden" name="edit_name" value="wsrp:help|edit" utml:update="false"/>
  69. <!-- Title and Links -->
  70. <table border="0" width="100%" cellspacing="0" cellpadding="0">
  71. <tr>
  72. <td class="portlet-msg-info" align="left" style="padding-left:5px;"><xts:string id="IDS_PRO_HTM_ABOUT_CPS"/></td>
  73. <td align="right">
  74. <a class="cognos-anchor" href="http://www.ibm.com/cognos/" target="_blank"><xts:string id="IDS_PRO_HTM_LINK_COGNOS_WEB"/></a>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td height="10" width="100%" colspan="2">
  79. <img height="10" width="1" alt="" src="{ $ui-producer-images }space.gif"/>
  80. </td>
  81. </tr>
  82. </table>
  83. <!-- Logo and Version -->
  84. <table border="0" cellpadding="0" cellspacing="0">
  85. <tr>
  86. <td height="30" width="30" style="padding-left:5px;" rowspan="2">
  87. <img src="{ $ui-producer-images }about.gif"/>
  88. </td>
  89. <td height="15" align="left" style="padding-left:10px;" class="portlet-font">
  90. <span class="portlet-form-field-label"><xts:string id="IDS_PRO_HTM_VERSION"/></span><xsl:text/>
  91. <xsl:text>&#160;</xsl:text>
  92. <xsl:value-of select="$version/@productMajor"/>.<xsl:value-of select="$version/@productMinor"/>
  93. <xsl:if test="$version/@isRelease = 'false'">
  94. <xsl:text> - </xsl:text>
  95. <xts:string id="IDS_PRO_HTM_RETAIL_TEXT"/>
  96. <xsl:text/>
  97. </xsl:if>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td align="left" style="padding-left:10px;" class="portlet-font"><xts:string id="IDS_PRO_GENERIC_PATENT"/></td>
  102. </tr>
  103. </table>
  104. <!-- Copyright -->
  105. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  106. <tr>
  107. <td colspan="3"><img height="10" width="1" alt="" src="{ $ui-producer-images }space.gif"/></td>
  108. </tr>
  109. <tr>
  110. <td width="45">
  111. <img height="10" width="45" alt="" src="{ $ui-producer-images }space.gif"/>
  112. </td>
  113. <td width="100%">
  114. <iframe style="width:100%;height:200px;margin:0px;" src="{$ui-webcontent}{$copyrights}" />
  115. </td>
  116. <td width="18">
  117. <img height="10" width="18" alt="" src="{ $ui-producer-images }space.gif"/>
  118. </td>
  119. </tr>
  120. </table>
  121. <!-- Legal Text -->
  122. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  123. <tr>
  124. <td height="10">
  125. <img height="10" width="1" alt="" src="{ $ui-producer-images }space.gif"/>
  126. </td>
  127. </tr>
  128. <tr class="portlet-section-text">
  129. <td class="portlet-font-dim" valign="middle" height="20" style="padding-left:5px;"><xts:string id="IDS_PRO_HTM_LEGAL_TEXT"/></td>
  130. </tr>
  131. <tr>
  132. <td height="10">
  133. <img height="10" width="1" alt="" src="{ $ui-producer-images }space.gif"/>
  134. </td>
  135. </tr>
  136. </table>
  137. <!-- Other -->
  138. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  139. <tr class="portlet-section-text">
  140. <td>
  141. <hr size="1"/>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td style="padding-left:5px;">
  146. <input type="button" class="portlet-form-button" onclick="javascript:wsrp_rewrite_doOK()">
  147. <xsl:attribute name="value"><xts:string id="IDS_PRO_CUI_BTN_OK"/></xsl:attribute>
  148. </input>
  149. </td>
  150. </tr>
  151. <xsl:if test="$display-versions = 'true'">
  152. <tr class="portlet-section-text">
  153. <td>&#160;</td>
  154. </tr>
  155. <xsl:if test="$ui-browser != 'ns4'">
  156. <tr id="wsrp_rewrite_link_components">
  157. <td class="cognos-help-link">
  158. <script language="javascript">
  159. function wsrp_rewrite_showComponents() {
  160. document.getElementById('wsrp_rewrite_components').style.visibility='visible';
  161. document.getElementById('wsrp_rewrite_link_components').style.display='none';
  162. }
  163. </script>
  164. <a class="cognos-anchor" href="javascript:wsrp_rewrite_showComponents()"><xts:string id="IDS_PRO_HTM_LINK_SHOW_COMPONENTS"/>
  165. <img height="12" width="12" border="0" src="{ $ui-producer-images }advanced_off.gif"/>
  166. </a>
  167. </td>
  168. </tr>
  169. </xsl:if>
  170. <tr>
  171. <td class="portlet-font">
  172. <div id="wsrp_rewrite_components">
  173. <xsl:if test="$ui-browser != 'ns4'">
  174. <xsl:attribute name="style">visibility: hidden</xsl:attribute>
  175. </xsl:if>
  176. <table cellpadding="2" cellspacing="0" border="1" width="100%">
  177. <xsl:call-template name="help-render-components">
  178. <xsl:with-param name="versions" select="/root/consumer/versions"/>
  179. <xsl:with-param name="type"><xts:string id="IDS_PRO_HTM_TYPE_CONSUMER"/></xsl:with-param>
  180. </xsl:call-template>
  181. <tr>
  182. <td colspan="3">
  183. <br/>
  184. </td>
  185. </tr>
  186. <xsl:call-template name="help-render-components">
  187. <xsl:with-param name="versions" select="/root/producer/versions"/>
  188. <xsl:with-param name="type"><xts:string id="IDS_PRO_HTM_TYPE_PRODUCER"/></xsl:with-param>
  189. </xsl:call-template>
  190. </table>
  191. </div>
  192. </td>
  193. </tr>
  194. </xsl:if>
  195. </table>
  196. </utml:form>
  197. </xsl:template>
  198. <xsl:template name="help-render-components">
  199. <xsl:param name="versions"/>
  200. <xsl:param name="type"/>
  201. <tr class="portlet-table-header">
  202. <td class="portlet-table-text" nowrap="nowrap"><b><xts:string id="IDS_PRO_HTM_COMPONENTS"><xts:param name="type"><xsl:value-of select="$type"/></xts:param></xts:string></b></td>
  203. <td class="portlet-table-text" nowrap="nowrap"><b><xts:string id="IDS_PRO_HTM_SPEC_DETAILS"/></b></td>
  204. <td class="portlet-table-text" nowrap="nowrap"><b><xts:string id="IDS_PRO_HTM_IMPL_DETAILS"/></b></td>
  205. </tr>
  206. <xsl:choose>
  207. <xsl:when test="$versions/component">
  208. <xsl:for-each select="$versions/component">
  209. <tr>
  210. <xsl:if test="position() mod 2 = 0">
  211. <xsl:attribute name="class">portlet-table-alternate</xsl:attribute>
  212. </xsl:if>
  213. <td valign="top" class="portlet-table-text">
  214. <xsl:value-of select="@name"/>
  215. </td>
  216. <xsl:call-template name="help-render-section">
  217. <xsl:with-param name="section-context" select="./specification"/>
  218. </xsl:call-template>
  219. <xsl:call-template name="help-render-section">
  220. <xsl:with-param name="section-context" select="./implementation"/>
  221. </xsl:call-template>
  222. </tr>
  223. </xsl:for-each>
  224. </xsl:when>
  225. <xsl:otherwise>
  226. <tr>
  227. <td colspan="3" class="portlet-msg-error" align="center">
  228. <br/>
  229. <span class="portlet-font-dim"><xts:string id="IDS_PRO_HTM_INFO_NOT_AVAILABLE"/></span>
  230. <br/>
  231. <br/>
  232. </td>
  233. </tr>
  234. </xsl:otherwise>
  235. </xsl:choose>
  236. </xsl:template>
  237. <xsl:template name="help-render-section">
  238. <xsl:param name="section-context"/>
  239. <td valign="top" class="portlet-table-text">
  240. <xsl:choose>
  241. <xsl:when test="$section-context">
  242. <xsl:value-of select="$section-context/title"/>
  243. <xsl:text>, </xsl:text>
  244. <xsl:value-of select="$section-context/vendor"/>
  245. <br/>
  246. <xsl:text>Version </xsl:text>
  247. <xsl:value-of select="$section-context/version"/>
  248. </xsl:when>
  249. <xsl:otherwise>
  250. <span class="portlet-font-dim"><xts:string id="IDS_PRO_HTM_NOT_APPLICABLE"/></span>
  251. </xsl:otherwise>
  252. </xsl:choose>
  253. </td>
  254. </xsl:template>
  255. </xsl:stylesheet>