packenv.xml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. <xsl:stylesheet version="1.0"
  9. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  10. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  11. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  12. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  13. exclude-result-prefixes="xtsext xts xsl pf">
  14. <xsl:output method="xml" encoding="UTF-8" version="1.0" indent="no"/>
  15. <pf:variables/>
  16. <xsl:template match="/root">
  17. <xts:sequence>
  18. <xts:delete select="/root/env/param[@name='so.searchPath2'][position() &gt; 1]"/>
  19. <xts:append select="/root">
  20. <xsl:variable name="node-set">
  21. <xsl:copy-of select="/root/env/param[@name != 'b_action' and @name != 'm' and @name != 'ui.cafcontextid']"/>
  22. </xsl:variable>
  23. <xsl:variable name="spec">
  24. <xsl:call-template name="serialize-xml">
  25. <xsl:with-param name="node-set" select="$node-set/*"/>
  26. </xsl:call-template>
  27. </xsl:variable>
  28. <packed-remoteBrowseEnv>
  29. <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($spec), true()))"/>
  30. </packed-remoteBrowseEnv>
  31. </xts:append>
  32. </xts:sequence>
  33. </xsl:template>
  34. <pf:serialize-xml/>
  35. </xsl:stylesheet>