123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- *****************************************************************
- ** Licensed Materials - Property of IBM
- **
- ** BI and PM: qs
- **
- ** (C) Copyright IBM Corp. 2001, 2017
- **
- ** 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 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">
- <!--
- 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"/>
- <xts:block id="format" dependency="formlogic_init" mode="output" processor="XSLT" type="exec" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="qs/logicsheets/dialogIncludes.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: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">
- <xsl:import href="qs/logicsheets/markupTemplates.xsl"/>
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- 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="qsWebRoot" select="/root/env/param[@name = 'qsWebRoot']"/>
- <dp:page>
- <dp:script>
- <qsdialog:headerIncludes dlgSize="407" featureName="About"/>
- </dp:script>
- <form style="margin:0px" name="f" method="POST" onsubmit="return false;">
- <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
- <tr>
- <td width="100%" height="0%">
- <!-- dialog header -->
- <dp:header help="false">
- <dp:close>
- <a>
- <xsl:attribute name="href">javascript:goDialogManager.getWindowManager().hideDialogFrame()</xsl:attribute>
- <dp:closeMarker/>
- </a>
- </dp:close>
- <!-- header titles -->
- <dp:title>
- <xts:string id="QUERY_STUDIO_WINDOW_TITLE"/>
- </dp:title>
- </dp:header>
- </td>
- </tr>
- <tr>
- <td width="100%" height="100%" valign="top">
- <img>
- <xsl:choose>
- <xsl:when test="/root/user/param[@name='productLocale']!= 'en'">
- <xsl:variable name="imageName" select="concat('/images/qs_about_box_',/root/user/param[@name='productLocale'],'.jpg')"/>
- <xsl:attribute name="src"><xsl:value-of select="$qsWebRoot"/><xsl:value-of select="$imageName"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="src"><xsl:value-of select="$qsWebRoot"/>/images/qs_about_box_en.jpg</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:attribute name="alt"><xts:string id="IDS_PROP_LEGAL"/></xsl:attribute>
- <xsl:attribute name="onError">this.src='<xsl:value-of select="$qsWebRoot"/>/images/qs_about_box_en.jpg'</xsl:attribute>
- </img>
- </td>
- </tr>
- <tr>
- <td width="100%" height="0%">
- <dp:footer>
- <df:button df:id="IDS_OK" df:style="href" df:href="javascript:goDialogManager.getWindowManager().hideDialogFrame();" df:defaultKey="active"/>
- </dp:footer>
- </td>
- </tr>
- </table>
- </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="xsl 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>
|