new_drillthru_scope.xts 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. *****************************************************************
  4. ** Licensed Materials - Property of IBM
  5. **
  6. ** IBM Cognos Products: drill
  7. **
  8. ** (C) Copyright IBM Corp. 2001, 2015
  9. **
  10. ** US Government Users Restricted Rights - Use, duplication or
  11. ** disclosure restricted by GSA ADP Schedule Contract with
  12. ** IBM Corp.
  13. *****************************************************************
  14. -->
  15. <!--
  16. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  17. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  18. -->
  19. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" messageBase="messages/portal.xml,messages/portalRL.xml">
  20. <!--
  21. ===============================================================================================
  22. formlogic_init - standard form logic initialization
  23. ===============================================================================================
  24. -->
  25. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  26. <!--
  27. ===============================================================================================
  28. getRoutingServerContent - Get the routing server information from CM
  29. ===============================================================================================
  30. -->
  31. <xts:block id="getRoutingServerContent"
  32. dependency="formlogic_init" processor="XSLT" type="exec" mandatory="false"
  33. condition=".[/root/env/param[@name='m_path']]" nodelist="env, header">
  34. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  35. <xsl:stylesheet version="1.0"
  36. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  37. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  38. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  39. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  40. exclude-result-prefixes="xsl send xts cm">
  41. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  42. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  43. <xsl:template match="/">
  44. <xsl:variable name="current-step" select="key('env-param','current_step')"/>
  45. <xts:sequence>
  46. <xts:delete select="/root/env/param[@name='routingServerGroup']"/>
  47. <xts:append>
  48. <routingServerGroup>
  49. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  50. <send:request provider="cm">
  51. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  52. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  53. <cm:search><xsl:value-of select="key('env-param','m_path')"/></cm:search>
  54. <cm:properties>
  55. <cm:property name="searchPath"/>
  56. <cm:property name="routingServerGroup"/>
  57. </cm:properties>
  58. </cm:query>
  59. </xts:transform>
  60. </send:request>
  61. </xts:transform>
  62. </routingServerGroup>
  63. </xts:append>
  64. <xts:append select="/root/env">
  65. <param name="routingServerGroup"><xts:queryValue select="/root/routingServerGroup/*[local-name()='queryResponse']/*[local-name()='package']/*[local-name()='routingServerGroup']"/></param>
  66. </xts:append>
  67. <xts:delete select="/root/routingServerGroup"/>
  68. </xts:sequence>
  69. </xsl:template>
  70. </xsl:stylesheet>
  71. </xts:block>
  72. <!--
  73. ===============================================================================================
  74. execute-method -
  75. ===============================================================================================
  76. -->
  77. <xts:block id="execute-method" dependency="formlogic_init getRoutingServerContent" processor="XSLT" condition=".[not(root/env/param[@name='method']) or /root/env/param[@name='method']='forward' or /root/env/param[@name='method']='wait' or /root/env/param[@name='method']='back' or /root/env/param[@name='method']='finish' or /root/env/param[@name='method']='edit' or /root/env/param[@name='method']='cancel']" type="exec" mandatory="false">
  78. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  79. <xsl:stylesheet version="1.0"
  80. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  81. xmlns:prompt="http://developer.cognos.com/schemas/xts/portal/iPrompting/1/"
  82. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/">
  83. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  84. <xsl:template match="/">
  85. <xts:sequence>
  86. <xsl:if test="not(/root/env/param[@name='method'])">
  87. <xts:append select="/root/env">
  88. <param name="method"><xsl:value-of select="'edit'"/></param>
  89. </xts:append>
  90. </xsl:if>
  91. <xsl:variable name="returnTo">
  92. <xsl:choose>
  93. <xsl:when test="string(/root/env/param[@name='ps_nav_stack'])!=''"><xsl:value-of select="/root/env/param[@name='ps_nav_stack']"/></xsl:when>
  94. <xsl:otherwise>portal/new_drillthru_scope.xts</xsl:otherwise>
  95. </xsl:choose>
  96. </xsl:variable>
  97. <xsl:variable name="returnOp">
  98. <xsl:choose>
  99. <xsl:when test="string(/root/env/param[@name='ps_nav_stack'])!=''">pop</xsl:when>
  100. <xsl:otherwise>maintain</xsl:otherwise>
  101. </xsl:choose>
  102. </xsl:variable>
  103. <xts:append>
  104. <promptRequest>
  105. <send:request provider="xts" option="xml-multipart">
  106. <xsl:choose>
  107. <xsl:when test="not(/root/env/param[@name='method']) or /root/env/param[@name='method'] = 'edit' ">
  108. <prompt:collect>
  109. <metaDataRequest>true</metaDataRequest>
  110. <returnMorphlet><xsl:value-of select="$returnTo"/></returnMorphlet>
  111. <ps_nav_op><xsl:value-of select="$returnOp"/></ps_nav_op>
  112. <runAsync>true</runAsync>
  113. <showNoPromptsWarning>false</showNoPromptsWarning>
  114. <routingServerGroup><xsl:value-of select="/root/env/param[@name='routingServerGroup']"/></routingServerGroup>
  115. </prompt:collect>
  116. </xsl:when>
  117. <!--If a prompt is cancelled by a user, reset to drill through definition page with list of drill targets -->
  118. <xsl:when test="/root/env/param[@name='method'] = 'cancel' ">
  119. <xsl:element name="{/root/env/param[@name='method']}" namespace="http://developer.cognos.com/schemas/xts/portal/iPrompting/1/">
  120. <returnMorphlet>portal/cc_drillthrough.xts</returnMorphlet>
  121. <ps_nav_op>maintain</ps_nav_op>
  122. <showNoPromptsWarning>false</showNoPromptsWarning>
  123. <callFinish>true</callFinish>
  124. </xsl:element>
  125. </xsl:when>
  126. <xsl:otherwise>
  127. <xsl:element name="{/root/env/param[@name='method']}" namespace="http://developer.cognos.com/schemas/xts/portal/iPrompting/1/">
  128. <metaDataRequest>true</metaDataRequest>
  129. <returnMorphlet>portal/new_drillthru_scope.xts</returnMorphlet>
  130. <ps_nav_op>maintain</ps_nav_op>
  131. <showNoPromptsWarning>false</showNoPromptsWarning>
  132. <callFinish>true</callFinish>
  133. </xsl:element>
  134. </xsl:otherwise>
  135. </xsl:choose>
  136. </send:request>
  137. </promptRequest>
  138. </xts:append>
  139. </xts:sequence>
  140. </xsl:template>
  141. </xsl:stylesheet>
  142. </xts:block>
  143. <xts:block id="check-state" path="/portal/iPrompting/logicsheets/check-state.xslt" processor="XSLT" type="exec" dependency="execute-method" condition=".[not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='']" mandatory="false">
  144. <xts:logicsheet path="logicsheets/portal.xsl"/>
  145. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  146. </xts:block>
  147. <xts:block id="render_page" type="exec" mode="output" condition=".[/root/*[local-name()='view']='properties']" dependency="formlogic_init execute-method check-state" processor="XSLT" mimeType="text/html" mandatory="false">
  148. <xts:logicsheet path="portal/drillthru/common/scope_metadata.xslt"/>
  149. <!-- get the presentation theme -->
  150. <xts:logicsheet path="logicsheets/portal.xsl"/>
  151. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  152. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  153. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  154. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  155. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  156. <!-- apply the form logic -->
  157. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  158. <xts:logicsheet path="logicsheets/validation.xslt"/> <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  159. <xsl:stylesheet version="1.0"
  160. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  161. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  162. xmlns:xtsdrillext="xalan://com.cognos.drill.ext.XTSExt"
  163. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  164. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  165. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  166. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  167. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  168. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  169. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  170. xmlns:scope="http://developer.cognos.com/schemas/xts/scope"
  171. xmlns:x="x"
  172. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  173. exclude-result-prefixes="xsl cm cf cp pf df dp lyt scope utml x">
  174. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  175. <!-- current file name -->
  176. <xsl:variable name="mname" select="'new_drillthru_scope.xts'"/>
  177. <!-- add any theme variables -->
  178. <pf:variables/>
  179. <!-- start the output -->
  180. <xsl:template match="/root">
  181. <xsl:variable name="selectType">
  182. <xsl:choose>
  183. <xsl:when test="/root/env/param[@name='m_selectType'] and string(/root/env/param[@name='m_selectType'])!=''">
  184. <xsl:value-of select="/root/env/param[@name='m_selectType']"/>
  185. </xsl:when>
  186. <xsl:otherwise>scope</xsl:otherwise>
  187. </xsl:choose>
  188. </xsl:variable>
  189. <xsl:variable name="backURL" select="key('env-param','backURL')"/>
  190. <xsl:variable name="sourceparam">
  191. <xsl:if test="$selectType='param'">
  192. <xsl:value-of select="concat('drillParam_',string(/root/env/param[@name='paramToSelect']))"/>
  193. </xsl:if>
  194. </xsl:variable>
  195. <xsl:variable name="sourceparamName">
  196. <xsl:if test="$selectType='param'">
  197. <xsl:value-of select="string(/root/env/param[@name='paramName'])"/>
  198. </xsl:if>
  199. </xsl:variable>
  200. <xsl:variable name="browserTitle">
  201. <xsl:choose>
  202. <xsl:when test="$selectType = 'param'">
  203. <xsl:text/><xts:string id="IDS_PROP_DRILLPATH_PARM_TITLE"><xts:param name="parmName"><xsl:value-of select="xtsext:enforceBTD($sourceparamName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></xts:param></xts:string><xsl:text/>
  204. </xsl:when>
  205. <xsl:when test="$selectType != 'scope'">
  206. <xsl:text/><xts:string id="IDS_PROP_DRILLPATH_ITEM_TITLE"/><xsl:text/>
  207. </xsl:when>
  208. <xsl:otherwise>
  209. <xsl:text/><xts:string id="IDS_PROP_DRILLPATH_SCOPE_TITLE"/><xsl:text/>
  210. </xsl:otherwise>
  211. </xsl:choose>
  212. </xsl:variable>
  213. <xsl:variable name="pageDescription">
  214. <xsl:choose>
  215. <xsl:when test="$selectType = 'param'">
  216. <xsl:text/><xts:string id="IDS_PROP_DRILLPATH_PARM_INTRO"/><xsl:text/>
  217. </xsl:when>
  218. <xsl:when test="$selectType = 'query'">
  219. <xsl:text/><xts:string id="IDS_PROP_DRILLPATH_QUERY_INTRO"/><xsl:text/>
  220. </xsl:when>
  221. <xsl:otherwise>
  222. <xsl:text/><xts:string id="IDS_PROP_DRILLPATH_SCOPE_INTRO"/><xsl:text/>
  223. </xsl:otherwise>
  224. </xsl:choose>
  225. </xsl:variable>
  226. <xsl:variable name="currentValue">
  227. <xsl:choose>
  228. <xsl:when test="$selectType='scope' and /root/env/param[@name='m_p_scope'] and string(/root/env/param[@name='m_p_scope'])!=''"><xsl:value-of select="/root/env/param[@name='m_p_scope']"/></xsl:when>
  229. <xsl:when test="$selectType='query' and /root/env/param[@name='m_p_bookmarkItem'] and string(/root/env/param[@name='m_p_bookmarkItem'])!='' "><xsl:value-of select="/root/env/param[@name='m_p_bookmarkItem']"/></xsl:when>
  230. <xsl:when test="$selectType='param' and $sourceparam!=''"><xsl:value-of select="/root/env/param[@name=$sourceparam]"/></xsl:when>
  231. </xsl:choose>
  232. </xsl:variable>
  233. <xsl:variable name="dfltRadio">
  234. <xsl:choose>
  235. <xsl:when test="$currentValue=''">pkg</xsl:when>
  236. <xsl:when test="$selectType='scope' and /root/env/param[@name='m_p_scope'] and $currentValue!=''">ditm</xsl:when>
  237. <xsl:when test="$selectType='query' and /root/env/param[@name='m_p_bookmarkItem'] and $currentValue!='' ">ditm</xsl:when>
  238. <xsl:when test="$selectType='param' and $sourceparam != ''">ditm</xsl:when>
  239. </xsl:choose>
  240. </xsl:variable>
  241. <xsl:variable name="dtLabel">
  242. <xsl:choose>
  243. <xsl:when test="$selectType='scope'">
  244. <xts:string id="IDS_PROP_DRILLPATH_DEF_SCOPE"/>
  245. </xsl:when>
  246. <xsl:otherwise>
  247. <xts:string id="IDS_PROP_DRILLPATH_ITEMS_LABEL"/>
  248. </xsl:otherwise>
  249. </xsl:choose>
  250. </xsl:variable>
  251. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
  252. <dp:page longTitle="$browserTitle">
  253. <dp:meta>
  254. <!-- Standard meta tags -->
  255. <pf:meta/>
  256. </dp:meta>
  257. <dp:script>
  258. <scope:jscripts type="$selectType"/>
  259. <link rel="stylesheet" type="text/css" href="{$skin_root}/prompting/promptCommon.css"/>
  260. <link rel="stylesheet" type="text/css" href="{$skin_style}"/>
  261. <pf:help/>
  262. <script language="javascript">
  263. <!-- Set focus to the Items radio button with this callback through the metadatatree -->
  264. <!-- Set focus to the Items radio button with this callback through the metadatatree -->
  265. function treeFocus(evt)
  266. {
  267. evt = (evt) ? evt : ((event) ? event : null);
  268. if(document.pform.radio_entry &amp;&amp; document.pform.radio_entry.length==3)
  269. document.pform.radio_entry[2].checked="checked";
  270. else if(document.pform.radio_entry)
  271. document.pform.radio_entry[1].checked="checked";
  272. }
  273. function validate()
  274. {
  275. var frm = document.pform;
  276. if (frm.radio_entry[0].checked)
  277. {
  278. document.pform.selected_<xsl:value-of select="$selectType"/>.value = "";
  279. }
  280. else
  281. if (frm.radio_entry.length == 3 &amp;&amp; frm.radio_entry[1].checked) {
  282. document.pform.selected_<xsl:value-of select="$selectType"/>.value = "<xsl:value-of select="xtsext:javascriptencode(string($currentValue))"/>";
  283. }
  284. else
  285. {
  286. var oSelectedItem = getSelectedNode();
  287. document.pform.selected_<xsl:value-of select="$selectType"/>.value = oSelectedItem.sSelected;
  288. // This condition is used for attributes under a level
  289. // if they are selected their MetaDataType is queryItem
  290. // Since we need to show the drop down menu in this case as well we set the MetaDataType to level
  291. // which is the condition used to show the drop done
  292. // TODO: instead of this set a ShowPropertyDropDown flag
  293. if (oSelectedItem.sParentMetaDataType == 'level' || oSelectedItem.sParentMetaDataType=='hierarchy')
  294. {
  295. document.pform.selected_<xsl:value-of select="$selectType"/>_MetaDataType.value = oSelectedItem.sParentMetaDataType;
  296. }
  297. else
  298. {
  299. document.pform.selected_<xsl:value-of select="$selectType"/>_MetaDataType.value = oSelectedItem.sMetaDataType;
  300. }
  301. if( document.pform.selected_<xsl:value-of select="$selectType"/>.value == "")
  302. {
  303. alert("<xts:string id="IDS_SELECT_ERR_NO_SELECTION" encode="javascript"/>");
  304. return false;
  305. }
  306. }
  307. return true;
  308. }
  309. </script>
  310. </dp:script>
  311. <utml:form name="pform" method="post" action="{$gateway}">
  312. <utml:exclusion-list><xsl:value-of select="' method '"/></utml:exclusion-list>
  313. <utml:input type="hidden" value="" utml:update="false">
  314. <utml:name>selected_<xsl:value-of select="$selectType"/></utml:name>
  315. </utml:input>
  316. <utml:input type="hidden" value="" utml:update="false">
  317. <utml:name>selected_<xsl:value-of select="$selectType"/>_MetaDataType</utml:name>
  318. </utml:input>
  319. <utml:input type="hidden" name="errorText" value=""/>
  320. <utml:input type="hidden" name="errorDetail" value=""/>
  321. <dp:header>
  322. <!-- header titles-->
  323. <dp:title><xsl:value-of select="$browserTitle"/></dp:title>
  324. <dp:description><xsl:value-of select="$pageDescription"/></dp:description>
  325. <dp:close>
  326. <utml:a utml:op="stack-down">
  327. <dp:closeMarker/>
  328. </utml:a>
  329. </dp:close>
  330. </dp:header>
  331. <lyt:layout style="1">
  332. <lyt:section>
  333. <utml:radio-group name="radio_entry">
  334. <utml:default-value><xsl:value-of select="$dfltRadio"/></utml:default-value>
  335. <dp:choice longTitle="$dtLabel" id="drillThruScpopeRG">
  336. <xsl:choose>
  337. <xsl:when test="$selectType='scope'">
  338. <dp:section1>
  339. <utml:input type="radio" id="scopePKGRB"><utml:value>pkg</utml:value></utml:input>
  340. </dp:section1>
  341. <dp:section2 for="scopePKGRB"><xts:string id="IDS_PROP_DRILLPATH_TREE_PKG"/></dp:section2>
  342. </xsl:when>
  343. <xsl:otherwise>
  344. <dp:section1>
  345. <utml:input type="radio" id="scopePKGRB"><utml:value>pkg</utml:value></utml:input>
  346. </dp:section1>
  347. <dp:section2 for="scopePKGRB"><xts:string id="IDS_PROP_DRILLPATH_NONE"/></dp:section2>
  348. </xsl:otherwise>
  349. </xsl:choose>
  350. <xsl:choose>
  351. <xsl:when test="$currentValue !='' and $selectType = 'scope'">
  352. <xsl:variable name="langFormatedValue"><span lang="{$contentLocale}"><xsl:value-of select="xtsdrillext:enforceSTTAndBTDForMUN($currentValue, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span></xsl:variable>
  353. <dp:section1>
  354. <utml:input id="scopedpio" type="radio"><utml:value>ditm</utml:value></utml:input>
  355. </dp:section1>
  356. <dp:section2 for="scopedpio"><xts:string id="IDS_PROP_DRILLPATH_ITEM_OPTION_LABEL"><xts:param name="itemVal"><xsl:copy-of select="$langFormatedValue"/></xts:param></xts:string></dp:section2>
  357. </xsl:when>
  358. <xsl:when test="$currentValue !=''">
  359. <dp:section1>
  360. <utml:input id="scopedpio" type="radio"><utml:value>ditm</utml:value></utml:input>
  361. </dp:section1>
  362. <dp:section2 for="scopedpio"><span lang="{$contentLocale}"><xsl:value-of select="xtsdrillext:enforceSTTAndBTDForMUN($currentValue, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span></dp:section2>
  363. </xsl:when>
  364. </xsl:choose>
  365. <xsl:choose>
  366. <xsl:when test="$currentValue = ''">
  367. <dp:section1>
  368. <utml:input type="radio" id="scopetreerd"><utml:value>tree</utml:value></utml:input>
  369. </dp:section1>
  370. <dp:section2 for="scopetreerd"><xts:string id="IDS_PROP_DRILLPATH_TREE_ITEMS"/></dp:section2>
  371. <dp:section3>
  372. <scope:metadataTree/>
  373. </dp:section3>
  374. </xsl:when>
  375. <xsl:otherwise>
  376. <dp:section1>
  377. <utml:input type="radio" id="scopetreerd"><utml:value>tree</utml:value></utml:input>
  378. </dp:section1>
  379. <dp:section2 for="scopetreerd"><xts:string id="IDS_PROP_DRILLPATH_TREE_ITEMS_SELECTED"/></dp:section2>
  380. <dp:section3>
  381. <scope:metadataTree/>
  382. </dp:section3>
  383. </xsl:otherwise>
  384. </xsl:choose>
  385. </dp:choice>
  386. </utml:radio-group>
  387. </lyt:section>
  388. </lyt:layout>
  389. <dp:footer>
  390. <df:button df:id="IDS_OK" utml:validate="true" df:style="stack-down-save"/>
  391. <df:button df:id="IDS_CANCEL" df:style="stack-down"/>
  392. </dp:footer>
  393. </utml:form>
  394. </dp:page>
  395. </xsl:template>
  396. </xsl:stylesheet>
  397. </xts:block>
  398. <!--
  399. ===============================================================================================
  400. debug - display debug information
  401. ===============================================================================================
  402. -->
  403. <xts:block id="debug" dependency="render_page" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  404. <!-- get the debug logic sheet -->
  405. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  406. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
  407. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  408. <xsl:template match="/">
  409. <dbg:dumpxml select="/root"/>
  410. </xsl:template>
  411. </xsl:stylesheet>
  412. </xts:block>
  413. </xts:morphlet>