123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2013
- 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">
- <!--
- Fetch the data type of the document content we are about to download. Not required for reports.
- Formats for document types are in the form of application/....
- -->
- <xts:block id="decodeEncodedParams" processor="XSLT" type="exec" condition=".[/root/env/param[@name='webcompress']]" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xts pf xsl">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:variable name="passport" select="/root/credential/param[@name='CAM']/*[local-name() ='CAM']/*[local-name() = 'CAMPassport']/*[local-name() = 'id']"/>
- <xsl:template match="/">
- <xsl:variable name="xml-encoded-struct">
- <xsl:if test="string( /root/env/param[@name='webStruct'])!=''">
- <xsl:value-of select="xtsext:web64decode( xtsext:validator('verify', 'webStruct', string( /root/env/param[@name='webStruct'])), true())"/>
- </xsl:if>
- </xsl:variable>
- <xts:sequence>
- <xts:delete select="/root/env/param[@name='webStruct' or @name='m_name' or @name='backURL' or @name='m_download_obj' or @name='m_obj' or @name='webcompress']"/>
- <xsl:if test="/root/env/param[@name='webcompress']='true'">
- <xts:append select="/root/env">
- <xsl:choose>
- <xsl:when test="$xml-encoded-struct!=''">
- <xts:transform name="XMLDecode">
- <xsl:value-of select="$xml-encoded-struct"/>
- </xts:transform>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="string(/root/env/param[@name='m_name'])!=''">
- <param name="m_name">
- <xsl:value-of select="xtsext:web64decode(xtsext:validator('verify', 'm_name', string(/root/env/param[@name='m_name'])), true())"/>
- </param>
- </xsl:if>
- <xsl:if test="string(/root/env/param[@name='m_download_obj'])!=''">
- <param name="m_download_obj">
- <xsl:value-of select="xtsext:web64decode(xtsext:validator('verify', 'm_download_obj', string(/root/env/param[@name='m_download_obj'])), true())"/>
- </param>
- </xsl:if>
- <xsl:if test="string(/root/env/param[@name='m_obj'])!=''">
- <param name="m_obj">
- <xsl:value-of select="xtsext:web64decode(xtsext:validator('verify', 'm_obj', string(/root/env/param[@name='m_obj'])), true())"/>
- </param>
- </xsl:if>
- <xsl:if test="string(/root/env/param[@name='backURL'])!=''">
- <param name="backURL">
- <xsl:value-of select="xtsext:web64decode(xtsext:validator('verify', 'backURL', string(/root/env/param[@name='backURL'])), true())"/>
- </param>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block
- id="getMIMEType"
- processor="XSLT"
- type="exec"
- mandatory="false"
- nodelist="env, header"
- dependency="decodeEncodedParams"
- condition=".[not(/root/env/param[@name='session_had_expired'])]">
-
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- exclude-result-prefixes="xsl bus xts send cm">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <xsl:template match="/root">
-
- <!-- Define the path the document object to be downloaded -->
- <xsl:variable name="path">
- <xsl:choose>
- <xsl:when test="env/param[@name='m_download_obj']">
- <xsl:value-of select="env/param[@name='m_download_obj']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="env/param[@name='m_obj']"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:if test="$path != ''">
- <xts:sequence>
- <xts:append>
- <MIMEType>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search><xsl:value-of select="$path"/></cm:search>
- <cm:properties>
- <cm:property name="dataType"/>
- <cm:property name="dataSize"/>
- </cm:properties>
- <cm:options schemaInfo="false"/>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </MIMEType>
- </xts:append>
- </xts:sequence>
- </xsl:if>
-
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block
- id="getContent" type="exec" mode="interpret" processor="XSLT"
- dependency="getMIMEType decodeEncodedParams"
- condition=".[not(/root/env/param[@name='session_had_expired'])]">
-
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:out="http://www.w3.org/1999/XSL/Transform"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- exclude-result-prefixes="xsl xtsext send xos cm">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <pf:variables/>
- <xsl:template match="/root">
-
- <xsl:variable name="currentFormat" select="env/param[@name='format']"/>
- <!-- If we had to fetch a mime type then we must be dealling with a document object (as opposed to a report output) -->
- <xsl:variable name="isDocumentObj" select="/root/MIMEType//cm:documentContent"/>
- <xsl:variable name="noquestion" select="xtsext:replace(string(env/param[@name='m_name']),'?','_')"/>
- <xsl:variable name="noquote" select="xtsext:replace(string($noquestion),'"','_')"/>
- <xsl:variable name="noast" select="xtsext:replace(string($noquote),'*','_')"/>
- <xsl:variable name="nolt" select="xtsext:replace(string($noast),'<','_')"/>
- <xsl:variable name="nogt" select="xtsext:replace(string($nolt),'>','_')"/>
- <xsl:variable name="nobs" select="xtsext:replace(string($nogt),'\','_')"/>
- <xsl:variable name="nofs" select="xtsext:replace(string($nobs),'/','_')"/>
- <xsl:variable name="nocol" select="xtsext:replace(string($nofs),':','_')"/>
- <xsl:variable name="nobar" select="xtsext:replace(string($nocol),'|','_')"/>
-
- <!-- Set references to lookup (config) tables for report and document objects -->
- <!-- Report format lookup table -->
- <xsl:variable name="reportFormats" select="key('system-param', 'reportFormats')"/>
- <!-- Document format lookup table -->
- <xsl:variable name="documentFormats" select="key('system-param', 'documentFormats')"/>
- <!-- InteractiveReport -->
- <xsl:variable name="isInteractiveOutput" select="starts-with(string(MIMEType/*/cm:output/cm:dataType),'message/rfc822')"/>
- <!-- Only set the variable when we are handling a document object -->
- <xsl:variable name="documentObjectDataType">
- <xsl:if test="$isDocumentObj">
- <xsl:value-of select="MIMEType/*/cm:documentContent/cm:dataType"/>
- </xsl:if>
- </xsl:variable>
- <!-- Only set the variable when we are handling interactive output -->
- <xsl:variable name="interactiveDataType">
- <xsl:if test="$isInteractiveOutput">
- <xsl:value-of select="MIMEType/*/cm:output/cm:dataType"/>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="downloadObjectDataSize" select="MIMEType//cm:dataSize"/>
-
- <!-- File Extension -->
- <!-- ============================================= -->
- <!-- Decide what the file extension is. -->
- <xsl:variable name="fileext">
-
- <xsl:choose>
- <!-- See if a mime/extension is defined for the data type of the documentContent object -->
- <xsl:when test="$isDocumentObj">
- <xsl:choose>
- <!--
- For document objects, the extension is strictly obtained from configuration lookup table. If it is not there then leave it empty.
- We have to assume that the extension is part of the CM name.
- -->
- <xsl:when test="$documentFormats/format[@id = $documentObjectDataType]/@extension">
- <xsl:value-of select="$documentFormats/format[@id = $documentObjectDataType]/@extension"/>
- </xsl:when>
- <!-- Get the configured extension based on the type of the document object. If none exists then leave blank. -->
- <xsl:otherwise>
- <xsl:value-of select="$documentFormats/format[@id = $currentFormat]/@extension"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <!-- Lookup configured file extension based on report type -->
- <xsl:when test="string($reportFormats/format[@id = $currentFormat]/@extension)!=''">
- <!-- We are dealing with a report and we have successfully found a configured extension for the given report format. -->
- <xsl:value-of select="$reportFormats/format[@id = $currentFormat]/@extension"/>
- </xsl:when>
- <!-- No configured extension for the given report format. Look one up in a list of hard-coded defaults. -->
- <xsl:otherwise>
- <xsl:call-template name="getDefaultFileExt">
- <xsl:with-param name="format" select="$currentFormat"/>
- <xsl:with-param name="useInteractiveExt" select="$isInteractiveOutput"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <!-- File Name -->
- <!-- ============================================= -->
- <!-- Determine if the existing cm name already ends with an extension that we are about to append on -->
- <xsl:variable name="cmNameLength" select="string-length($nobar)"/>
- <xsl:variable name="extLength" select="string-length(concat('.', $fileext))"/>
- <xsl:variable name="endsWithExt" select="substring($nobar, (($cmNameLength - $extLength) + 1), $extLength) = concat('.', $fileext)"/>
-
- <!-- Assemble the file name to be sent back in the http response -->
- <xsl:variable name="filename">
- <xsl:choose>
- <xsl:when test="$browser='ie'"><xsl:value-of select="xtsext:urlencode($nobar)"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$nobar"/></xsl:otherwise>
- </xsl:choose>
- <!-- Unless the CM filename has an extension already, append the appropriate extension. -->
- <xsl:if test="($fileext != '') and not($endsWithExt)">
- <xsl:value-of select="concat('.', $fileext)"/>
- </xsl:if>
- </xsl:variable>
-
-
- <!-- If a specific MIME type is specified then use it. -->
- <xsl:variable name="MIMEType">
- <xsl:choose>
- <!--
- If this is a document object then use the dataType stored in the documentContent as a mime - provided it is not empty.
- If this is interactive output then use the stored dataType - using an explicitly configured mime type may cause downloads to fail.
- Otherwise let it default to 'application/octet-stream' below.
- -->
- <xsl:when test="$documentObjectDataType != ''">
- <xsl:value-of select="$documentObjectDataType"/>
- </xsl:when>
- <!-- For report objects, see if an explicit mime type is defined in the list of enumerated reports in PS. If yes then use it. -->
- <xsl:when test="string($reportFormats/format[@id = $currentFormat]/@mime) != ''">
- <xsl:value-of select="$reportFormats/format[@id = $currentFormat]/@mime"/>
- </xsl:when>
- <xsl:when test="$interactiveDataType != ''">
- <xsl:value-of select="$interactiveDataType"/>
- </xsl:when>
- <!-- Special format that this download supports but is not recognized as a stand-alone object format -->
- <xsl:when test="$currentFormat = 'png'">
- <xsl:value-of select="'image/png'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'application/octet-stream'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="objectPath">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_download_obj']">
- <xsl:value-of select="env/param[@name='m_download_obj']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="env/param[@name='m_obj']"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="compress" select="boolean(contains(http/param[@name='HTTP_ACCEPT_ENCODING'], 'gzip') and $currentFormat != 'PDF')"/>
- <xts:sequence>
- <xts:append select="/root/output">
- <send:request provider="cm" option="xml-part">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search><xsl:value-of select="$objectPath"/></cm:search>
- <cm:properties>
- <cm:property name="data"/>
- </cm:properties>
- <xsl:choose>
- <xsl:when test="$compress">
- <cm:options dataEncoding="MIMECompressed"/>
- </xsl:when>
- <xsl:otherwise>
- <cm:options dataEncoding="MIME"/>
- </xsl:otherwise>
- </xsl:choose>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:append>
-
- <xts:replace select="/root/output/*[local-name() = 'part']/*[local-name() = 'entityHeader']">
- <xos:entityHeader>
- <xsl:if test="$compress">
- <xos:param name="Content-Encoding">gzip</xos:param>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$isInteractiveOutput">
- <xsl:choose>
- <xsl:when test="$browser != 'ie'">
- <xos:param name="Cache-Control">no-cache, no-store</xos:param>
- <xos:param name="Pragma">no-cache</xos:param>
- </xsl:when>
- </xsl:choose>
- <xos:param name="Expires">Thu, 01 Jan 1970 00:00:00 GMT</xos:param>
- <xos:param name="Content-Type"><xsl:value-of select="$MIMEType"/></xos:param>
- <xos:param name="Content-Length"><xsl:value-of select="$downloadObjectDataSize"/></xos:param>
- <xos:param name="Content-Disposition">attachment; filename="<xsl:value-of select="string($filename)"/>"</xos:param>
- </xsl:when>
- <xsl:otherwise>
- <xos:param name="Content-Type"><xsl:value-of select="$MIMEType"/></xos:param>
- <xos:param name="Content-Disposition">attachment; filename="<xsl:value-of select="string($filename)"/>"</xos:param>
- </xsl:otherwise>
- </xsl:choose>
- </xos:entityHeader>
- </xts:replace>
- </xts:sequence>
- <!-- log to IPF -->
- <xts:sequence>
- <xts:append>
- <log>
- <xts:function name="ipflog">
- <xts:param name="indication">Audit.RTUsage</xts:param>
- <xts:param name="level">3</xts:param>
- <xts:param name="logData"><param><xsl:value-of select="xtsext:xmlencode(string(key('env-param', 'm_name')))"/></param></xts:param>
- <xts:param name="operation">VIEW</xts:param>
- <xts:param name="objectPath"><xsl:value-of select="key('env-param', 'm_obj')"/></xts:param>
- <xts:param name="objectType">
- <xsl:choose>
- <xsl:when test="contains(key('env-param', 'm_obj'), 'reportView')">REPORTVIEW</xsl:when>
- <xsl:when test="contains(key('env-param', 'm_obj'), 'query')">QUERY</xsl:when>
- <xsl:when test="key('env-param', 'm_class') = 'document'">COCDOCUMENT</xsl:when>
- <xsl:otherwise>REPORT</xsl:otherwise>
- </xsl:choose>
- </xts:param>
- <xts:param name="status">Success</xts:param>
- </xts:function>
- </log>
- </xts:append>
- </xts:sequence>
- </xsl:template>
-
- <!-- Default file extensions in case the ones in the -->
- <xsl:template name="getDefaultFileExt">
- <xsl:param name="format"/>
- <xsl:param name="useInteractiveExt" select="false()"/>
- <xsl:choose>
- <xsl:when test="$format = 'CSV'">csv</xsl:when>
- <xsl:when test="$format = 'PDF'">pdf</xsl:when>
- <xsl:when test="$format = 'XML'">xml</xsl:when>
- <xsl:when test="$format = 'HTML'">
- <xsl:choose>
- <xsl:when test="$useInteractiveExt">mht</xsl:when>
- <xsl:otherwise>html</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$format = 'XHTML'">
- <xsl:choose>
- <xsl:when test="$useInteractiveExt">mht</xsl:when>
- <xsl:otherwise>xhtml</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$format = 'XLWA'">mht</xsl:when>
- <xsl:when test="$format = 'spreadsheetML' or $format='xlsxData'">xlsx</xsl:when>
- <xsl:when test="$format = 'spreadsheetMLOfficeConnectionEnabled'">xlsx</xsl:when>
- <xsl:when test="$format = 'singleXLS'">xls</xsl:when>
- <xsl:when test="$format = 'png'">png</xsl:when>
- </xsl:choose>
- </xsl:template>
-
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="redirect" mode="output" processor="XSLT" type="exec" mimeType="text/html"
- condition=".[/root/env/param[@name='session_had_expired']]"
- dependency="">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- exclude-result-prefixes="xsl pf xts xtsext dp">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <pf:variables/>
- <xsl:template match="/root">
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_COGNOS_REPORTS"/>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <head>
- <pf:meta/><!-- Standard meta tags -->
- <title><xts:string id="IDS_PORTAL"/></title>
- <pf:help context="HID_DOWNLOAD"/><!-- Help system -->
- <script language="javascript">
- function goHome()
- {
- document.location.href = "<xsl:value-of select="xtsext:javascriptencode($gateway)"/>?<xsl:value-of select="xtsext:javascriptencode(key('system-param', 'COGNOSHome'))"/>";
- }
- function init()
- {
- setTimeout('download.submit()',5);
- }
- function closePage()
- {
- var emptyHistoryThreshold = <xsl:choose><xsl:when test="$browser = 'ie'">0</xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose>;
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name='backURL']) != ''">
- document.location.href = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='backURL']))"/>";
- </xsl:when>
- <xsl:otherwise> <!-- No BackURL provided -->
- // try to go back in history if we can
- if ( history.length > emptyHistoryThreshold )
- history.back();
- // try to close a win32 window if we appear inside of one
- else if (window.external && window.external.HasOnClose)
- window.external.OnClose(1);
- // close the browser window
- else
- window.close();
- </xsl:otherwise>
- </xsl:choose>
- }
- </script>
- </head>
- <dp:header>
- <!-- header titles-->
- <dp:title showName="false">
- <xsl:value-of select="$browserTitle"/>
- </dp:title>
- <!-- header introduction -->
- <dp:close>
- <xsl:variable name="close"><xts:string id="IDS_CLOSE"/></xsl:variable>
- <a href="javascript:closePage();"><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>
- </dp:close>
- </dp:header>
- <form name="download" id="download" action="{$gateway}">
- <xsl:for-each select="/root/env/param[@name != 'session_had_expired']">
- <input type="hidden" name="{@name}" value="{.}"/>
- </xsl:for-each>
- </form>
- <mt:errorMessage>
- <xts:string id="IDS_DLD_ERR_PASSPORT_EXPIRED_INFO"/>
- <xsl:variable name="action">
- <a href="javascript:goHome()">
- <xts:string id="IDS_DLD_ERR_PASSPORT_EXPIRED_REDIRECT_TO_CC"/>
- </a>
- </xsl:variable>
-
- <br/>
-
- <xts:string id="IDS_DLD_ERR_PASSPORT_EXPIRED_ACTION">
- <xts:param name="pageAction">
- <xsl:copy-of select="$action"/>
- </xts:param>
- </xts:string>
- </mt:errorMessage>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="setUpMessage" dependency="getContent" condition=".[not(/root/output/*[local-name() = 'part']) and not(/root/env/param[@name='session_had_expired'])]" type="exec" processor="XSLT">
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/root">
- <xts:sequence>
- <xts:append>
- <displayMessage>
- <backURL><xsl:value-of select="/root/env/param[@name='backURL']"/></backURL>
- <message><xts:string id="IDS_DLD_ERR_OUPUT_NOT_EXIST"/></message>
- </displayMessage>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="displayMessage" dependency="setUpMessage" condition=".[not(/root/output/*[local-name() = 'part']) and not(/root/env/param[@name='session_had_expired'])]" mandatory="false" mode="output" processor="XSLT" type="exec" mimeType="text/html" path="portal/display_message.xslt">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- </xts:block>
-
- </xts:morphlet>
|