1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2019
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:prt="http://developer.cognos.com/schemas/xts/iPrompting/logicsheets/common"
- exclude-result-prefixes="xsl pf mt xts xtsext prt">
- <xsl:output method="html" encoding="utf-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/">
- <xsl:variable name="detailStatusIsPrompting" select="string(/root/response/*/*/*[contains(local-name(), 'Response')]/*[local-name()='result']/*[local-name()='details']/*[local-name()='item']/*[local-name()='status'])='prompting'"/>
- <head>
- <title>
- <xsl:value-of select="$product_name"/>
- </title>
- <meta http-equiv="MSThemeCompatible" content="no"/>
- <!-- Standard meta tags -->
- <pf:meta/>
- <!-- add the theme style sheet -->
- <mt:stylesheet/>
- <!-- add the stylesheet for the prompt controls-->
- <link href="{concat($skin_root, '/prompting/promptCommon.css')}" type="text/css" rel="stylesheet"/>
- <script language="javascript">
- var timerID = 0;
- function init() {
- <xsl:choose>
- <xsl:when test="((/root/resultStatus='conversationComplete' or /root/resultStatus='complete') and not($detailStatusIsPrompting)) and /root/command/*/*[local-name()='callFinish']='true'">
- if ( document.formWarpRequest ) {
- document.formWarpRequest.method.value = 'finish';
- document.formWarpRequest.submit();
- }
- </xsl:when>
- <xsl:otherwise>
- <!-- reset method when user uses browser back button -->
- if ( document.formWarpRequest ) {
- document.formWarpRequest.method.value = "<xsl:value-of select="xtsext:javascriptencode(string(key('env-param', 'method')))"/>";
- }
- if (window.history.length > 0)
- {
- if(document.progress)
- window.history.go(+1);
- }
- if (document.progress) {
- window.timerID = setTimeout(doWaitInit, 1500);
- }
- </xsl:otherwise>
- </xsl:choose>
- }
- <xsl:if test="not(((/root/resultStatus='conversationComplete' or /root/resultStatus='complete') and not($detailStatusIsPrompting)) and /root/command/*/*[local-name()='callFinish']='true')">
- function doWaitInit() {
- <!-- reset backURL and method when user uses browser back button -->
- if ( document.formWarpRequest ) {
- <!-- do a wait command -->
- document.formWarpRequest.method.value = 'wait';
- document.formWarpRequest.submit();
- setTimeout('document.progress.src="<xsl:value-of select="xtsext:javascriptencode(string($brand_images))"/>progress.gif"',1);
- }
- }
- <prt:javascripts/>
- </xsl:if>
- </script>
- <xsl:variable name="cmd-form" select="'dummy'"/>
- <!-- adds functions to launch the studios.... -->
- <!--These variables must be declared here since they are required by cookie_jar.js-->
- <script language="javascript">
- var sParamDelimiter = "<xsl:value-of select="xtsext:javascriptencode(string(key('system-param', 'delimiters')/@d1))"/>";
- var sNameValueDelimiter = "<xsl:value-of select="xtsext:javascriptencode(string(key('system-param', 'delimiters')/@d2))"/>";
- var sCookiePath = "<xsl:value-of select="xtsext:javascriptencode(string($cookie_path))"/>";
- var sCookieDomain = "<xsl:value-of select="xtsext:javascriptencode(string($cookie_domain))"/>";
- var sCookieSecure = "<xsl:value-of select="xtsext:javascriptencode(string($cookie_secure))"/>";
- </script>
- <script language="javascript" src="{$webcontent}/{$app}/js/cookie_jar.js"/>
- </head>
- </xsl:template>
- </xsl:stylesheet>
|