123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561 |
- <?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.
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml">
-
- <xts:block id="formatPrompt" mode="output" processor="XSLT" type="exec" mimeType="text/html"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.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/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:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:fault="http://developer.cognos.com/schemas/xts/portal/iFaultHandler/1/"
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:faults="http://www.w3.org/2001/09/soap-faults"
- xmlns:cam="http://developer.cognos.com/schemas/CAM/AAA/1/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- 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 bus fault SOAP-ENV faults cam xtsext df dp cp lyt pf xsi xts">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
-
- <!-- Global variable definitions -->
- <xsl:variable name="mname" select="'prompt.xts'"/>
- <pf:variables/>
- <pf:modalVariables/>
- <xsl:variable name="prompt-action" select="/root/header/*/Prompt//item[name='h_promptAction']/value"/>
- <xsl:variable name="verifyTextNoEcho" select="//*[local-name() = 'type' and . = 'verifytextnoecho']/../*[local-name()= 'name']"/>
-
- <xsl:variable name="title">
- <xsl:choose>
- <xsl:when test="string($prompt-action) = 'AmbigiousDataSourceConnection'"><xts:string id="IDS_AMBIGIOUS_DATASOURCECONNECTION"/></xsl:when>
- <xsl:when test="string($prompt-action) = 'AmbigiousSignon'"><xts:string id="IDS_AMBIGIOUS_SIGNONS"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_LOGON_TITLE"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="browserTitle">
- <xsl:choose>
- <xsl:when test="string($prompt-action) = 'AmbigiousDataSourceConnection'"><xts:string id="IDS_AMBIGIOUS_DATASOURCECONNECTION"/></xsl:when>
- <xsl:when test="string($prompt-action) = 'AmbigiousSignon'"><xts:string id="IDS_AMBIGIOUS_SIGNONS"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_LOGON_TITLE_BROWSER"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="externalBack">
- <xsl:if test="/root/env/param[@name='BACK'] or /root/env/param[@name='back']">
- <xsl:value-of select="concat(string(/root/env/param[@name='BACK']),string(/root/env/param[@name='back']))"/>
- </xsl:if>
- </xsl:variable>
-
-
- <!-- Prefix field names with o_ based on defined condition variables -->
- <xsl:variable name="formFieldPrefix">
- <xsl:variable name="faultFieldVars" select="/root/command//*[local-name()='fault']//*[local-name()='Header']//*[local-name() = 'formFieldVars']"/>
- <xsl:variable name="faultOriginalRequest" select="/root/command//*[local-name()='originalRequest']"/>
- <!-- Variables required to set the formFieldPrefix -->
- <!-- These condition variables are based on condition checks done during the apply templates to determine if re-routing to main.xts, -->
- <!-- in which case all active form fields require a prefix - otherwise main.xts removes them before redirecting. -->
- <xsl:variable name="mItem" select="$faultFieldVars/*[local-name()='item']/*[local-name()='name' and .='m']"/>
- <xsl:variable name="doingRedirect" select="string($mItem)!='' and not(contains(string($mItem/../*[local-name()='value']),concat($app,'/main.xts'))) and string(/root/command//item[name='REQUEST_METHOD']/value)!=''"/>
- <xsl:variable name="hasNoBody" select="not($faultOriginalRequest//*[local-name()='Envelope']/*[local-name()='Body']/*)"/>
- <xsl:variable name="isNoWaiting" select="not($faultOriginalRequest//*[local-name()='item']/*[local-name()='name' and .='ui.action']/../*[local-name()='value' and .='wait'])"/>
- <xsl:variable name="hasFields" select="$faultFieldVars/*"/>
- <xsl:if test="($isNoWaiting and $hasFields) and $hasNoBody and $doingRedirect">
- <xsl:text>o_</xsl:text>
- </xsl:if>
- </xsl:variable>
-
- <!-- Main template -->
- <xsl:template match="/root">
- <!-- transform the fault to html -->
- <xsl:apply-templates select="command/fault:prompt"/>
- </xsl:template>
-
-
- <!-- html output -->
- <xsl:template match="command/fault:prompt">
-
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle" cache="false">
- <dp:meta>
- <pf:meta/>
- </dp:meta>
- <dp:script>
- <xsl:comment>
- <xsl:text><ERROR_CODE>CAM_PASSPORT_ERROR</ERROR_CODE></xsl:text>
- </xsl:comment>
-
- <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"/>
- <script language="javascript">
- function init()
- {
- <!-- Give focus to the first visible control -->
- var nFormFields = document.pform.elements.length;
- for (var i=0; i<nFormFields; i++)
- {
- if( document.pform.elements[i].type != 'hidden' )
- {
- //Handle a timing error in IE which can prevent setting the focus
- setTimeout('document.pform.elements[' + i + '].focus()',1);
- break;
- }
- }
-
- return true;
- }
-
- function doClose()
- {
- doCloseCancel('close');
- }
-
- function doCancel()
- {
- doCloseCancel('cancel');
- }
-
- function doCloseCancel(event)
- {
- var emptyHistoryThreshold = <xsl:choose><xsl:when test="$browser = 'ie'">0</xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose>;
- <xsl:choose>
- <xsl:when test="$externalBack!=''">
- setTimeout("document.location.href = '<xsl:value-of select="xtsext:javascriptencode(xtsext:javascriptencode(string($externalBack)))"/>'",100); <!-- SEC_INFO: Double javascript encode $externalBack to prevent javascript injection. -->
- </xsl:when>
- <xsl:when test="$isModal">
- <!-- Set the right call back target -->
- var callBackTarget = <xsl:value-of select="$callBackTargetJSVar"/>;
-
- if( callBackTarget )
- {
- callBackTarget.<xsl:value-of select="$callBackFunctionName"/>(event, null);
- }
- </xsl:when>
- <xsl:when test="$prompt-action!=''">
- if( parent && parent.closeErrorPage )
- parent.closeErrorPage();
- else if (window.external && window.external.HasOnClose)
- window.external.OnClose(1);
- else if ( history.length > emptyHistoryThreshold )
- {
- document.cform.submit();
- }
- else
- window.close();
- </xsl:when>
- <xsl:otherwise>
- if( parent && parent.closeErrorPage )
- parent.closeErrorPage();
- else if (window.external && window.external.HasOnClose)
- window.external.OnClose(1);
- else if ( history.length > emptyHistoryThreshold )
- history.back();
- else
- window.close();
- </xsl:otherwise>
- </xsl:choose>
- }
-
- function validate()
- {
- <!-- Only care to validate a password change. If that is the case then do it, otherwise, return true. -->
- var sVerifyTextNoEcho = "<xsl:value-of select="$verifyTextNoEcho"/>";
- if (document.pform.elements[sVerifyTextNoEcho])
- {
- if (document.pform.elements[sVerifyTextNoEcho][0].value != document.pform.elements[sVerifyTextNoEcho][1].value)
- {
- var s = "<xts:string id="IDS_ERR_0003_PASSWORD_VERIF_FAILED" encode="javascript"/>";
- alert(s);
- return false;
- }
- }
- return true;
- }
-
- function doSubmit()
- {
- if (validate())
- {
- document.pform.submit();
- cmdOK_disable();
- return true;
- }
- else
- {
- return false;
- }
- }
- </script>
- <pf:help context=""/>
- </dp:script>
-
- <!-- Preserve any PATH_INFO from the original request. -->
- <xsl:variable name="formAction" select="concat($gateway,string(.//*[local-name()='originalRequest']//*[local-name()='environmentVars']/*[local-name()='item']/*[local-name()='name' and .='PATH_INFO']/../*[local-name()='value']))"/>
- <form method="post" action="{$formAction}" name="pform">
- <!-- Insert modal dialog paramaters if they exist -->
- <xsl:for-each select=".//*[local-name() = 'formFieldVars']/*[starts-with(local-name(), 'md.')]">
- <input type="hidden" name="{*[local-name() = 'name']}" value="{*[local-name() = 'value']}"/>
- </xsl:for-each>
-
- <xsl:if test="not(/root/env/param[@name='errURL']) and /root/env/param[@name='ui.backURL']!=''">
- <input type="hidden" name="errURL" value="{/root/env/param[@name='ui.backURL']}"/>
- </xsl:if>
-
- <!-- Render the body (log in details) -->
- <xsl:apply-templates/>
-
- <dp:footer copyright="true">
- <td>
- <cp:cmdButton defaultState="active" id="cmdOK" type="submit">
- <cp:cmdButtonText><xts:string id="IDS_OK"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">return doSubmit()</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </td>
- <td>
- <cp:cmdButton defaultState="active" id="cmdCancel">
- <cp:cmdButtonText><xts:string id="IDS_CANCEL"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">doCancel()</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </td>
- </dp:footer>
- </form>
- <xsl:variable name="backProtocol">
- <xsl:if test="contains(/root/env/param[@name='ui.backURL'],'?')">
- <xsl:value-of select="substring-before(/root/env/param[@name='ui.backURL'],'?')"/>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="backFormAction">
- <xsl:choose>
- <xsl:when test="$backProtocol = '' or $backProtocol = $formAction">
- <xsl:value-of select="$formAction"/>
- </xsl:when>
- <xsl:when test="not(contains($backProtocol,$gateway))">
- <xsl:value-of select="$gateway"/>
- <xsl:if test="not(starts-with($backProtocol,'/'))"><xsl:text>/</xsl:text></xsl:if>
- <xsl:value-of select="$backProtocol"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$backProtocol"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <form method="post" action="{$backFormAction}" name="cform">
- <xsl:variable name="returnURL" select="substring-after(/root/env/param[@name='ui.backURL'],'?')"/>
- <xsl:call-template name="inputs">
- <xsl:with-param name="urlInputs" select="$returnURL"/>
- </xsl:call-template>
- </form>
- </dp:page>
-
- </xsl:template>
-
- <xsl:template name="inputs">
- <xsl:param name="urlInputs" select="''"/>
- <xsl:variable name="parm">
- <xsl:if test="$urlInputs!=''">
- <xsl:choose>
- <xsl:when test="contains($urlInputs,'&')">
- <xsl:value-of select="substring-before($urlInputs,'&')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$urlInputs"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:variable>
- <xsl:if test="$parm!=''">
- <xsl:variable name="vn" select="substring-before($parm,'=')"/>
- <xsl:variable name="vv" select="substring-after($parm,'=')"/>
- <input type="hidden" name="{$vn}" value="{$vv}"/>
- <xsl:call-template name="inputs">
- <xsl:with-param name="urlInputs" select="substring-after($urlInputs,'&')"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
- <xsl:template match="SOAP-ENV:Envelope">
- <!-- Only handle the "deepest" fault -->
- <xsl:choose>
- <xsl:when test="descendant::*[local-name()!='Envelope']">
- <!-- dialog header -->
- <dp:header>
- <!-- header titles-->
- <dp:title><xsl:value-of select="$title"/></dp:title>
- <!-- close link for the header -->
- <dp:close>
- <a href="javascript:doClose()">
- <dp:closeMarker/>
- </a>
- </dp:close>
- <!-- header description -->
- <dp:description>
- <xsl:for-each select="SOAP-ENV:Header/descendant::*[local-name() = 'promptInfo']/*[local-name() = 'captions']/*">
- <xsl:value-of select="concat(., ' ')"/>
- </xsl:for-each>
- </dp:description>
- </dp:header>
- <!-- pass through the detail to be caught by the templates below -->
- <lyt:layout style="1">
- <lyt:section>
- <xsl:apply-templates select="SOAP-ENV:Header"/>
- </lyt:section>
- </lyt:layout>
- </xsl:when>
- <xsl:otherwise>
- <!-- go deeper -->
- <xsl:apply-templates select="descendant::*[local-name()='Envelope'][1]"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!-- Render CAM fields -->
- <xsl:template match="*[@xsi:type = 'bus:displayObject']">
- <xsl:choose>
- <!-- Hidded fields -->
- <xsl:when test="*[local-name() = 'type'] = 'hidden'">
- <input type="hidden" name="{$formFieldPrefix}{*[local-name() = 'name']}" value="{*[local-name() = 'value']}"/>
- </xsl:when>
-
- <xsl:otherwise>
- <dp:input>
- <dp:section1>
- <xsl:value-of select="*[local-name() = 'caption']"/>
- </dp:section1>
- <dp:section2 width="100%">
-
- <!-- Account for single selection fields - e.g. namespace selection -->
- <xsl:choose>
- <xsl:when test="*[local-name() = 'type']='singleselect'">
- <select name="{$formFieldPrefix}{*[local-name() = 'name']}" onkeypress="submitThis(event)">
- <xsl:for-each select="*[local-name() = 'promptOptions']/*">
- <option value="{*[local-name() = 'id']}">
- <xsl:if test="*[local-name() = 'default'] = 'true'">
- <xsl:attribute name="selected">selected</xsl:attribute>
- </xsl:if>
- <xsl:value-of select="*[local-name() = 'value']"/>
- </option>
- </xsl:for-each>
- </select>
- <script language="JavaScript">
- function submitThis(e)
- {
- var sKey = null;
- if (window.event) //IE, Safari
- sKey = window.event.keyCode;
- else
- sKey = e.which; //Moz
- if ((sKey == '13') || (sKey=='32'))
- window.document.pform.submit();
- }
- </script>
- </xsl:when>
-
-
- <!-- Static display fields -->
- <xsl:when test="*[local-name() = 'type']='display'">
- <input name="{$formFieldPrefix}{*[local-name() = 'name']}" value="{*[local-name() = 'value']}" type="hidden"/>
- <dp:text><xsl:value-of select="*[local-name() = 'value']"/></dp:text>
- </xsl:when>
-
-
- <xsl:otherwise>
- <!-- Password / Text fields-->
- <input name="{$formFieldPrefix}{*[local-name() = 'name']}" value="{*[local-name() = 'value']}">
- <xsl:if test="contains(*[local-name() = 'type'], 'textnoecho')">
- <xsl:attribute name="type">password</xsl:attribute>
- <xsl:attribute name="autocomplete">off</xsl:attribute>
- </xsl:if>
- <xsl:if test="*[local-name() = 'type']='text'">
- <xsl:attribute name="type">text</xsl:attribute>
- </xsl:if>
- </input>
- </xsl:otherwise>
-
- </xsl:choose>
- </dp:section2>
- </dp:input>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
- <xsl:template match="fault:originalRequest">
- <xsl:choose>
- <!--
- If the current request is an asynch (wait) request then we need to resubmit the original "run" request
- provided we do have the form field vars that represent the "run" request.
- -->
- <xsl:when test=" (.//*[local-name() = 'formFieldVars']/*[local-name()='item']/*[local-name()='name' and .='ui.action']/../*[local-name()='value' and .='wait']) and (../fault:fault//bus:formFieldVars/*)">
- <xsl:call-template name="genFormFieldsForOriginalHTTPRequest">
- <xsl:with-param name="formFieldVarsArray">
- <xsl:copy-of select="../fault:fault//bus:formFieldVars"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="SOAP-ENV:Envelope/SOAP-ENV:Body/*">
- <xsl:call-template name="genFormFieldsForOriginalHTTPRequest">
- <xsl:with-param name="formFieldVarsArray">
- <xsl:copy-of select=".//*[local-name() = 'formFieldVars']"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
-
- <xsl:otherwise>
- <xsl:variable name="mparam" select=".//*[local-name() = 'formFieldVars']/*[local-name()='item']/*[local-name()='name' and .='m']"/>
- <xsl:variable name="mvalue" select=".//*[local-name() = 'formFieldVars']/*[local-name()='item']/*[local-name()='name' and .='m']/../*[local-name()='value']"/>
- <xsl:choose>
- <xsl:when test="string($mparam)!='' and $mvalue != concat($app,'/main.xts') ">
- <xsl:call-template name="genFormFieldsForOriginalHTTPRequest">
- <xsl:with-param name="formFieldVarsArray">
- <xsl:copy-of select=".//*[local-name() = 'formFieldVars']"/>
- </xsl:with-param>
- <xsl:with-param name="redirectMethod" select=".//item[name='REQUEST_METHOD']/value"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="genFormFieldsForOriginalHTTPRequest">
- <xsl:with-param name="formFieldVarsArray">
- <xsl:copy-of select=".//*[local-name() = 'formFieldVars']"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template name="genFormFieldsForOriginalHTTPRequest">
- <xsl:param name="formFieldVarsArray"/>
- <xsl:param name="redirectMethod" select="''"/>
-
- <xsl:choose>
- <!-- If we have a redirect method then we must redirect -->
- <xsl:when test="$redirectMethod != ''">
- <xsl:variable name="m_override" select="$formFieldVarsArray/*[local-name()='item']/*[local-name()='name' and .='m_override']"/>
- <xsl:variable name="m_override_value" select="$formFieldVarsArray/*[local-name()='item']/*[local-name()='name' and .='m_override']/../*[local-name()='value']"/>
- <xsl:for-each select="$formFieldVarsArray/bus:formFieldVars/*">
- <xsl:if test="not(starts-with(name, 'CAM'))">
- <xsl:choose>
- <xsl:when test="$m_override">
- <xsl:if test="name!='m' and name!='m_override'">
- <input type="hidden" name="{concat('o_', *[local-name() = 'name'])}" value="{*[local-name() = 'value']}"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <input type="hidden" name="{concat('o_', *[local-name() = 'name'])}" value="{*[local-name() = 'value']}"/>
- <xsl:if test="starts-with(name, 'md.')">
- <!-- if it is a modal variable, it must also be in the form with its original name -->
- <!-- otherwise, if it is possible that these variables won't get passed on to another request -->
- <input type="hidden" name="{*[local-name() = 'name']}" value="{*[local-name() = 'value']}"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:for-each>
- <xsl:if test="$m_override">
- <input type="hidden" name="o_m" value="{$m_override_value}"/>
- </xsl:if>
- <input type="hidden" name="m" value="{$app}/main.xts"/>
- <input type="hidden" name="b_action" value="xts.run"/>
- <input type="hidden" name="m_method" value="{$redirectMethod}"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="$formFieldVarsArray/bus:formFieldVars/*">
- <xsl:if test="not(starts-with(name, 'CAM'))">
- <input type="hidden" name="{*[local-name() = 'name']}" value="{*[local-name() = 'value']}"/>
- </xsl:if>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
-
-
- <xsl:template match="text()"/>
- </xsl:stylesheet>
- </xts:block>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="formatPrompt" condition=".[ /root/session/param[@name='debug'] = '1' or /root/env/param[@name = 'd'] = '1' ]" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html" >
- <!-- <xts:block id="debug" dependency="formatLogin formatError" 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="dbg">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|