finish.xts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml">
  13. <!--
  14. ===============================================================================================
  15. unpack-parameters -
  16. ===============================================================================================
  17. -->
  18. <xts:block id="unpack-parameters" type="exec" mode="interpret" processor="XSLT">
  19. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:prompt="http://developer.cognos.com/schemas/xts/portal/iPrompting/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xos="http://developer.cognos.com/schemas/xts/output/" exclude-result-prefixes="xsl bus xtsext">
  20. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  21. <!-- Ouptut a response containing the parameter values -->
  22. <xsl:template match="/root">
  23. <xts:sequence>
  24. <xts:append select="/root/output">
  25. <xos:part>
  26. <xos:entityHeader>
  27. <xos:param name="Content-Type">text/xml; charset=utf-8</xos:param>
  28. </xos:entityHeader>
  29. <xos:entityBody>
  30. <xsl:choose>
  31. <xsl:when test="/root/env/param[@name='encodedParameters'] and /root/env/param[@name='encodedParameters'] != ''">
  32. <xts:transform name="XMLDecode">
  33. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap',string(/root/env/param[@name='encodedParameters'])), true())"/>
  34. </xts:transform>
  35. </xsl:when>
  36. <xsl:otherwise>
  37. <prompt:forwardResponse>
  38. <status>conversationComplete</status>
  39. </prompt:forwardResponse>
  40. </xsl:otherwise>
  41. </xsl:choose>
  42. </xos:entityBody>
  43. </xos:part>
  44. </xts:append>
  45. </xts:sequence>
  46. </xsl:template>
  47. </xsl:stylesheet>
  48. </xts:block>
  49. </xts:morphlet>