activities_past.xts 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cogadmin
  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. 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 xmlns:xts="http://developer.cognos.com/schemas/xts/" resolverBase="cogadmin" messageBase="messages/cogadminuimsgs.xml, messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseScheduling canUseMonitorActivityTool or">
  13. <xts:block id="frag_init" nodelist="env, credential" type="exec" mode="interpret" processor="XSLT" path="cogadmin/logicsheets/fragment_init.xslt" condition=".[not(/root/env/param[@name='frag-directive']='meta-only')]" mandatory="true"/>
  14. <!--
  15. Get the histories
  16. -->
  17. <xts:block id="getContent" dependency="frag_init" nodelist="env, header, session, system, http, configProps, user" type="exec" mode="interpret" processor="XSLT">
  18. <xts:logicsheet path="logicsheets/tenantlogic.xsl"/>
  19. <xts:logicsheet path="cogadmin/logicsheets/admin.xslt"/>
  20. <xts:logicsheet path="cogadmin/logicsheets/presentation/filters.xslt"/>
  21. <xts:logicsheet path="/cogadmin/logicsheets/buslogic.xslt"/>
  22. <xsl:stylesheet version="1.0"
  23. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  24. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  25. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  26. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  27. xmlns:flt="http://developer.cognos.com/schemas/uic/presentation/filters/"
  28. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  29. xmlns:admui="http://developer.cognos.com/schemas/xts/admui"
  30. exclude-result-prefixes="xsl xts SOAP-ENV bus xtsext admui flt">
  31. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  32. <!-- common variables -->
  33. <admui:variables/>
  34. <!-- common pager variables -->
  35. <admui:pagerVariables pagerName="past_activities"/>
  36. <xsl:variable name="personalOnly" select="key('env-param', 'personalOnly') ='true' or not(key('session-param','capabilities')/canUseAdministrationPortal)"/>
  37. <!-- Filter options -->
  38. <xsl:variable name="from">
  39. <xsl:choose>
  40. <!-- first time we hit the page, or the user selected the period from the dropdown list -->
  41. <xsl:when test="not(key('env-param','past_filter_period')) or key('env-param','past_filter_period') = 'last_hours'">
  42. <xsl:variable name="last_hours">
  43. <xsl:choose>
  44. <xsl:when test="not(key('env-param','past_filter_last_hours'))">-4</xsl:when>
  45. <xsl:otherwise>
  46. <xsl:value-of select="concat('-',key('env-param','past_filter_last_hours'))"/>
  47. </xsl:otherwise>
  48. </xsl:choose>
  49. </xsl:variable>
  50. <xsl:value-of select="xtsext:getDateTimeOffset( xtsext:getCurrentDateTime(string('GMT')), number($last_hours), string('hour'))"/>
  51. </xsl:when>
  52. <!-- user has used the date/time control to select the dates/times -->
  53. <xsl:when test="key('env-param','past_filter_period') = 'fromto'">
  54. <xsl:value-of select="xtsext:formatDateToUTC(string(concat(substring(key('env-param','past_date_periodFrom'), 1, 10), 'T', substring(string(key('env-param','past_time_periodFrom')), 1,5), ':00')), string($timeZone))"/>
  55. </xsl:when>
  56. </xsl:choose>
  57. </xsl:variable>
  58. <xsl:variable name="to">
  59. <xsl:if test="key('env-param','past_filter_period') = 'fromto'">
  60. <xsl:value-of select="xtsext:formatDateToUTC(string(concat(substring(key('env-param','past_date_periodTo'), 1, 10), 'T', substring(string(key('env-param','past_time_periodTo')), 1,5), ':00')), string($timeZone))"/>
  61. </xsl:if>
  62. </xsl:variable>
  63. <!--
  64. build a searchPath to the runnable
  65. -->
  66. <flt:buildRunnableSearchPath prefix="past"/>
  67. <xsl:variable name="historyPath">
  68. <xsl:value-of select="$runnablePath"/>
  69. <xsl:text>history[@ownerEventID = ''</xsl:text>
  70. <xsl:choose>
  71. <xsl:when test="key('env-param', 'past_filter_ran_by') != ''">
  72. <xsl:text> and containsReferences(@user, </xsl:text>
  73. <xsl:value-of select="key('env-param', 'past_filter_ran_by')"/>
  74. <xsl:text>)</xsl:text>
  75. </xsl:when>
  76. <xsl:when test="$personalOnly">
  77. <xsl:text> and containsReferences(@user, ~)</xsl:text>
  78. </xsl:when>
  79. </xsl:choose>
  80. <xsl:text>]</xsl:text>
  81. <!-- period filter -->
  82. <xsl:text>[@requestedExecutionTime &gt; '</xsl:text>
  83. <xsl:value-of select="$from"/>
  84. <xsl:text>'</xsl:text>
  85. <xsl:if test="$to != ''">
  86. <xsl:text> and @requestedExecutionTime &lt; '</xsl:text>
  87. <xsl:value-of select="$to"/>
  88. <xsl:text>'</xsl:text>
  89. </xsl:if>
  90. <xsl:text>]</xsl:text>
  91. <xsl:if test="not(contains(' own_entries entries_ran ', concat(' ',key('env-param','past_filter_scope'),' ')))">
  92. <xsl:text>[permission(&quot;read&quot;)]</xsl:text>
  93. </xsl:if>
  94. <!-- dispatcher filter -->
  95. <xsl:if test="key('env-param','past_filter_dispatcher') and key('env-param','past_filter_dispatcher') != ''">
  96. <xsl:text>[@dispatcherID = '</xsl:text>
  97. <xsl:value-of select="key('env-param','past_filter_dispatcher')"/>
  98. <xsl:text>']</xsl:text>
  99. </xsl:if>
  100. <!-- tenantid filter -->
  101. <xsl:if test="key('env-param','past_filter_tenantid') and key('env-param','past_filter_tenantid') != ''">
  102. <xsl:text>[@tenantID = '</xsl:text>
  103. <xsl:value-of select="key('env-param','past_filter_tenantid')"/>
  104. <xsl:text>']</xsl:text>
  105. </xsl:if>
  106. <!-- add a filter on status to make sure we only get completed histories -->
  107. <xsl:text>[@status='terminated' or @status='purged' or @status='failed' or @status='succeeded' or @status='cancelled']</xsl:text>
  108. </xsl:variable>
  109. <xsl:template match="/">
  110. <xts:sequence>
  111. <xts:append select="/root">
  112. <response>
  113. <xts:request href="bus://dispatcher" protocol="NAV" responseEnvelope="false" outputHeader="false">
  114. <SOAP-ENV:Envelope xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/" 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">
  115. <SOAP-ENV:Header>
  116. <xsl:copy-of select="/root/header/bus:biBusHeader"/>
  117. </SOAP-ENV:Header>
  118. <SOAP-ENV:Body>
  119. <nav:search>
  120. <!-- nav options -->
  121. <nav:validateTag fault="true"/>
  122. <nav:scope>
  123. <xsl:value-of select="$historyPath"/>
  124. <!-- Status filter -->
  125. <xsl:if test="key('env-param','past_filter_status') and key('env-param','past_filter_status') != ''">
  126. <xsl:text>[@status = '</xsl:text>
  127. <xsl:value-of select="key('env-param','past_filter_status')"/>
  128. <xsl:text>'</xsl:text>
  129. <xsl:if test="key('env-param','past_filter_status') = 'cancelled'">
  130. <xsl:text> or @status = 'terminated' or @status = 'purged'</xsl:text>
  131. </xsl:if>
  132. <xsl:text>]</xsl:text>
  133. </xsl:if>
  134. </nav:scope>
  135. <nav:property name="fullPath"/>
  136. <nav:property name="icons"/>
  137. <nav:property name="searchPath"/>
  138. <nav:property name="times"/>
  139. <nav:property name="position"/>
  140. <nav:property name="eventID"/>
  141. <nav:property name="status"/>
  142. <nav:property name="requestedExecutionTime"/>
  143. <nav:property name="actualExecutionTime"/>
  144. <nav:property name="actualCompletionTime"/>
  145. <nav:property name="userInfo"/>
  146. <nav:property name="internalId"/>
  147. <nav:property name="permissions"/>
  148. <nav:property name="screenTip"/>
  149. <nav:property name="tenantID"/>
  150. <nav:property name="maximumDetailSeverity"/>
  151. <nav:property name="dispatcherID"/>
  152. <nav:property name="hidden"/>
  153. <nav:property name="shown"/>
  154. <!-- nav properties -->
  155. <nav:recursive>false</nav:recursive>
  156. <nav:param name="backUrl">false</nav:param>
  157. <nav:param name="urlFlags">h1cu</nav:param>
  158. <nav:param name="mode">admin</nav:param>
  159. <nav:maxObjects><xsl:value-of select="$maxObjects"/></nav:maxObjects>
  160. <nav:skipObjects><xsl:value-of select="$skipObjects"/></nav:skipObjects>
  161. <nav:sort>
  162. <xsl:attribute name="order">
  163. <xsl:choose>
  164. <xsl:when test="key('env-param', 'sort_order')='ascending'">ascending</xsl:when>
  165. <xsl:otherwise>descending</xsl:otherwise>
  166. </xsl:choose>
  167. </xsl:attribute>
  168. <xsl:choose>
  169. <xsl:when test="key('env-param', 'sort_column') != ''">
  170. <xsl:value-of select="key('env-param', 'sort_column')"/>
  171. </xsl:when>
  172. <xsl:otherwise>
  173. <xsl:text>requestedExecutionTime</xsl:text>
  174. </xsl:otherwise>
  175. </xsl:choose>
  176. </nav:sort>
  177. <!-- common nav params -->
  178. <admui:commonNavParams/>
  179. </nav:search>
  180. </SOAP-ENV:Body>
  181. </SOAP-ENV:Envelope>
  182. </xts:request>
  183. </response>
  184. </xts:append>
  185. </xts:sequence>
  186. <xts:sequence>
  187. <!--
  188. todo: put back the check to show/hide parts of the UI post beta once a solution is figured out for cogadmin
  189. <xsl:if test="key('system-param', 'enable-history-counts')='true'">
  190. -->
  191. <xts:append>
  192. <send:request provider="cm">
  193. <cm:queryCount xmlns:cm="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">
  194. <search xsi:type="xsd:string">
  195. <xsl:value-of select="$historyPath"/>
  196. </search>
  197. <property xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:propEnum">status</property>
  198. </cm:queryCount>
  199. </send:request>
  200. </xts:append>
  201. </xts:sequence>
  202. <xts:sequence>
  203. <!-- query dispatcher names when not in personal only mode -->
  204. <xts:append select="/root">
  205. <dispatchers>
  206. <xsl:if test="not($personalOnly)">
  207. <send:request provider="cm">
  208. <cm:query xmlns:cm="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">
  209. <search xsi:type="xsd:string">/configuration//dispatcher</search>
  210. <properties xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:propEnum[]">
  211. <item xsi:type="cm:propEnum">dispatcherID</item>
  212. <item xsi:type="cm:propEnum">dispatcherPath</item>
  213. </properties>
  214. </cm:query>
  215. </send:request>
  216. </xsl:if>
  217. </dispatchers>
  218. </xts:append>
  219. </xts:sequence>
  220. </xsl:template>
  221. </xsl:stylesheet>
  222. </xts:block>
  223. <!-- Merge the tenantNames into the response -->
  224. <xts:block processor="XSLT" type="exec" mandatory="false"
  225. path="/portal/tenancy/mergeTenantNames.xslt"
  226. id="mergeTenantNames"
  227. dependency="getContent"
  228. condition=".[/root/session/param[@name='e_showTenantInfo']='true']">
  229. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  230. </xts:block>
  231. <!--
  232. render the HTML
  233. -->
  234. <xts:block id="getMeta" type="exec" mode="interpret" nodelist="env" processor="XSLT">
  235. <xsl:stylesheet version="1.0"
  236. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  237. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  238. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  239. exclude-result-prefixes="xsl xts xos xtsext">
  240. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  241. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  242. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  243. <xsl:template match="/">
  244. <xts:sequence>
  245. <xts:append select="/root/output">
  246. <xos:part>
  247. <xos:entityHeader>
  248. <xos:param name="Content-Type">text/xml; charset=utf-8</xos:param>
  249. </xos:entityHeader>
  250. <xos:entityBody>
  251. <fragment>
  252. <library type="text/javascript" href="$WEB$/ps/cogadmin/js/barchart.js"/>
  253. <info>
  254. <title><xts:string id="IDS_PAC_TITLE"/></title>
  255. </info>
  256. <preferredTitle>
  257. <xts:string id="IDS_PAC_TITLE"/>
  258. </preferredTitle>
  259. <meta>
  260. <customProperties name="personalOnly">
  261. <datatype>xs:boolean</datatype>
  262. <default>
  263. <value>false</value>
  264. </default>
  265. <control appearance="hidden" />
  266. <validate>
  267. <name>fixed</name>
  268. <rule>
  269. <type>
  270. <boolean/>
  271. </type>
  272. </rule>
  273. </validate>
  274. </customProperties>
  275. <transientProperties name="timestamp">
  276. <validate>
  277. <name>timestamp</name>
  278. <ruleRef id="fragment-cogadmin:timestamp"/>
  279. </validate>
  280. </transientProperties>
  281. <transientProperties name="past_filter_status">
  282. <validate>
  283. <name>past_filter_status</name>
  284. <ruleRef id="fragment-cogadmin:filter_status"/>
  285. </validate>
  286. </transientProperties>
  287. <transientProperties name="past_filter_type">
  288. <validate>
  289. <name>past_filter_type</name>
  290. <ruleRef id="fragment-cogadmin:filter_type"/>
  291. </validate>
  292. </transientProperties>
  293. <transientProperties name="past_filter_scope">
  294. <validate>
  295. <name>past_filter_scope</name>
  296. <ruleRef id="fragment-cogadmin:filter_scope"/>
  297. </validate>
  298. </transientProperties>
  299. <transientProperties name="past_filter_dispatcher">
  300. <validate>
  301. <name>past_filter_dispatcher</name>
  302. <ruleRef id="fragment-cogadmin:filter_dispatcher"/>
  303. </validate>
  304. </transientProperties>
  305. <transientProperties name="past_filter_tenantid">
  306. <validate>
  307. <name>past_filter_tenantid</name>
  308. <ruleRef id="fragment-cogadmin:filter_tenantid"/>
  309. </validate>
  310. </transientProperties>
  311. <transientProperties name="past_filter_period">
  312. <default>
  313. <value>last_hours</value>
  314. </default>
  315. <validate>
  316. <name>past_filter_period</name>
  317. <ruleRef id="fragment-cogadmin:filter_period"/>
  318. </validate>
  319. </transientProperties>
  320. <transientProperties name="past_filter_last_hours">
  321. <default>
  322. <value>4</value>
  323. </default>
  324. <validate>
  325. <name>past_filter_last_hours</name>
  326. <ruleRef id="fragment-cogadmin:filter_last_hours"/>
  327. </validate>
  328. </transientProperties>
  329. <transientProperties name="past_date_periodFrom">
  330. <validate>
  331. <name>past_date_periodFrom</name>
  332. <ruleRef id="fragment-cogadmin:date_period"/>
  333. </validate>
  334. </transientProperties>
  335. <transientProperties name="past_time_periodFrom">
  336. <validate>
  337. <name>past_time_periodFrom</name>
  338. <ruleRef id="fragment-cogadmin:time_period"/>
  339. </validate>
  340. </transientProperties>
  341. <transientProperties name="past_date_periodTo">
  342. <validate>
  343. <name>past_date_periodTo</name>
  344. <ruleRef id="fragment-cogadmin:date_period"/>
  345. </validate>
  346. </transientProperties>
  347. <transientProperties name="past_time_periodTo">
  348. <validate>
  349. <name>past_time_periodTo</name>
  350. <ruleRef id="fragment-cogadmin:time_period"/>
  351. </validate>
  352. </transientProperties>
  353. <transientProperties name="past_filter_owned_by">
  354. <validate>
  355. <name>past_filter_owned_by</name>
  356. <ruleRef id="fragment-cogadmin:user"/>
  357. </validate>
  358. </transientProperties>
  359. <transientProperties name="past_filter_ran_by">
  360. <validate>
  361. <name>past_filter_ran_by</name>
  362. <ruleRef id="fragment-cogadmin:user"/>
  363. </validate>
  364. </transientProperties>
  365. <globalValidator>
  366. <parameter>
  367. <name>sort_order</name>
  368. <ruleRef id="fragment-cogadmin:sort_order"/>
  369. </parameter>
  370. </globalValidator>
  371. <requiredCapabilities>canUseScheduling canUseMonitorActivityTool or</requiredCapabilities>
  372. </meta>
  373. <state>
  374. <xsl:variable name="state">
  375. <xsl:text>&lt;param name="personalOnly"&gt;</xsl:text>
  376. <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='personalOnly']))"/>
  377. <xsl:text>&lt;/param&gt;</xsl:text>
  378. </xsl:variable>
  379. <xsl:value-of select="xtsext:base64encode($state,true())"/>
  380. </state>
  381. </fragment>
  382. </xos:entityBody>
  383. </xos:part>
  384. </xts:append>
  385. </xts:sequence>
  386. </xsl:template>
  387. </xsl:stylesheet>
  388. </xts:block>
  389. <!-- get bar chart data -->
  390. <xts:block id="getChart" dependency="frag_init getContent" nodelist="cm:queryCountResponse, env, user, http" type="exec" mode="interpret" processor="XSLT" mandatory="true">
  391. <xsl:stylesheet version="1.0"
  392. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  393. exclude-result-prefixes="xsl xts">
  394. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  395. <xsl:key name="query-count" match="/root/*[local-name()='queryCountResponse']/queryCountResult/item" use="value"/>
  396. <xsl:template match="/">
  397. <xts:sequence>
  398. <xts:append select="/root">
  399. <barChart>
  400. <type><xsl:value-of select="'Bars'"/></type>
  401. <yTitle><xts:string id="IDS_BARCHART_TITLE_NUMBER_OF_ACTIVITIES"/></yTitle>
  402. <xTitle><xts:string id="IDS_BARCHART_TITLE_MONITORING_ACTIVITIES"/></xTitle>
  403. <row>
  404. <label><xts:string id="IDS_BARCHART_SUCCEEDED"/></label>
  405. <value><xsl:value-of select="string(key('query-count','succeeded')/count)"/></value>
  406. </row>
  407. <row>
  408. <label><xts:string id="IDS_BARCHART_FAILED"/></label>
  409. <value><xsl:value-of select="string(key('query-count','failed')/count)"/></value>
  410. </row>
  411. <row>
  412. <label><xts:string id="IDS_BARCHART_CANCELLED"/></label>
  413. <value>
  414. <xsl:variable name="cancelledCount">
  415. <xsl:choose>
  416. <xsl:when test="key('query-count','cancelled')/count"><xsl:value-of select="key('query-count','cancelled')/count"/></xsl:when>
  417. <xsl:otherwise>0</xsl:otherwise>
  418. </xsl:choose>
  419. </xsl:variable>
  420. <xsl:variable name="terminatedCount">
  421. <xsl:choose>
  422. <xsl:when test="key('query-count','terminated')/count"><xsl:value-of select="key('query-count','terminated')/count"/></xsl:when>
  423. <xsl:otherwise>0</xsl:otherwise>
  424. </xsl:choose>
  425. </xsl:variable>
  426. <xsl:variable name="purgedCount">
  427. <xsl:choose>
  428. <xsl:when test="key('query-count','purged')/count"><xsl:value-of select="key('query-count','purged')/count"/></xsl:when>
  429. <xsl:otherwise>0</xsl:otherwise>
  430. </xsl:choose>
  431. </xsl:variable>
  432. <xsl:value-of select="number($cancelledCount) + number($terminatedCount) + number($purgedCount)"/>
  433. </value>
  434. </row>
  435. </barChart>
  436. </xts:append>
  437. <xts:append select="/root">
  438. <xts:transform src="/cogadmin/transforms/getChartUrl.xslt" processor="XSLT">
  439. <xts:param name="logicsheet">/cogadmin/logicsheets/presentation/common.xslt</xts:param>
  440. <root>
  441. <xts:queryNode select="/root/barChart"/>
  442. </root>
  443. </xts:transform>
  444. </xts:append>
  445. </xts:sequence>
  446. </xsl:template>
  447. </xsl:stylesheet>
  448. </xts:block>
  449. <xts:block id="renderMarkup" nodelist="env, user, session, cogadminChartUrl" type="exec" processor="XSLT" mode="interpret" dependency="frag_init mergeTenantNames getChart getMeta">
  450. <xts:logicsheet path="cogadmin/logicsheets/admin.xslt"/>
  451. <xsl:stylesheet version="1.0"
  452. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  453. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  454. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  455. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  456. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  457. xmlns:val="http://developer.cognos.com/schemas/validator/1/"
  458. xmlns:fragment="urn:cognos:fragments:validator"
  459. xmlns:fragment-cogadmin="urn:cognos:fragments:validator:cogadmin"
  460. xmlns:admui="http://developer.cognos.com/schemas/xts/admui"
  461. exclude-result-prefixes="xsl xts SOAP-ENV xos bus admui">
  462. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  463. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  464. <xsl:template match="/">
  465. <xts:sequence>
  466. <xts:append select="/root/output/*[local-name()='part']/*[local-name()='entityBody']/fragment">
  467. <markup>
  468. <mimeType>text/html</mimeType>
  469. <markupXml>
  470. <xts:transform src="/cogadmin/transforms/presentation/renderFragment.xslt" processor="XSLT">
  471. <xts:param name="messageBase">/messages/cogadminuimsgs.xml</xts:param>
  472. <xts:param name="logicsheet">/cogadmin/logicsheets/admin.xslt</xts:param>
  473. <root>
  474. <!-- Generate UI markup using the response and metadata -->
  475. <xts:transform src="/cogadmin/transforms/gen-ui-markup/activities_past.xslt" processor="XSLT">
  476. <xts:param name="messageBase">/messages/cogadminuimsgs.xml</xts:param>
  477. <xts:param name="messageBase">/messages/portal.xml</xts:param>
  478. <xts:param name="messageBase">/messages/portalRL.xml</xts:param>
  479. <xts:param name="logicsheet">/cogadmin/logicsheets/presentation/common.xslt</xts:param>
  480. <xts:param name="logicsheet">/cogadmin/logicsheets/presentation/pager.xslt</xts:param>
  481. <xts:param name="logicsheet">/cogadmin/logicsheets/admin.xslt</xts:param>
  482. <root>
  483. <xts:queryNode select="/root/*[local-name()='queryCountResponse'] | /root/response/* | /root/dispatchers | /root/user | /root/metadata | /root/system | /root/session | /root/env"/>
  484. </root>
  485. </xts:transform>
  486. <xts:queryNode select="/root/system | /root/session | /root/env | /root/user"/>
  487. </root>
  488. </xts:transform>
  489. </markupXml>
  490. </markup>
  491. <subfragment id="cogadminChart">
  492. <xsl:attribute name="href">
  493. <xsl:value-of select="/root/cogadminChartUrl"/>
  494. </xsl:attribute>
  495. </subfragment>
  496. </xts:append>
  497. </xts:sequence>
  498. </xsl:template>
  499. </xsl:stylesheet>
  500. </xts:block>
  501. </xts:morphlet>