123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?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).
- -->
- <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"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- exclude-result-prefixes="xsl pf xtsext xts">
- <xsl:output method="html" encoding="utf-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/root">
- <!-- hidden inputs needed for a stack down -->
- <xsl:if test="/root/env/param[starts-with(@name,'stack_')] != ''">
- <input type="hidden" name="ps_nav_op" value=""/>
- <xsl:for-each select="/root/env/param[starts-with(@name, 'stack_')]">
- <input type="hidden" name="{@name}" value="{.}"/>
- </xsl:for-each>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="key('env-param', 'visited_run_options_property')">
- <input type="hidden" name="visited_run_options_property">
- <xsl:attribute name="value"><xsl:value-of select="key('env-param', 'visited_run_options_property')"/></xsl:attribute>
- </input>
- </xsl:when>
- <xsl:when test="key('env-param', 'step_options_visited')">
- <input type="hidden" name="step_options_called" value="{/root/command/*/redirect}"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="hidden" name="backURL">
- <xsl:attribute name="value"><xsl:value-of select="key('env-param', 'backURL')"/></xsl:attribute>
- </input>
- </xsl:otherwise>
- </xsl:choose>
- <!-- round-trip the dispatcher tracking info -->
- <input type="hidden" name="m_tracking">
- <xsl:attribute name="value">
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), string(/root/encodedTracking))"/>
- </xsl:attribute>
- </input>
- <!-- pack up the UIconversation to be used in any secondary requests -->
- <xsl:if test="/root/encodedUIConversation">
- <input type="hidden" name="ui.conversation">
- <xsl:attribute name="value">
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), string(/root/encodedUIConversation))"/>
- </xsl:attribute>
- </input>
- </xsl:if>
- <!-- pack up the conversation to be used in any secondary requests -->
- <input type="hidden" name="web64conversation">
- <xsl:attribute name="value">
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), string(/root/encodedConversation))"/>
- </xsl:attribute>
- </input>
- <input type="hidden" name="m" value="{key('env-param', 'm')}"/>
- <input type="hidden" name="errURL">
- <xsl:attribute name="value"><xsl:value-of select="key('env-param','backURL')"/></xsl:attribute>
- </input>
- <input type="hidden" name="b_action" value="xts.run"/>
- <input type="hidden" name="ui.routingServerGroup">
- <xsl:choose>
- <xsl:when test="key('env-param','routingServerGroup')">
- <xsl:attribute name="value"><xsl:value-of select="key('env-param','routingServerGroup')"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="value"><xsl:value-of select="string(key('env-param','ui.routingServerGroup'))"/></xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- </input>
- <input type="hidden" name="method"/>
- <xsl:if test="/root/command/*/addToPromptingEnv">
- <xsl:for-each select="/root/command/*/addToPromptingEnv/*">
- <input type="hidden" name="{@name}" value="{string(.)}"/>
- </xsl:for-each>
- </xsl:if>
- <!-- These next two are required for prompting -->
- <input type="hidden" name="_promptControl"/>
- <input type="hidden" name="prompt"/>
- <!-- Remember any info from the calling page -->
- <xsl:variable name="adminState">
- <xsl:choose>
- <xsl:when test="key('env-param', 'adminState')">
- <xsl:value-of select="key('env-param', 'adminState')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), string(/root/encodedAdminState))"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <input type="hidden" name="adminState" value="{$adminState}"/>
- <!-- need to keep track of the cafcontextid if we're in a studio -->
- <xsl:if test="key('env-param','cafcontextid') != ''">
- <input type="hidden" name="cafcontextid" value="{key('env-param','cafcontextid')}"/>
- </xsl:if>
- <xsl:if test="/root/encodedParameters">
- <input type="hidden" name="encodedParameters">
- <xsl:attribute name="value">
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), string(/root/encodedParameters))"/>
- </xsl:attribute>
- </input>
- </xsl:if>
- <xsl:if test="/root/encodedRptSvcParam or key('env-param','encodedRptSvcParam')">
- <input type="hidden" name="encodedRptSvcParam">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="/root/encodedRptSvcParam">
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), string(/root/encodedRptSvcParam))"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('env-param','encodedRptSvcParam')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </input>
- </xsl:if>
- </xsl:template>
- </xsl:stylesheet>
|