123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?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/">
- <xts:block id="redirect" type="exec" mode="output" processor="XSLT" mimeType="text/html" contentId="redirect" partId="1" mandatory="false" nodelist="">
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xsl">
- <xsl:output method="html" encoding="utf-8" indent="no"/>
- <xsl:variable name="gateway" select="string(/root/http/param[@name='SCRIPT_NAME'])"/>
- <xsl:variable name="app" select="string(/root/system/param[@name='app'])"/>
- <xsl:output method="html" encoding="utf-8" indent="no"/>
- <xsl:template match="/">
- <html>
- <head>
- <script language="javascript">
- function redirectToCCDrillThrough()
- {
- var pForm = document.pform;
- if(typeof pForm != "undefined" && pForm != null)
- {
- pForm.submit();
- }
- }
- </script>
- </head>
- <body onload="redirectToCCDrillThrough();">
- <form action="{$gateway}" name="pform" id="pform" 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="m" value="{$app}/cc_drillthrough.xts"/>
- <input type="hidden" name="b_action" value="xts.run"/>
- </form>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|