1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cpscrn
- (C) Copyright IBM Corp. 2005, 2013
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/">
- <xts:block id="execution" type="exec" mode="interpret" processor="XSLT">
- <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/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/output">
- <xos:part xmlns:xos="http://developer.cognos.com/schemas/xts/output/">
- <xos:entityHeader>
-
- <xos:param name="Content-Type">text/javascript; charset=utf-8</xos:param>
- </xos:entityHeader>
- <xos:entityBody>
- <xts:transform processor="XMLEncode">
- <xts:transform processor="XSLT" src="cps4/portlets/sdk2/service/xml2json.xslt">
- <xts:request protocol="GET" target="{/root/configProps/param[@name='cps']/property[@name = 'gateway']}/portlet/applications" cache="false">
- <xts:param name="header">
- <xsl:text>Cookie=</xsl:text>
- <xsl:for-each select="/root/cookies/cookie[not(@name='JSESSIONID')]">
- <xsl:value-of select="@name"/>=<xsl:value-of select="."/>
- <xsl:if test="position() != last()">
- <xsl:text>; </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </xts:param>
- </xts:request>
- </xts:transform>
- </xts:transform>
- </xos:entityBody>
- </xos:part>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|