getDimbarItem.xts 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: qs
  5. (C) Copyright IBM Corp. 2001, 2017
  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. <xts:morphlet resolverBase="prompting" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml">
  13. <xts:block id="getMembers" mode="interpret" processor="XSLT" type="exec" mandatory="false">
  14. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  15. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  16. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  17. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  18. <xsl:variable name="authoringLocale">
  19. <xsl:choose>
  20. <xsl:when test="string(/root/env/param[@name='el'])!='' and string(/root/env/param[@name='el'])!='null'">
  21. <xsl:value-of select="/root/env/param[@name='el']"/>
  22. </xsl:when>
  23. <xsl:otherwise>
  24. <xsl:value-of select="/root/env/param[@name='cl']"/>
  25. </xsl:otherwise>
  26. </xsl:choose>
  27. </xsl:variable>
  28. <xsl:template match="/">
  29. <xts:sequence>
  30. <xts:append>
  31. <xts:request asText="true" href="bus://dispatcher" protocol="BUS" soapAction="http://www.ibm.com/xmlns/prod/cognos/reportService/201404/.session" faultBlock="faultHandler" responseEnvelope="false" outputHeader="true">
  32. <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  33. <SOAP-ENV:Header>
  34. <bus:biBusHeader xsi:type="bus:biBusHeader" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  35. <!-- We don't want to copy the tracking info in this case because we want a separate conversation for the metadata -->
  36. <xsl:apply-templates select="/root/header/bus:biBusHeader/*[local-name()!='tracking']"/>
  37. </bus:biBusHeader>
  38. </SOAP-ENV:Header>
  39. <SOAP-ENV:Body>
  40. <runSpecification xmlns="http://developer.cognos.com/schemas/reportService/1">
  41. <bus:specification xsi:type="bus:reportServiceMetadataSpecification" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  42. <bus:value xsi:type="bus:specification">&lt;metadataRequest connection=&quot;<xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='model']))"/>&quot;&gt;
  43. &lt;Metadata authoringLocale=&quot;<xsl:value-of select="$authoringLocale"/>&quot; xml:lang=&quot;<xsl:value-of select="/root/env/param[@name='pl']"/>&quot; start_at=&quot;<xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='start_at']))"/>&quot; Depth=&quot;<xsl:value-of select="/root/env/param[@name='depth']"/>&quot; ResultStart=&quot;0&quot; ResultCount=&quot;51&quot;&gt;
  44. &lt;Properties&gt;
  45. &lt;Property name=&quot;./folder&quot;/&gt;
  46. &lt;Property name=&quot;./dimension&quot;/&gt;
  47. &lt;Property name=&quot;./hierarchy&quot;/&gt;
  48. &lt;Property name=&quot;./level&quot;/&gt;
  49. &lt;Property name=&quot;./member&quot;/&gt;
  50. &lt;Property name=&quot;./@_RootMembers&quot;/&gt;
  51. &lt;Property name=&quot;*/@name&quot;/&gt;
  52. &lt;Property name=&quot;*/@_path&quot;/&gt;
  53. &lt;Property name=&quot;*/@_ref&quot;/&gt;
  54. &lt;Property name=&quot;*/@memberUniqueName&quot;/&gt;
  55. &lt;Property name=&quot;*/@memberCaption&quot;/&gt;
  56. &lt;Property name=&quot;*/@parentCaption&quot;/&gt;
  57. &lt;Property name=&quot;*/@levelUniqueName&quot;/&gt;
  58. &lt;Property name=&quot;*/@hierarchyUniqueName&quot;/&gt;
  59. &lt;Property name=&quot;*/@levelNumber&quot;/&gt;
  60. &lt;Property name=&quot;*/@levelLabel&quot;/&gt;
  61. &lt;Property name=&quot;*/@parentUniqueName&quot;/&gt;
  62. &lt;Property name=&quot;*/@currencyCode&quot;/&gt;
  63. &lt;Property name=&quot;*/@_IntrinsicPropertiesOff&quot;/&gt;
  64. &lt;Property name=&quot;*/@parentChild&quot;/&gt;&lt;/Properties&gt;
  65. &lt;/Metadata&gt;
  66. &lt;/metadataRequest&gt;
  67. </bus:value>
  68. </bus:specification>
  69. <bus:parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"/>
  70. <bus:options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:option[]" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/">
  71. <item xsi:type="bus:runOptionString">
  72. <bus:name xsi:type="bus:runOptionEnum">promptFormat</bus:name>
  73. <bus:value xsi:type="xsd:string">HTML</bus:value>
  74. </item>
  75. <item xsi:type="bus:runOptionBoolean">
  76. <bus:name xsi:type="bus:runOptionEnum">prompt</bus:name>
  77. <bus:value xsi:type="xsd:boolean">false</bus:value>
  78. </item>
  79. <item xsi:type="bus:asynchOptionInt">
  80. <bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
  81. <bus:value xsi:type="xsd:int">0</bus:value>
  82. </item>
  83. </bus:options>
  84. </runSpecification>
  85. </SOAP-ENV:Body>
  86. </SOAP-ENV:Envelope>
  87. </xts:request>
  88. </xts:append>
  89. </xts:sequence>
  90. </xsl:template>
  91. <!-- used to copy the bus header stuff - see "apply-templates" above. -->
  92. <xsl:template match="*">
  93. <xsl:copy>
  94. <xsl:copy-of select="@*"/>
  95. <xsl:apply-templates/>
  96. </xsl:copy>
  97. </xsl:template>
  98. </xsl:stylesheet>
  99. </xts:block>
  100. <xts:block id="appendResponse" mode="interpret" processor="XSLT" type="exec" dependency="getMembers" mandatory="false">
  101. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  102. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:cm="http://developer.cognos.com/schemas/cm/1/" xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xos="http://developer.cognos.com/schemas/xts/output/">
  103. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  104. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  105. <xsl:template match="/root">
  106. <xts:sequence>
  107. <xts:append select="/root">
  108. <dimensions>
  109. <xsl:choose>
  110. <xsl:when test="contains(./*[local-name() = 'runSpecificationResponse']/bus:result/bus:details/item/bus:metadata, '&lt;?xml')">
  111. <xsl:value-of select="substring-after(./*[local-name() = 'runSpecificationResponse']/bus:result/bus:details/item/bus:metadata, '?&gt;')" disable-output-escaping="yes"/>
  112. </xsl:when>
  113. <xsl:otherwise>
  114. <xsl:value-of select="./*[local-name() = 'runSpecificationResponse']/bus:result/bus:details/item/bus:metadata" disable-output-escaping="yes"/>
  115. </xsl:otherwise>
  116. </xsl:choose>
  117. </dimensions>
  118. </xts:append>
  119. <xts:append select="/root">
  120. <RootMemberResponse/>
  121. </xts:append>
  122. </xts:sequence>
  123. </xsl:template>
  124. </xsl:stylesheet>
  125. </xts:block>
  126. <xts:block id="getParent" dependency="appendResponse" condition=".[/*[local-name()='root']/*[local-name()='dimensions']/ResponseRoot/member and /*[local-name()='root']/*[local-name()='dimensions']/ResponseRoot/member/@parentUniqueName!='Null']" mode="interpret" processor="XSLT" type="exec" mandatory="false">
  127. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  128. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  129. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  130. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  131. <xsl:variable name="authoringLocale">
  132. <xsl:choose>
  133. <xsl:when test="string(/root/env/param[@name='el'])!='' and string(/root/env/param[@name='el'])!='null'">
  134. <xsl:value-of select="/root/env/param[@name='el']"/>
  135. </xsl:when>
  136. <xsl:otherwise>
  137. <xsl:value-of select="/root/env/param[@name='cl']"/>
  138. </xsl:otherwise>
  139. </xsl:choose>
  140. </xsl:variable>
  141. <xsl:template match="/">
  142. <xts:sequence>
  143. <xts:append>
  144. <parentInfo>
  145. <xts:request asText="true" href="bus://dispatcher" protocol="BUS" soapAction="http://www.ibm.com/xmlns/prod/cognos/reportService/201404/.session" faultBlock="faultHandler" responseEnvelope="false" outputHeader="true">
  146. <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  147. <SOAP-ENV:Header>
  148. <bus:biBusHeader xsi:type="bus:biBusHeader" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  149. <!-- We don't want to copy the tracking info in this case because we want a separate conversation for the metadata -->
  150. <xsl:apply-templates select="/root/header/bus:biBusHeader/*[local-name()!='tracking']"/>
  151. </bus:biBusHeader>
  152. </SOAP-ENV:Header>
  153. <SOAP-ENV:Body>
  154. <runSpecification xmlns="http://developer.cognos.com/schemas/reportService/1">
  155. <bus:specification xsi:type="bus:reportServiceMetadataSpecification" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  156. <bus:value xsi:type="bus:specification">&lt;metadataRequest connection=&quot;<xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='model']))"/>&quot;&gt;
  157. &lt;Metadata authoringLocale=&quot;<xsl:value-of select="$authoringLocale"/>&quot; xml:lang=&quot;<xsl:value-of select="/root/env/param[@name='pl']"/>&quot; start_at=&quot;<xsl:value-of select="xtsext:xmlencode(string(/*[local-name()='root']/*[local-name()='dimensions']/ResponseRoot/member/@parentUniqueName))"/>&quot; Depth=&quot;<xsl:value-of select="/root/env/param[@name='depth']"/>&quot; ResultStart=&quot;0&quot; ResultCount=&quot;1&quot;&gt;
  158. &lt;Properties&gt;
  159. &lt;Property name=&quot;./folder&quot;/&gt;
  160. &lt;Property name=&quot;./dimension&quot;/&gt;
  161. &lt;Property name=&quot;./hierarchy&quot;/&gt;
  162. &lt;Property name=&quot;./level&quot;/&gt;
  163. &lt;Property name=&quot;./member&quot;/&gt;
  164. &lt;Property name=&quot;./@_RootMembers&quot;/&gt;
  165. &lt;Property name=&quot;*/@name&quot;/&gt;
  166. &lt;Property name=&quot;*/@_path&quot;/&gt;
  167. &lt;Property name=&quot;*/@_ref&quot;/&gt;
  168. &lt;Property name=&quot;*/@memberUniqueName&quot;/&gt;
  169. &lt;Property name=&quot;*/@memberCaption&quot;/&gt;
  170. &lt;Property name=&quot;*/@parentCaption&quot;/&gt;
  171. &lt;Property name=&quot;*/@levelUniqueName&quot;/&gt;
  172. &lt;Property name=&quot;*/@hierarchyUniqueName&quot;/&gt;
  173. &lt;Property name=&quot;*/@levelNumber&quot;/&gt;
  174. &lt;Property name=&quot;*/@levelLabel&quot;/&gt;
  175. &lt;Property name=&quot;*/@parentUniqueName&quot;/&gt;
  176. &lt;Property name=&quot;*/@currencyCode&quot;/&gt;
  177. &lt;Property name=&quot;*/@_IntrinsicPropertiesOff&quot;/&gt;
  178. &lt;Property name=&quot;*/@parentChild&quot;/&gt;&lt;/Properties&gt;
  179. &lt;/Metadata&gt;
  180. &lt;/metadataRequest&gt;
  181. </bus:value>
  182. </bus:specification>
  183. <bus:parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"/>
  184. <bus:options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:option[]" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/">
  185. <item xsi:type="bus:runOptionString">
  186. <bus:name xsi:type="bus:runOptionEnum">promptFormat</bus:name>
  187. <bus:value xsi:type="xsd:string">HTML</bus:value>
  188. </item>
  189. <item xsi:type="bus:runOptionBoolean">
  190. <bus:name xsi:type="bus:runOptionEnum">prompt</bus:name>
  191. <bus:value xsi:type="xsd:boolean">false</bus:value>
  192. </item>
  193. <item xsi:type="bus:asynchOptionInt">
  194. <bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
  195. <bus:value xsi:type="xsd:int">0</bus:value>
  196. </item>
  197. </bus:options>
  198. </runSpecification>
  199. </SOAP-ENV:Body>
  200. </SOAP-ENV:Envelope>
  201. </xts:request>
  202. </parentInfo>
  203. </xts:append>
  204. </xts:sequence>
  205. </xsl:template>
  206. <!-- used to copy the bus header stuff - see "apply-templates" above. -->
  207. <xsl:template match="*">
  208. <xsl:copy>
  209. <xsl:copy-of select="@*"/>
  210. <xsl:apply-templates/>
  211. </xsl:copy>
  212. </xsl:template>
  213. </xsl:stylesheet>
  214. </xts:block>
  215. <xts:block id="appendParent" condition=".[/root/*[local-name()='parentInfo']]" mode="interpret" processor="XSLT" type="exec" dependency="getParent" mandatory="false">
  216. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  217. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:cm="http://developer.cognos.com/schemas/cm/1/" xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xos="http://developer.cognos.com/schemas/xts/output/">
  218. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  219. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  220. <xsl:template match="/root">
  221. <xts:sequence>
  222. <xts:append select="/root">
  223. <parentMember>
  224. <xsl:choose>
  225. <xsl:when test="contains(./*[local-name()='parentInfo']/*[local-name() = 'runSpecificationResponse']/bus:result/bus:details/item/bus:metadata, '&lt;?xml')">
  226. <xsl:value-of select="substring-after(./*[local-name()='parentInfo']/*[local-name() = 'runSpecificationResponse']/bus:result/bus:details/item/bus:metadata, '?&gt;')" disable-output-escaping="yes"/>
  227. </xsl:when>
  228. <xsl:otherwise>
  229. <xsl:value-of select="./*[local-name()='parentInfo']/*[local-name() = 'runSpecificationResponse']/bus:result/bus:details/item/bus:metadata" disable-output-escaping="yes"/>
  230. </xsl:otherwise>
  231. </xsl:choose>
  232. </parentMember>
  233. </xts:append>
  234. </xts:sequence>
  235. </xsl:template>
  236. </xsl:stylesheet>
  237. </xts:block>
  238. <xts:block id="format" type="exec" mode="output" processor="XSLT" mimeType="application/x-javascript" dependency="appendParent">
  239. <!-- get the debug logic sheet -->
  240. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  241. <xts:logicsheet path="logicsheets/portal.xsl"/>
  242. <!-- apply the form logic -->
  243. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" exclude-result-prefixes="xsl xts dbg xtsext bus pf">
  244. <xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
  245. <pf:variables/>
  246. <!-- start the output -->
  247. <xsl:template match="/root">
  248. var menuItemId = '<xsl:value-of select="/root/env/param[@name='menuItemId']"/>';
  249. var htmlMenuItem = document.getElementById(menuItemId);
  250. if(htmlMenuItem != null)
  251. {
  252. dimensionItem = htmlMenuItem.menuItem;
  253. if(typeof dimensionItem != "undefined" &amp;&amp; dimensionItem != null)
  254. {
  255. var dropDownMenu = dimensionItem.getMenu();
  256. var dimBarItem;
  257. var dimBarItemDropDown;
  258. <!--dimBarItem = new CMenuItem(dropDownMenu, dimensionItem.getLabel(), 'slicer(\'<xsl:value-of select="./@hierarchyUniqueName"/>\',\'\', \'0\', \'\')', '',gMenuItemStyle, '<xsl:value-of select="$webRoot"/>', '<xsl:value-of select="$skin_root"/>');-->
  259. <xsl:choose>
  260. <xsl:when test="not(/*[local-name()='root']/*[local-name()='dimensions']/ResponseRoot/*/member) and not(/root/*[local-name()='parentMember'])">
  261. <!-- To avoid endless loop of server requests, remove the drop down menu -->
  262. dropDownMenu.remove();
  263. dimensionItem.m_menu = null;
  264. dimensionItem.m_menuType = '';
  265. </xsl:when>
  266. <xsl:otherwise>
  267. <xsl:for-each select="/*[local-name()='root']/*[local-name()='dimensions']/ResponseRoot/*/member">
  268. dimBarItem = new CMenuItem(dropDownMenu, '<xsl:value-of select="xtsext:javascriptencode(string(./@memberCaption))"/>', 'slicer(\'<xsl:value-of select="xtsext:javascriptencode(string(./@hierarchyUniqueName))"/>\',\'<xsl:value-of select="xtsext:javascriptencode(string(./@levelUniqueName))"/>\', \'<xsl:value-of select="./@levelNumber"/>\', \'<xsl:value-of select="xtsext:javascriptencode(string(./@_ref))"/>\',\'<xsl:value-of select="xtsext:javascriptencode(string(./@memberCaption))"/>\',\'<xsl:value-of select="/root/env/param[@name='dimIdx']"/>\')', '',gMenuItemStyle, '<xsl:value-of select="$webRoot"/>', '<xsl:value-of select="$skin_root"/>');
  269. dimBarItemDropDown = dimBarItem.createCascadedMenu(gDimbarStyle);
  270. var dimBarItemId<xsl:value-of select="position()-1"/><xsl:value-of select="/root/env/param[@name='uniqueId']"/> = dimBarItem.getId();
  271. dimBarItemDropDown.registerCallback(function test<xsl:value-of select="position()-1"/><xsl:value-of select="/root/env/param[@name='uniqueId']"/>(){loadDimBarItem(dimBarItemId<xsl:value-of select="position()-1"/><xsl:value-of select="/root/env/param[@name='uniqueId']"/>,'<xsl:value-of select="/root/env/param[@name='dimIdx']"/>','<xsl:value-of select="xtsext:javascriptencode(string(./@memberCaption))"/>','<xsl:value-of select="xtsext:javascriptencode(string(./@_ref))"/>');});
  272. </xsl:for-each>
  273. <xsl:if test="/root/*[local-name()='parentMember']">
  274. <xsl:if test="/*[local-name()='root']/*[local-name()='dimensions']/ResponseRoot/*/member">
  275. dropDownMenu.add(gMenuSeperator);
  276. </xsl:if>
  277. dimBarItem = new CMenuItem(dropDownMenu, '<xsl:value-of select="xtsext:javascriptencode(string(/root/*[local-name()='parentMember']/*/*[local-name()='member']/@memberCaption))"/>', 'slicer(\'<xsl:value-of select="xtsext:javascriptencode(string(/root/*[local-name()='parentMember']/*/*[local-name()='member']/@hierarchyUniqueName))"/>\',\'<xsl:value-of select="xtsext:javascriptencode(string(/root/*[local-name()='parentMember']/*/*[local-name()='member']/@levelUniqueName))"/>\', \'<xsl:value-of select="/root/*[local-name()='parentMember']/*/*[local-name()='member']/@levelNumber"/>\', \'<xsl:value-of select="xtsext:javascriptencode(string(/root/*[local-name()='parentMember']/*/*[local-name()='member']/@_ref))"/>\',\'<xsl:value-of select="xtsext:javascriptencode(string(/root/*[local-name()='parentMember']/*/*[local-name()='member']/@memberCaption))"/>\',\'<xsl:value-of select="/root/env/param[@name='dimIdx']"/>\')', '<xsl:value-of select="$webRoot"/>/common/images/tree/nav_up.gif',gMenuItemStyle, '<xsl:value-of select="$webRoot"/>', '<xsl:value-of select="$skin_root"/>');
  278. </xsl:if>
  279. dropDownMenu.draw();
  280. </xsl:otherwise>
  281. </xsl:choose>
  282. }
  283. }
  284. </xsl:template>
  285. </xsl:stylesheet>
  286. </xts:block>
  287. <xts:block id="faultHandler" type="fault" processor="XSLT">
  288. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" exclude-result-prefixes="xsl">
  289. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  290. <xsl:template match="/">
  291. <xsl:choose>
  292. <xsl:when test="//*[local-name()='CAM']/*[local-name()='exception']//*[local-name()='promptInfo'] or contains(//*[local-name()='exception']/*[local-name()='message']/*[local-name()='messageString'], 'QE-DEF-0313')">
  293. <logonFault>timeout</logonFault>
  294. </xsl:when>
  295. <xsl:otherwise>
  296. <soapFault>
  297. <xsl:copy>
  298. <xsl:copy-of select="/root/fault"/>
  299. </xsl:copy>
  300. </soapFault>
  301. </xsl:otherwise>
  302. </xsl:choose>
  303. </xsl:template>
  304. <xsl:template match="text()"/>
  305. </xsl:stylesheet>
  306. </xts:block>
  307. </xts:morphlet>