123456789101112131415161718192021222324252627282930313233343536373839 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: AGS
- (C) Copyright IBM Corp. 2005, 2008
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xts:morphlet resolverBase="prompting" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml" requiredCapability="canUseEventStudio">
- <!--
- ===============================================================================================
- appendDocument - add the results of the requests into the right place
- ===============================================================================================
- -->
- <xts:block id="appendDocument" mode="output" processor="XSLT" type="exec" mimeType="text/xml">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
- <xsl:template match="/root">
- <xsl:variable name="CRLF">
- <xsl:text>
</xsl:text>
- </xsl:variable>
- <asyncReply>
- <functionTree>
- <xsl:choose>
- <xsl:when test="contains(./SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/bus:details/item/bus:metadata, '<?xml')">
- <xsl:value-of select="xtsext:replace(substring-after(./SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/bus:details/item/bus:metadata, '?>'), string($CRLF), string('&#xA;'), false)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="xtsext:replace(./SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/bus:details/item/bus:metadata, string($CRLF), string('&#xA;'), false)"/>
- </xsl:otherwise>
- </xsl:choose>
- </functionTree>
- </asyncReply>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|