123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cpscrn
- (C) Copyright IBM Corp. 2005, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <!-- $Header: //cpscrn/main/templates/cps4/producer/wsrp-impl/transforms/display-about.xslt#1 $ -->
- <!-- $DateTime: 2008/10/22 11:12:04 $ -->
- <!-- $Change: 25109 $ -->
- <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">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <utml:variables/>
- <!-- create browser variable: $ui-browser -->
- <ui:browser/>
- <!-- create portal variable: $ui-consumer-info -->
- <ui:consumer/>
- <xsl:variable name="display-versions" select="$ui-mode = 'cps:config'"/>
- <xsl:variable name="link-separator" select="/root/portlet/consumer/layout/linkSeparator"/>
- <xsl:variable name="copyrights" select="$ui-configuration[@name='cps2.platform']/platform/help/copyrightFile"/>
- <xsl:variable name="version" select="document('version.xml')/version"/>
- <xsl:template match="/">
- <xsl:call-template name="render-content"/>
- </xsl:template>
- <xsl:template name="render-content">
- <ui:copyright/>
- <script language="javascript">
- function wsrp_rewrite_doOK() {
- <xsl:choose>
- <xsl:when test="key('utml-key-params', 'edit_stack')">
- <utml:form-submit utml:formName="wsrp_rewrite_form" utml:operation="pop" utml:validate="false"/>
- </xsl:when>
- <xsl:when test="$ui-window-state = 'wsrp:solo'">
- window.close();
- </xsl:when>
- <xsl:otherwise>
- window.history.back();
- </xsl:otherwise>
- </xsl:choose>
- }
- function wsrp_rewrite_keyPressed() {
- <xsl:if test="$ui-browser = 'ie' or $ui-browser = 'moz'">
- // 13 is the "Enter" key
- if (13 == event.keyCode) {
- wsrp_rewrite_doOK();
- event.returnValue = false;
- }
- </xsl:if>
- return true;
- }
- <xsl:if test="$ui-browser = 'ns4'">
- document.captureEvents(Event.KEYDOWN)
- document.onKeyDown=wsrp_rewrite_returnHandler;
- function wsrp_rewrite_returnHandler(evnt) {
- if (evnt.which == 13) {
- wsrp_rewrite_doOK();
- return false;
- }
- return true;
- }
- </xsl:if>
- </script>
- <utml:form name="wsrp_rewrite_form" method="post" onkeydown="return wsrp_rewrite_keyPressed();">
- <utml:input type="hidden" name="edit_name" value="wsrp:help|edit" utml:update="false"/>
- <!-- Title and Links -->
- <table border="0" width="100%" cellspacing="0" cellpadding="0">
- <tr>
- <td class="portlet-msg-info" align="left" style="padding-left:5px;"><xts:string id="IDS_PRO_HTM_ABOUT_CPS"/></td>
- <td align="right">
- <a class="cognos-anchor" href="http://www.ibm.com/cognos/" target="_blank"><xts:string id="IDS_PRO_HTM_LINK_COGNOS_WEB"/></a>
- </td>
- </tr>
- <tr>
- <td height="10" width="100%" colspan="2">
- <img height="10" width="1" alt="" src="{ $ui-producer-images }space.gif"/>
- </td>
- </tr>
- </table>
- <!-- Logo and Version -->
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="30" width="30" style="padding-left:5px;" rowspan="2">
- <img src="{ $ui-producer-images }about.gif"/>
- </td>
- <td height="15" align="left" style="padding-left:10px;" class="portlet-font">
- <span class="portlet-form-field-label"><xts:string id="IDS_PRO_HTM_VERSION"/></span><xsl:text/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="$version/@productMajor"/>.<xsl:value-of select="$version/@productMinor"/>
- <xsl:if test="$version/@isRelease = 'false'">
- <xsl:text> - </xsl:text>
- <xts:string id="IDS_PRO_HTM_RETAIL_TEXT"/>
- <xsl:text/>
- </xsl:if>
- </td>
- </tr>
- <tr>
- <td align="left" style="padding-left:10px;" class="portlet-font"><xts:string id="IDS_PRO_GENERIC_PATENT"/></td>
- </tr>
- </table>
- <!-- Copyright -->
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="3"><img height="10" width="1" alt="" src="{ $ui-producer-images }space.gif"/></td>
- </tr>
- <tr>
- <td width="45">
- <img height="10" width="45" alt="" src="{ $ui-producer-images }space.gif"/>
- </td>
- <td width="100%">
- <iframe style="width:100%;height:200px;margin:0px;" src="{$ui-webcontent}{$copyrights}" />
- </td>
- <td width="18">
- <img height="10" width="18" alt="" src="{ $ui-producer-images }space.gif"/>
- </td>
- </tr>
- </table>
- <!-- Legal Text -->
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="10">
- <img height="10" width="1" alt="" src="{ $ui-producer-images }space.gif"/>
- </td>
- </tr>
- <tr class="portlet-section-text">
- <td class="portlet-font-dim" valign="middle" height="20" style="padding-left:5px;"><xts:string id="IDS_PRO_HTM_LEGAL_TEXT"/></td>
- </tr>
- <tr>
- <td height="10">
- <img height="10" width="1" alt="" src="{ $ui-producer-images }space.gif"/>
- </td>
- </tr>
- </table>
- <!-- Other -->
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr class="portlet-section-text">
- <td>
- <hr size="1"/>
- </td>
- </tr>
- <tr>
- <td style="padding-left:5px;">
- <input type="button" class="portlet-form-button" onclick="javascript:wsrp_rewrite_doOK()">
- <xsl:attribute name="value"><xts:string id="IDS_PRO_CUI_BTN_OK"/></xsl:attribute>
- </input>
- </td>
- </tr>
- <xsl:if test="$display-versions = 'true'">
- <tr class="portlet-section-text">
- <td> </td>
- </tr>
- <xsl:if test="$ui-browser != 'ns4'">
- <tr id="wsrp_rewrite_link_components">
- <td class="cognos-help-link">
- <script language="javascript">
- function wsrp_rewrite_showComponents() {
- document.getElementById('wsrp_rewrite_components').style.visibility='visible';
- document.getElementById('wsrp_rewrite_link_components').style.display='none';
- }
- </script>
- <a class="cognos-anchor" href="javascript:wsrp_rewrite_showComponents()"><xts:string id="IDS_PRO_HTM_LINK_SHOW_COMPONENTS"/>
- <img height="12" width="12" border="0" src="{ $ui-producer-images }advanced_off.gif"/>
- </a>
- </td>
- </tr>
- </xsl:if>
- <tr>
- <td class="portlet-font">
- <div id="wsrp_rewrite_components">
- <xsl:if test="$ui-browser != 'ns4'">
- <xsl:attribute name="style">visibility: hidden</xsl:attribute>
- </xsl:if>
- <table cellpadding="2" cellspacing="0" border="1" width="100%">
- <xsl:call-template name="help-render-components">
- <xsl:with-param name="versions" select="/root/consumer/versions"/>
- <xsl:with-param name="type"><xts:string id="IDS_PRO_HTM_TYPE_CONSUMER"/></xsl:with-param>
- </xsl:call-template>
- <tr>
- <td colspan="3">
- <br/>
- </td>
- </tr>
- <xsl:call-template name="help-render-components">
- <xsl:with-param name="versions" select="/root/producer/versions"/>
- <xsl:with-param name="type"><xts:string id="IDS_PRO_HTM_TYPE_PRODUCER"/></xsl:with-param>
- </xsl:call-template>
- </table>
- </div>
- </td>
- </tr>
- </xsl:if>
- </table>
- </utml:form>
- </xsl:template>
- <xsl:template name="help-render-components">
- <xsl:param name="versions"/>
- <xsl:param name="type"/>
- <tr class="portlet-table-header">
- <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>
- <td class="portlet-table-text" nowrap="nowrap"><b><xts:string id="IDS_PRO_HTM_SPEC_DETAILS"/></b></td>
- <td class="portlet-table-text" nowrap="nowrap"><b><xts:string id="IDS_PRO_HTM_IMPL_DETAILS"/></b></td>
- </tr>
- <xsl:choose>
- <xsl:when test="$versions/component">
- <xsl:for-each select="$versions/component">
- <tr>
- <xsl:if test="position() mod 2 = 0">
- <xsl:attribute name="class">portlet-table-alternate</xsl:attribute>
- </xsl:if>
- <td valign="top" class="portlet-table-text">
- <xsl:value-of select="@name"/>
- </td>
- <xsl:call-template name="help-render-section">
- <xsl:with-param name="section-context" select="./specification"/>
- </xsl:call-template>
- <xsl:call-template name="help-render-section">
- <xsl:with-param name="section-context" select="./implementation"/>
- </xsl:call-template>
- </tr>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td colspan="3" class="portlet-msg-error" align="center">
- <br/>
- <span class="portlet-font-dim"><xts:string id="IDS_PRO_HTM_INFO_NOT_AVAILABLE"/></span>
- <br/>
- <br/>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="help-render-section">
- <xsl:param name="section-context"/>
- <td valign="top" class="portlet-table-text">
- <xsl:choose>
- <xsl:when test="$section-context">
- <xsl:value-of select="$section-context/title"/>
- <xsl:text>, </xsl:text>
- <xsl:value-of select="$section-context/vendor"/>
- <br/>
- <xsl:text>Version </xsl:text>
- <xsl:value-of select="$section-context/version"/>
- </xsl:when>
- <xsl:otherwise>
- <span class="portlet-font-dim"><xts:string id="IDS_PRO_HTM_NOT_APPLICABLE"/></span>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </xsl:template>
- </xsl:stylesheet>
|