12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?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).
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- exclude-result-prefixes="xsl dlgctrl xtsext dt pf xts send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <xts:sequence>
- <dlgctrl:processXTS2Response>
- <dlgctrl:stackName>add_entries</dlgctrl:stackName>
- <!-- deal with the markup returned -->
- <dlgctrl:mode match="markup">
- <xts:append select="/root/output">
- <xts:transform src="portal/controls/display_markup.xslt" processor="XSLT" option="part" mimeType="text/html">
- <xts:param name="logicsheet">/logicsheets/portal.xsl</xts:param>
- <xts:param name="logicsheet">/logicsheets/validation.xslt</xts:param>
- <xts:param name="messageBase">/messages/portal.xml</xts:param>
- <xts:param name="messageBase">/messages/portalRL.xml</xts:param>
- <root>
- <xts:transform name="XMLDecode">
- <dlgctrl:morphletResponse/>
- </xts:transform>
-
- <xsl:copy-of select="/root/http"/>
- <xsl:copy-of select="/root/env"/>
- <xsl:copy-of select="/root/system"/>
- <xsl:copy-of select="/root/user"/>
- <formFields>
- <input type="hidden" name="m_name" value="{key('env-param','m_name')}"/>
- <input type="hidden" name="m_new_class" value="{key('env-param','m_new_class')}"/>
- <input type="hidden" name="m_path" value="{key('env-param','m_path')}"/>
- <input type="hidden" name="m" value="{key('env-param','m')}"/>
- <input type="hidden" name="b_action" value="xts.run"/>
- <xsl:if test="key('env-param','step_default_name') != ''">
- <input type="hidden" name="step_default_name" value="{key('env-param','step_default_name')}"/>
- </xsl:if>
- <xsl:if test="key('env-param', 'lang') != ''">
- <input type="hidden" name="lang" value="{key('env-param', 'lang')}"/>
- </xsl:if>
- <xsl:if test="key('env-param','cafcontextid') != ''">
- <input type="hidden" name="cafcontextid" value="{key('env-param','cafcontextid')}"/>
- </xsl:if>
- </formFields>
- </root>
- </xts:transform>
- </xts:append>
- </dlgctrl:mode>
-
- <!-- got back selected entries -->
- <dlgctrl:mode match="selectedEntries">
- <xsl:if test="/root/*[local-name()='morphletResponse']/*[local-name()='selectedEntries']">
- <xts:append select="/root">
- <selectedEntries>
- <xsl:if test="/root/*[local-name()='morphletResponse']/*[local-name()='selectedEntries'] != ''">
- <xts:transform name="XMLDecode">
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap',string(/root/*[local-name()='morphletResponse']/*[local-name()='selectedEntries'])), true())"/>
- </xts:transform>
- </xsl:if>
- </selectedEntries>
- </xts:append>
- <xts:delete select="/root/env/param[@name='selectedEntries']"/>
- <xts:append select="/root/env">
- <param name="selectedEntries">
- <xsl:value-of select="/root/*[local-name()='morphletResponse']/*[local-name()='selectedEntries']"/>
- </param>
- </xts:append>
- </xsl:if>
- </dlgctrl:mode>
- </dlgctrl:processXTS2Response>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
|