123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cpscrn
- (C) Copyright IBM Corp. 2005, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <!-- $Header: //cpscrn/main/templates/cps4/producer/wsrp-impl/ServiceDescriptionServiceImpl.xts#1 $ -->
- <!-- $DateTime: 2008/10/22 11:12:04 $ -->
- <!-- $Change: 25109 $ -->
- <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/">
- <xts:block id="execution" type="exec" mode="interpret" processor="XSLT" nodelist="envelope,session,system,configProps,implementation">
- <xts:logicsheet path="/cps4/producer/logicsheets/cps-portlet.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:wsrp="urn:oasis:names:tc:wsrp:v1:types"
- xmlns:portlet="http://developer.cognos.com/schemas/cps/logic/portlet/1/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <portlet:soap-response>
- <xsl:variable name="desired-locales" select="$portlet-op/wsrp:desiredLocales"/>
- <xts:transform processor="XSLT" src="/cps4/producer/wsrp-impl/transforms/getServiceDescription.xslt">
- <root>
- <xts:queryNode select="/root/implementation/message[1] | /root/implementation"/>
- <xsl:choose>
- <xsl:when test="$desired-locales">
- <xsl:for-each select="$desired-locales">
- <locale>
- <xsl:value-of select="."/>
- </locale>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <locale>en</locale>
- </xsl:otherwise>
- </xsl:choose>
- <xts:function name="getConfiguration">
- <xts:param name="productLocales">en</xts:param>
- <xts:param name="contentLocales">en</xts:param>
- </xts:function>
- </root>
- </xts:transform>
- </portlet:soap-response>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|