customizeGroupsRequest.xts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" requiredCapability="canUseQueryStudio">
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: qs
  5. (C) Copyright IBM Corp. 2001, 2019
  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:block id="convertParameters" condition=".[/root/env/param[@name='xxExecutionParameters']!='']" mode="interpret" processor="XSLT" type="exec" mandatory="false">
  13. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  14. <xsl:template match="/">
  15. <xts:sequence>
  16. <xts:append select="/root">
  17. <executionParameters>
  18. <xsl:choose>
  19. <xsl:when test="starts-with(/root/env/param[@name='xxExecutionParameters'], 'CAF')">
  20. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap_settemplatename_filterpicklist_settemplateid_01', string(/root/env/param[@name='xxExecutionParameters'])), true())" disable-output-escaping="yes"/>
  21. </xsl:when>
  22. <xsl:otherwise>
  23. <xsl:value-of select="xtsext:web64decode(string(/root/env/param[@name='xxExecutionParameters']), true())" disable-output-escaping="yes"/>
  24. </xsl:otherwise>
  25. </xsl:choose>
  26. </executionParameters>
  27. </xts:append>
  28. </xts:sequence>
  29. </xsl:template>
  30. </xsl:stylesheet>
  31. </xts:block>
  32. <xts:block id="wait" condition=".[/root/env/param[@name='ui.action']='wait']" mode="interpret" processor="XSLT" type="exec" mandatory="false">
  33. <xsl:stylesheet version="1.0"
  34. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  35. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  36. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  37. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  38. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  39. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  40. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  41. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  42. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  43. exclude-result-prefixes="xsl xtsext xos cm bus SOAP-ENV xsi">
  44. <xsl:output method="xml"/>
  45. <xsl:template match="/root">
  46. <xts:sequence>
  47. <xts:append select="/root">
  48. <doWait/>
  49. </xts:append>
  50. <xts:append select="/root">
  51. <xts:request href="bus://dispatcher" protocol="BUS" responseEnvelope="true" outputHeader="true" soapAction="http://www.ibm.com/xmlns/prod/cognos/reportService/201404/.absolute">
  52. <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  53. <SOAP-ENV:Header>
  54. <bus:biBusHeader xsi:type="bus:biBusHeader" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/">
  55. <xsl:if test="/root/env/param[@name='m_tracking']!='' or /root/header/bus:biBusHeader/bus:tracking">
  56. <bus:tracking>
  57. <xsl:choose>
  58. <xsl:when test="/root/env/param[@name='m_tracking']!=''">
  59. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap', string(/root/env/param[@name='m_tracking'])), true())" disable-output-escaping="yes"/>
  60. </xsl:when>
  61. <xsl:otherwise>
  62. <xsl:apply-templates select="/root/header/bus:biBusHeader/bus:tracking"/>
  63. </xsl:otherwise>
  64. </xsl:choose>
  65. </bus:tracking>
  66. </xsl:if>
  67. <xsl:choose>
  68. <xsl:when test="/root/env/param[@name='ui.routingServerGroup']!=''">
  69. <bus:routing>
  70. <routingServerGroup>
  71. <xsl:value-of select="/root/env/param[@name='ui.routingServerGroup']"/>
  72. </routingServerGroup>
  73. </bus:routing>
  74. <xsl:apply-templates select="/root/header/bus:biBusHeader/*[local-name()!='routing' and local-name()!='tracking']"/>
  75. </xsl:when>
  76. <xsl:otherwise>
  77. <xsl:apply-templates select="/root/header/bus:biBusHeader/*[local-name()!='tracking']"/>
  78. </xsl:otherwise>
  79. </xsl:choose>
  80. </bus:biBusHeader>
  81. </SOAP-ENV:Header>
  82. <SOAP-ENV:Body>
  83. <xsl:element name="wait" namespace="http://developer.cognos.com/schemas/reportService/1">
  84. <bus:conversation xsi:type="bus:asynchRequest" xsi:nil="true"/>
  85. <parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]"/>
  86. <options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:option[]"/>
  87. </xsl:element>
  88. </SOAP-ENV:Body>
  89. </SOAP-ENV:Envelope>
  90. </xts:request>
  91. </xts:append>
  92. </xts:sequence>
  93. </xsl:template>
  94. <xsl:template match="*">
  95. <xsl:copy>
  96. <xsl:copy-of select="@*"/>
  97. <xsl:apply-templates/>
  98. </xsl:copy>
  99. </xsl:template>
  100. </xsl:stylesheet>
  101. </xts:block>
  102. <xts:block id="getOutput" condition=".[(/root/*[local-name()='doWait']) and (/root/*[local-name()='Envelope']/*[local-name()='Body']/*/*[local-name()='result']/*[local-name()='details']/*[local-name()='item']/*[local-name()='status']='responseReady')]" mode="interpret" processor="XSLT" type="exec" dependency="wait" mandatory="false">
  103. <xsl:stylesheet version="1.0"
  104. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  105. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  106. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  107. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  108. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  109. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  110. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  111. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  112. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  113. exclude-result-prefixes="xsl xtsext xos cm bus SOAP-ENV xsi">
  114. <xsl:output method="xml"/>
  115. <xsl:template match="/root">
  116. <xts:sequence>
  117. <xts:replace select="/root/*[local-name()='Envelope']">
  118. <xts:request href="bus://dispatcher" protocol="BUS" responseEnvelope="true" outputHeader="true" soapAction="http://www.ibm.com/xmlns/prod/cognos/reportService/201404/.absolute">
  119. <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  120. <SOAP-ENV:Header>
  121. <bus:biBusHeader xsi:type="bus:biBusHeader" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/">
  122. <xsl:if test="/root/env/param[@name='m_tracking']!='' or /root/header/bus:biBusHeader/bus:tracking">
  123. <bus:tracking>
  124. <xsl:choose>
  125. <xsl:when test="/root/env/param[@name='m_tracking']!=''">
  126. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap', string(/root/env/param[@name='m_tracking'])), true())" disable-output-escaping="yes"/>
  127. </xsl:when>
  128. <xsl:otherwise>
  129. <xsl:apply-templates select="/root/header/bus:biBusHeader/bus:tracking"/>
  130. </xsl:otherwise>
  131. </xsl:choose>
  132. </bus:tracking>
  133. </xsl:if>
  134. <xsl:choose>
  135. <xsl:when test="/root/env/param[@name='ui.routingServerGroup']!=''">
  136. <bus:routing>
  137. <routingServerGroup>
  138. <xsl:value-of select="/root/env/param[@name='ui.routingServerGroup']"/>
  139. </routingServerGroup>
  140. </bus:routing>
  141. <xsl:apply-templates select="/root/header/bus:biBusHeader/*[local-name()!='routing' and local-name()!='tracking']"/>
  142. </xsl:when>
  143. <xsl:otherwise>
  144. <xsl:apply-templates select="/root/header/bus:biBusHeader/*[local-name()!='tracking']"/>
  145. </xsl:otherwise>
  146. </xsl:choose>
  147. </bus:biBusHeader>
  148. </SOAP-ENV:Header>
  149. <SOAP-ENV:Body>
  150. <xsl:element name="getOutput" namespace="http://developer.cognos.com/schemas/reportService/1">
  151. <bus:conversation xsi:type="bus:asynchRequest" xsi:nil="true"/>
  152. <parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]"/>
  153. <options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:option[]"/>
  154. </xsl:element>
  155. </SOAP-ENV:Body>
  156. </SOAP-ENV:Envelope>
  157. </xts:request>
  158. </xts:replace>
  159. </xts:sequence>
  160. </xsl:template>
  161. <xsl:template match="*">
  162. <xsl:copy>
  163. <xsl:copy-of select="@*"/>
  164. <xsl:apply-templates/>
  165. </xsl:copy>
  166. </xsl:template>
  167. </xsl:stylesheet>
  168. </xts:block>
  169. <xts:block id="getContent" condition=".[not(/root/*[local-name()='doWait'])]" mode="interpret" processor="XSLT" type="exec" dependency="getOutput convertParameters" mandatory="false">
  170. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  171. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/">
  172. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  173. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  174. <xsl:template match="/">
  175. <xts:sequence>
  176. <xts:append>
  177. <xts:request responseEnvelope="true" outputHeader="true" asText="true" href="bus://dispatcher" protocol="BUS" soapAction="http://www.ibm.com/xmlns/prod/cognos/reportService/201404/" faultBlock="faultHandler">
  178. <SOAP-ENV:Envelope 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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  179. <SOAP-ENV:Header>
  180. <bus:biBusHeader xsi:type="bus:biBusHeader">
  181. <!--<xsl:choose>
  182. <xsl:when test="/root/env/param[@name='ui.routingServerGroup']!=''">
  183. <bus:routing>
  184. <routingServerGroup>
  185. <xsl:value-of select="/root/env/param[@name='ui.routingServerGroup']"/>
  186. </routingServerGroup>
  187. </bus:routing>
  188. <xsl:apply-templates select="/root/header/bus:biBusHeader/*[local-name()!='routing' and local-name() != 'dispatcherTransportVars']"/>
  189. </xsl:when>
  190. <xsl:otherwise>
  191. --><!-- For bug 611371. Don't copy the dispatcherTransportVars since these are copied directly from
  192. the browser. This can cause permission problems due to a 'front' = 'true' variable signifying
  193. this as an external request, even though it's internal. --><!--
  194. <xsl:apply-templates select="/root/header/bus:biBusHeader/*[local-name() != 'dispatcherTransportVars']"/>
  195. </xsl:otherwise>
  196. </xsl:choose>-->
  197. <xsl:if test="/root/env/param[@name='markup_track']!=''">
  198. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap', string(key('env-param','markup_track'))), true())" disable-output-escaping="yes"/>
  199. </xsl:if>
  200. <xsl:apply-templates select="/root/header/*[local-name() = 'biBusHeader']/*[local-name() != 'tracking' and local-name() != 'dispatcherTransportVars']"/>
  201. <xsl:if test="string(/root/env/param[@name='ui.routingServerGroup'])!=''">
  202. <bus:routing xsi:type="bus:routingInfo">
  203. <routingServerGroup>
  204. <xsl:value-of select="/root/env/param[@name='ui.routingServerGroup']"/>
  205. </routingServerGroup>
  206. </bus:routing>
  207. </xsl:if>
  208. </bus:biBusHeader>
  209. </SOAP-ENV:Header>
  210. <SOAP-ENV:Body>
  211. <runSpecification xmlns="http://developer.cognos.com/schemas/reportService/1">
  212. <specification xsi:type="bus:reportServiceReportSpecification">
  213. <bus:value xsi:type="bus:specification">
  214. &lt;report expressionLocale=&quot;<xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='xxExprLocale']))"/>&quot; xmlns=&quot;http://developer.cognos.com/schemas/report/5.0/&quot;&gt;
  215. &lt;layouts&gt;
  216. &lt;layout&gt;
  217. &lt;reportPages&gt;
  218. &lt;page name=&quot;PromptPage&quot;&gt;
  219. &lt;pageBody&gt;
  220. &lt;contents&gt;
  221. &lt;selectValue parameter=&quot;Parameter1&quot; refQuery=&quot;Query1&quot;&gt;
  222. &lt;useItem refDataItem=&quot;<xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='xxColumnName']))"/>&quot;&gt;
  223. &lt;displayItem refDataItem=&quot;<xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='xxColumnName']))"/>&quot;/&gt;
  224. &lt;/useItem&gt;
  225. &lt;sortList&gt;
  226. &lt;sortItem refDataItem=&quot;<xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='xxColumnName']))"/>&quot; sortOrder=&quot;ascending&quot;/&gt;
  227. &lt;/sortList&gt;
  228. &lt;/selectValue&gt;
  229. &lt;/contents&gt;
  230. &lt;/pageBody&gt;
  231. &lt;/page&gt;
  232. &lt;/reportPages&gt;
  233. &lt;/layout&gt;
  234. &lt;/layouts&gt;
  235. &lt;modelPath&gt;<xsl:value-of select="xtsext:xmlencode(xtsext:urldecode(string(/root/env/param[@name='xxModelName'])))"/>&lt;/modelPath&gt;
  236. &lt;queries&gt;
  237. &lt;query name=&quot;Query1&quot;&gt;
  238. &lt;source&gt;
  239. &lt;model/&gt;
  240. &lt;/source&gt;
  241. &lt;selection&gt;
  242. &lt;dataItem name=&quot;<xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='xxColumnName']))"/>&quot; <xsl:if test="/root/env/param[@name='xxDetailAggregateType'] != ''">aggregate=&quot;<xsl:value-of select="/root/env/param[@name='xxDetailAggregateType']"/>&quot;</xsl:if>&gt;
  243. &lt;expression&gt;
  244. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='xxColumnExpression']))"/>
  245. &lt;/expression&gt;
  246. &lt;/dataItem&gt;
  247. <xsl:for-each select="/root/env/param[@name='xxOtherCols']">
  248. <xsl:variable name="var"><xsl:value-of select="."/></xsl:variable>
  249. <xsl:variable name="colLabel"><xsl:value-of select="substring-before($var,',')"/></xsl:variable>
  250. <xsl:variable name="colExpr"><xsl:value-of select="substring-after($var,',')"/></xsl:variable>
  251. &lt;dataItem name=&quot;<xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name=$colLabel]))"/>&quot;&gt;
  252. &lt;expression&gt;
  253. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name=$colExpr]))"/>
  254. &lt;/expression&gt;
  255. &lt;/dataItem&gt;
  256. </xsl:for-each>
  257. &lt;/selection&gt;
  258. &lt;/query&gt;
  259. &lt;/queries&gt;
  260. &lt;/report&gt;
  261. </bus:value>
  262. </specification>
  263. <parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]">
  264. <xsl:for-each select="/root/env/param[@name='xxPromptValues']">
  265. <xsl:value-of select="." disable-output-escaping="yes"/>
  266. </xsl:for-each>
  267. <xsl:if test="/root/executionParameters">
  268. <xsl:copy-of select="/root/executionParameters/*[local-name()='parameters']/*"/>
  269. </xsl:if>
  270. </parameterValues>
  271. <options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:option[]">
  272. <item xsi:type="bus:runOptionStringArray">
  273. <bus:name xsi:type="bus:runOptionEnum">outputFormat</bus:name>
  274. <bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[1]">
  275. <item>XHTML</item>
  276. </bus:value>
  277. </item>
  278. <item xsi:type="bus:runOptionAnyURI">
  279. <bus:name xsi:type="bus:runOptionEnum">xslURL</bus:name>
  280. <bus:value xsi:type="xsd:string">null.xsl</bus:value>
  281. </item>
  282. <item xsi:type="bus:asynchOptionInt">
  283. <bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
  284. <bus:value xsi:type="xsd:int">3</bus:value>
  285. </item>
  286. <item xsi:type="bus:runOptionBoolean">
  287. <bus:name xsi:type="bus:runOptionEnum">prompt</bus:name>
  288. <bus:value xsi:type="xsd:boolean">false</bus:value>
  289. </item>
  290. <item xsi:type="bus:runOptionBoolean">
  291. <bus:name xsi:type="bus:runOptionEnum">selectionBasedFeatures</bus:name>
  292. <bus:value xsi:type="xsd:boolean">false</bus:value>
  293. </item>
  294. <xsl:if test="/root/env/param[@name='xxDesignMode'] = 'true'">
  295. <item xsi:type="bus:runOptionData">
  296. <bus:name xsi:type="bus:runOptionEnum">data</bus:name>
  297. <bus:value xsi:type="bus:dataEnum">previewWithLimitedData</bus:value>
  298. </item>
  299. </xsl:if>
  300. </options>
  301. </runSpecification>
  302. </SOAP-ENV:Body>
  303. </SOAP-ENV:Envelope>
  304. </xts:request>
  305. </xts:append>
  306. </xts:sequence>
  307. </xsl:template>
  308. <xsl:template match="*">
  309. <xsl:copy>
  310. <xsl:copy-of select="@*"/>
  311. <xsl:apply-templates/>
  312. </xsl:copy>
  313. </xsl:template>
  314. </xsl:stylesheet>
  315. </xts:block>
  316. <xts:block id="appendDocument" mode="interpret" processor="XSLT" type="exec" dependency="getContent">
  317. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:cm="http://developer.cognos.com/schemas/cm/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts cm bus xtsext">
  318. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  319. <xsl:template match="/root">
  320. <xts:sequence>
  321. <xts:append select="/root">
  322. <xsl:value-of select="/root/*[local-name()='Envelope']/*[local-name()='Body']/*/*[local-name()='result']/*[local-name()='details']/*[local-name()='item']/*[local-name()='outputPages']/*[local-name()='item']" disable-output-escaping="yes"/>
  323. </xts:append>
  324. </xts:sequence>
  325. </xsl:template>
  326. </xsl:stylesheet>
  327. </xts:block>
  328. <xts:block id="parseContent" mode="output" processor="XSLT" type="exec" mimeType="application/x-javascript" dependency="appendDocument">
  329. <xts:logicsheet path="logicsheets/portal.xsl"/>
  330. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" version="1.0">
  331. <xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
  332. <pf:variables/>
  333. <xsl:template match="/root">
  334. <xsl:choose>
  335. <xsl:when test="/root/*[local-name()='Envelope']/*[local-name()='Body']/*/*[local-name()='result']/*[local-name()='status']='working' or /root/*[local-name()='Envelope']/*[local-name()='Body']/*/*[local-name()='result']/*[local-name()='status']='stillWorking'">
  336. <xsl:text>var status='working';</xsl:text>
  337. <xsl:variable name="markup-track">
  338. <xsl:apply-templates select="/root/*[local-name()='Envelope']/*[local-name()='Header']/*[local-name()='biBusHeader']/*[local-name()='tracking']/*[local-name() = 'conversationContext']" mode="markup"/>
  339. </xsl:variable>
  340. <xsl:text>var tracking = '</xsl:text>
  341. <xsl:value-of select="xtsext:javascriptencode(string(xtsext:cafaction(concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($markup-track), true()))))"/>
  342. <xsl:text>';</xsl:text>
  343. </xsl:when>
  344. <xsl:when test="/root/logonFault">
  345. <xsl:text/>FAULT;timeout<xsl:text/>
  346. </xsl:when>
  347. <xsl:otherwise>
  348. <xsl:if test="/root/Document/DATA/PAGE/OTR/OTD/selectValue/@dataType!=''">
  349. <xsl:text/>setupDataType("<xsl:value-of select="xtsext:javascriptencode(/root/Document/DATA/PAGE/OTR/OTD/selectValue/@dataType)"/>");<xsl:text/>
  350. </xsl:if>
  351. <xsl:for-each select="/root/Document/DATA/PAGE/OTR/OTD/selectValue/selectOptions/selectOption">
  352. <xsl:text/>addToAvailableValues("<xsl:value-of select="xtsext:javascriptencode(./@useValue)"/>","<xsl:value-of select="xtsext:javascriptencode(./@displayValue)"/>");<xsl:text/>
  353. </xsl:for-each>
  354. </xsl:otherwise>
  355. </xsl:choose>
  356. </xsl:template>
  357. <pf:serialize-xml/>
  358. </xsl:stylesheet>
  359. </xts:block>
  360. <xts:block id="faultHandler" path="qs/logicsheets/faultHandler.xsl" type="fault" processor="XSLT"/>
  361. </xts:morphlet>