getapps.xts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cpscrn
  5. (C) Copyright IBM Corp. 2005, 2013
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/">
  9. <xts:block id="execution" type="exec" mode="interpret" processor="XSLT">
  10. <xsl:stylesheet version="1.0" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/">
  11. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  12. <xsl:template match="/">
  13. <xts:sequence>
  14. <xts:append select="/root/output">
  15. <xos:part xmlns:xos="http://developer.cognos.com/schemas/xts/output/">
  16. <xos:entityHeader>
  17. <xos:param name="Content-Type">text/javascript; charset=utf-8</xos:param>
  18. </xos:entityHeader>
  19. <xos:entityBody>
  20. <xts:transform processor="XMLEncode">
  21. <xts:transform processor="XSLT" src="cps4/portlets/sdk2/service/xml2json.xslt">
  22. <xts:request protocol="GET" target="{/root/configProps/param[@name='cps']/property[@name = 'gateway']}/portlet/applications" cache="false">
  23. <xts:param name="header">
  24. <xsl:text>Cookie=</xsl:text>
  25. <xsl:for-each select="/root/cookies/cookie[not(@name='JSESSIONID')]">
  26. <xsl:value-of select="@name"/>=<xsl:value-of select="."/>
  27. <xsl:if test="position() != last()">
  28. <xsl:text>; </xsl:text>
  29. </xsl:if>
  30. </xsl:for-each>
  31. </xts:param>
  32. </xts:request>
  33. </xts:transform>
  34. </xts:transform>
  35. </xos:entityBody>
  36. </xos:part>
  37. </xts:append>
  38. </xts:sequence>
  39. </xsl:template>
  40. </xsl:stylesheet>
  41. </xts:block>
  42. </xts:morphlet>