1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: Viewer
- (C) Copyright IBM Corp. 2001, 2011
- US Government Users Restricted Rights - Use, duplication or
- disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/viewer.xml, messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseCognosViewer">
- <xts:block id="parseURL" path="rv/logicsheets/parseURL.xslt" type="exec" processor="XSLT" mandatory="false"/>
- <xts:block id="redirect" type="exec" mode="output" processor="XSLT" dependency="parseURL" mimeType="text/html" contentId="redirect" partId="1" mandatory="false" nodelist="env, http">
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xsl">
- <xsl:variable name="gateway" select="string(/root/http/param[@name='SCRIPT_NAME'])"/>
- <xsl:output method="html" encoding="utf-8" indent="no"/>
- <xsl:template match="/">
- <html>
- <head>
- <script language="javascript">
- function redirectToCognosViewerService()
- {
- var formWarpRequest = document.formWarpRequest;
- if(typeof formWarpRequest != "undefined" && formWarpRequest != null)
- {
- formWarpRequest.submit();
- }
- }
- </script>
- </head>
- <body onload="redirectToCognosViewerService();">
- <form action="{$gateway}" name="formWarpRequest" id="formWarpRequest" method="post" style="height:100%;margin:0px">
- <xsl:for-each select="/root/env/param[@name != 'b_action' and @name != 'm']">
- <input type="hidden">
- <xsl:attribute name="name"><xsl:value-of select="./@name"/></xsl:attribute>
- <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
- </input>
- </xsl:for-each>
- <input type="hidden" name="b_action" value="cognosViewer"/>
- <!--Todo:take defaulting the output format out when the viewer service can handle determining default output format -->
- <input type="hidden" name="run.outputFormat" value="HTML"/>
- </form>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Debug -->
- <xts:block id="debug" dependency="redirect" condition=".[ /root/session/param[@name='debug'] = '1' or /root/env/param[@name='ui.debug'] = 'true' ]"
- type="exec" mode="output" 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>
|