123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (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).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml">
- <!--
- This morphlet (about.xts) consists of the following blocks:
- formlogic_init - update various /root/env level parameters based on new or changed /root/env parameters.
- format - render the product about page.
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
- <xts:block id="format" dependency="formlogic_init" mode="output" processor="XSLT" type="exec" mimeType="text/html">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/centralabout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
-
- <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:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xts lyt pf dp df ca utml">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'about.xts'"/>
- <!-- add any theme variables -->
- <pf:variables/>
- <!-- get the version from the version file -->
- <xsl:variable name="version" select="document('version.xml')/version"/>
- <!-- start the output -->
- <xsl:template match="/root">
- <!-- get passed in parameters -->
- <xsl:variable name="prd" select="/root/env/param[@name = 'prd']"/>
- <xsl:variable name="fullprd" select="/root/env/param[@name = 'fullprd']"/>
- <xsl:variable name="browserTitle">
- <xsl:choose>
- <xsl:when test="$prd != ''"><xsl:value-of select="$prd"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_PORTAL"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="aboutTitle">
- <xsl:choose>
- <xsl:when test="$fullprd != ''"><xsl:value-of select="$fullprd"/></xsl:when>
- <xsl:when test="$prd != ''"><xsl:value-of select="$prd"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_ABOUT_PORTAL"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/> <!-- Standard meta tags -->
- </dp:meta>
- <dp:script>
- <pf:help context=""/> <!-- Help system -->
- </dp:script>
- <utml:form name="pform" method="post" action="{$gateway}">
- <!-- dialog header -->
- <dp:header help="false">
- <!-- header titles-->
- <dp:title showName="false">
- <xsl:value-of select="$browserTitle"/>
- </dp:title>
- <!-- header introduction -->
- <dp:description>
- <dp:descriptionText><xts:string id="IDS_ABOUT_CC"><xts:param name="portal"><xsl:value-of select="$aboutTitle"/></xts:param></xts:string></dp:descriptionText>
- <dp:descriptionLink><a target="_blank" href="http://www.ibm.com/cognos/"><xts:string id="IDS_ABOUT_COGNOS"/></a></dp:descriptionLink>
- </dp:description>
- <dp:close>
- <xsl:variable name="close"><xts:string id="IDS_CLOSE"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="key('env-param', 'backURL')">
- <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>
- </xsl:when>
- <xsl:otherwise>
- <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>
- </xsl:otherwise>
- </xsl:choose>
- </dp:close>
- </dp:header>
- <!-- body contents - linklist -->
- <ca:version>
- <dp:version>
- <xsl:value-of select="$version/@productMajor"/>.<xsl:value-of select="$version/@productMinor"/>
- </dp:version>
- <dp:versionText>
- <xsl:if test="$version/@isRelease='false'"><xts:string id="IDS_ABOUT_RESALE"/></xsl:if>
- </dp:versionText>
- </ca:version>
- <ca:trademark/>
- <ca:legal/>
- <dp:footer>
- <xsl:choose>
- <xsl:when test="key('env-param', 'backURL')"><df:button df:id="IDS_OK" df:style="back-url"/></xsl:when>
- <xsl:otherwise><df:button df:id="IDS_OK" df:style="href" df:href="javascript:history.back();"/></xsl:otherwise>
- </xsl:choose>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Debug -->
- <xts:block id="debug" type="exec" dependency="format" mode="output" condition=".[ /root/session/param[@name='debug'] = '1' ]" processor="XSLT" mandatory="false" mimeType="text/html" >
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <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">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <dbg:templates/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|