translateHistoryTopics.xts 5.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/AGS.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseEventStudio">
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: AGS
  5. (C) Copyright IBM Corp. 2005, 2014
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. ===========================================================================
  10. getHistoryTopicsList
  11. ===========================================================================
  12. -->
  13. <xts:block id="getHistoryTopicsList" processor="XSLT" mandatory="false" type="exec">
  14. <xts:logicsheet path="logicsheets/portal.xsl"/>
  15. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  16. <xsl:stylesheet version="1.0"
  17. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  18. xmlns:form="http://developer.cognos.com/schemas/xts/ags/iFrmCmd/1/"
  19. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  20. xmlns:xtscm="http://developer.cognos.com/schemas/xts-cm/1/"
  21. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  22. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  23. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  24. xmlns:x="x" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  25. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  26. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  27. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  28. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  29. exclude-result-prefixes="form send xtscm pf bus cm x SOAP-ENC SOAP-ENV xsi xts xtsext">
  30. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  31. <xsl:template match="/">
  32. <xts:sequence>
  33. <xts:append>
  34. <historyTopicsListResponse>
  35. <xts:request href="bus://dispatcher" protocol="BUS" responseEnvelope="true" option="xml-multipart" outputHeader="true">
  36. <xsl:attribute name="soapAction"><xsl:text>http://www.ibm.com/xmlns/prod/cognos/agentService/201505/</xsl:text></xsl:attribute>
  37. <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  38. <SOAP-ENV:Header>
  39. <bus:biBusHeader xsi:type="bus:biBusHeader">
  40. <xsl:copy-of select="/root/header/bus:biBusHeader/*"/>
  41. </bus:biBusHeader>
  42. </SOAP-ENV:Header>
  43. <SOAP-ENV:Body>
  44. <bus:getTranslatedHistoryTopic xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  45. <locale xsi:type="xsd:string"><xsl:value-of select="/root/header/*[local-name()='biBusHeader']/*[local-name()='userPreferenceVars']/item[ ./name = 'contentLocale']/value"/></locale>
  46. </bus:getTranslatedHistoryTopic>
  47. </SOAP-ENV:Body>
  48. </SOAP-ENV:Envelope>
  49. </xts:request>
  50. </historyTopicsListResponse>
  51. </xts:append>
  52. </xts:sequence>
  53. </xsl:template>
  54. </xsl:stylesheet>
  55. </xts:block>
  56. <!--
  57. ===============================================================================================
  58. processResult - add the results of the request into the right place
  59. ===============================================================================================
  60. -->
  61. <xts:block id="processResult" mode="output" mimeType="application/xml; charset=utf-8" processor="XSLT" type="exec" dependency="getHistoryTopicsList" mandatory="false">
  62. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  63. <xts:logicsheet path="logicsheets/portal.xsl"/>
  64. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  65. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  66. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  67. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  68. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  69. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  70. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  71. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  72. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  73. exclude-result-prefixes="xtsext SOAP-ENV pf bus send cml xsi xos">
  74. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  75. <xsl:template match="/root">
  76. <result>
  77. <xsl:copy-of select="./historyTopicsListResponse/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='getTranslatedHistoryTopicResponse']/*[local-name()='result']/*"/>
  78. </result>
  79. </xsl:template>
  80. </xsl:stylesheet>
  81. </xts:block>
  82. </xts:morphlet>