ServiceDescriptionServiceImpl.xts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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, 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <!-- $Header: //cpscrn/main/templates/cps4/producer/wsrp-impl/ServiceDescriptionServiceImpl.xts#1 $ -->
  13. <!-- $DateTime: 2008/10/22 11:12:04 $ -->
  14. <!-- $Change: 25109 $ -->
  15. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/">
  16. <xts:block id="execution" type="exec" mode="interpret" processor="XSLT" nodelist="envelope,session,system,configProps,implementation">
  17. <xts:logicsheet path="/cps4/producer/logicsheets/cps-portlet.xslt"/>
  18. <xsl:stylesheet version="1.0"
  19. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  20. xmlns:wsrp="urn:oasis:names:tc:wsrp:v1:types"
  21. xmlns:portlet="http://developer.cognos.com/schemas/cps/logic/portlet/1/">
  22. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  23. <xsl:template match="/">
  24. <portlet:soap-response>
  25. <xsl:variable name="desired-locales" select="$portlet-op/wsrp:desiredLocales"/>
  26. <xts:transform processor="XSLT" src="/cps4/producer/wsrp-impl/transforms/getServiceDescription.xslt">
  27. <root>
  28. <xts:queryNode select="/root/implementation/message[1] | /root/implementation"/>
  29. <xsl:choose>
  30. <xsl:when test="$desired-locales">
  31. <xsl:for-each select="$desired-locales">
  32. <locale>
  33. <xsl:value-of select="."/>
  34. </locale>
  35. </xsl:for-each>
  36. </xsl:when>
  37. <xsl:otherwise>
  38. <locale>en</locale>
  39. </xsl:otherwise>
  40. </xsl:choose>
  41. <xts:function name="getConfiguration">
  42. <xts:param name="productLocales">en</xts:param>
  43. <xts:param name="contentLocales">en</xts:param>
  44. </xts:function>
  45. </root>
  46. </xts:transform>
  47. </portlet:soap-response>
  48. </xsl:template>
  49. </xsl:stylesheet>
  50. </xts:block>
  51. </xts:morphlet>