conditional_newsitem.xts 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ASV
  5. (C) Copyright IBM Corp. 2005, 2015
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/subscribe.xml,messages/portal.xml,messages/portalRL.xml" resolverBase="prompting" includeConfig="true">
  9. <!--
  10. Normal formlogic predicate
  11. -->
  12. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="logicsheets/formlogic_init.xslt"/>
  13. <!--
  14. ================================================================================
  15. If the CM roots (personal/public) have not been determined (i.e. exist in the session) then get them
  16. ===============================================================================================
  17. -->
  18. <xts:block id="getRootNames" path="portal/cmroots.xml" condition=".[not(/root/session/param[@name = 'e_proot'])]" processor="XSLT" type="exec" mandatory="false">
  19. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  20. </xts:block>
  21. <!--
  22. ================================================================================
  23. Load default root map for CM objects
  24. ===============================================================================================
  25. -->
  26. <xts:block id="getRootMap" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml" mandatory="false">
  27. <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_roots.xslt"/>
  28. </xts:block>
  29. <!--
  30. ===============================================================================================
  31. Query for the default destination container
  32. ===============================================================================================
  33. -->
  34. <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init getRootNames getRootMap">
  35. <xts:logicsheet path="logicsheets/portal.xsl"/>
  36. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  37. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  38. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  39. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  40. <xsl:template match="/">
  41. <!-- most of these have to be redefined -->
  42. <xsl:variable name="usePath">
  43. <xsl:choose>
  44. <xsl:when test="string(/root/env/param[@name='so.searchPath'])!=''">
  45. <xsl:value-of select="/root/env/param[@name='so.searchPath']"/>
  46. </xsl:when>
  47. <xsl:otherwise>
  48. <xsl:value-of select="/root/env/param[@name='m_subData_newsitem_path']"/>
  49. </xsl:otherwise>
  50. </xsl:choose>
  51. </xsl:variable>
  52. <xsl:variable name="path">
  53. <xsl:choose>
  54. <xsl:when test="$usePath != '' ">
  55. <xsl:value-of select="$usePath"/>
  56. </xsl:when>
  57. <xsl:otherwise>
  58. <xsl:value-of select="concat(/root/session/param[@name='e_hp'], '/folder')"/>
  59. </xsl:otherwise>
  60. </xsl:choose>
  61. </xsl:variable>
  62. <xts:sequence>
  63. <!-- get some new stuff -->
  64. <xts:append>
  65. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  66. <send:request provider="cm">
  67. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  68. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  69. <cm:requests>
  70. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  71. <cm:search>
  72. <xsl:value-of select="$path"/>
  73. </cm:search>
  74. <cm:properties>
  75. <cm:property name="defaultName"/>
  76. <cm:property name="searchPath"/>
  77. <cm:property name="ancestors"/>
  78. <cm:property name="permissions"/>
  79. <cm:property name="storeID"/>
  80. </cm:properties>
  81. </cm:query>
  82. </cm:requests>
  83. </cm:query>
  84. </xts:transform>
  85. </send:request>
  86. </xts:transform>
  87. </xts:append>
  88. <xts:delete select="/root/env/param[contains(string(@name),'pagerfrom')]"/>
  89. <xts:delete select="/root/env/param[contains(string(@name),'pagerto')]"/>
  90. <xts:delete select="/root/env/param[@name='pageitem']"/>
  91. </xts:sequence>
  92. </xsl:template>
  93. </xsl:stylesheet>
  94. </xts:block>
  95. <!--
  96. ===============================================================================================
  97. genMarkup -
  98. ===============================================================================================
  99. -->
  100. <xts:block id="genMarkup" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="getContent">
  101. <xts:logicsheet path="logicsheets/portal.xsl"/>
  102. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  103. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  104. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  105. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  106. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  107. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  108. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  109. <xts:logicsheet path="logicsheets/validation.xslt"/>
  110. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  111. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/" xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" exclude-result-prefixes="xsl cf cp pf df dp lyt cm cml utml xts xtsext">
  112. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  113. <pf:variables/>
  114. <xsl:variable name="mname" select="'conditional_newsitem.xts'"/>
  115. <xsl:variable name="spacer">
  116. <img height="10" width="10">
  117. <xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute>
  118. </img>
  119. </xsl:variable>
  120. <xsl:template match="/root">
  121. <!-- SEC_INFO hasTask is not javascript encoded, it is always a boolean value true|false-->
  122. <xsl:variable name="hasTask">
  123. <xsl:choose>
  124. <xsl:when test="key('env-param','selected_path') != ''">
  125. <xsl:text>true</xsl:text>
  126. </xsl:when>
  127. <xsl:otherwise>
  128. <xsl:text>false</xsl:text>
  129. </xsl:otherwise>
  130. </xsl:choose>
  131. </xsl:variable>
  132. <xsl:variable name="title">
  133. <xts:string id="IDS_CUSTSUB_NEWSOPTIONS_TITILE"/>
  134. </xsl:variable>
  135. <xsl:variable name="browserTitle">
  136. <xts:string id="IDS_CUSTSUB_NEWSOPTIONS_BROWSER_TITLE"/>
  137. </xsl:variable>
  138. <xsl:variable name="pageDescription">
  139. <xts:string id="IDS_CUSTSUB_NEWSOPTIONS_DESC"/>
  140. </xsl:variable>
  141. <!-- The object type we are about to create -->
  142. <xsl:variable name="new-class" select="'folder'"/>
  143. <xsl:variable name="fullTask">
  144. <xsl:value-of select="$new-class"/>.es<xsl:text/>
  145. </xsl:variable>
  146. <!-- Current destination folder. -->
  147. <xsl:variable name="usePath">
  148. <xsl:choose>
  149. <xsl:when test="string(/root/env/param[@name='so.searchPath'])!=''">
  150. <xsl:value-of select="/root/env/param[@name='so.searchPath']"/>
  151. </xsl:when>
  152. <xsl:otherwise>
  153. <xsl:value-of select="string(/root/env/param[@name='m_subData_newsitem_path'])"/>
  154. </xsl:otherwise>
  155. </xsl:choose>
  156. </xsl:variable>
  157. <xsl:variable name="path">
  158. <xsl:choose>
  159. <xsl:when test="$usePath!=''">
  160. <xsl:if test="$usePath != '/content' ">
  161. <xsl:choose>
  162. <xsl:when test="not(starts-with($usePath,'storeID'))">
  163. <xsl:value-of select="$usePath"/>
  164. </xsl:when>
  165. <xsl:otherwise>
  166. <xsl:value-of select="cm:queryResponse/cm:queryReply[1]/*/cm:searchPath"/>
  167. </xsl:otherwise>
  168. </xsl:choose>
  169. </xsl:if>
  170. </xsl:when>
  171. <xsl:otherwise>
  172. <xsl:value-of select="concat(key('session-param', 'e_hp'), '/folder')"/>
  173. </xsl:otherwise>
  174. </xsl:choose>
  175. </xsl:variable>
  176. <!-- Determine if we can write to the currently selected folder. -->
  177. <xsl:variable name="canWrite" select="contains(cm:queryResponse/cm:queryReply[1]/*/cm:permissions, 'write') and contains(cm:queryResponse/cm:queryReply[1]/*/cm:permissions, 'traverse')"/>
  178. <!-- Determine if the current path points to the personal folder space (We need a session element to make this determination) -->
  179. <xsl:variable name="isPersonalPath" select="starts-with($path, '~') or ( key('session-param', 'e_hp') and starts-with($path, key('session-param', 'e_hp')) )"/>
  180. <xsl:variable name="isAdminPath" select="/root/cm:queryResponse/cm:queryReply[1]/*/cm:objectClass = 'adminFolder'"/>
  181. <!-- If the current path leads to the personal folder space OR the object we are creating does not belong in the main portal content space then do not show the option to place the new entry in "My Folders" -->
  182. <xsl:variable name="showMyFoldersChoice" select="not($isPersonalPath) and not($isAdminPath)"/>
  183. <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
  184. <dp:page>
  185. <dp:meta>
  186. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  187. <meta name="Copyright" content="Copyright (C) 2008 Cognos Incorporated. All Rights Reserved."/>
  188. <meta name="Trademark" content="Cognos and the Cognos logo are trademarks of Cognos Incorporated."/>
  189. <title>
  190. <xsl:value-of select="$title"/>
  191. </title>
  192. </dp:meta>
  193. <dp:script>
  194. <script type="text/javascript">
  195. function closePopup() {
  196. if (parent &amp;&amp; parent.doClosePopUp)
  197. parent.doClosePopUp();
  198. else
  199. window.close();
  200. }
  201. </script>
  202. <script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"/>
  203. <!-- Help system -->
  204. <pf:help context="HID_MY_WATCH_ITEMS"/>
  205. </dp:script>
  206. <utml:form name="pform" method="post" action="{$gateway}">
  207. <input type="hidden" name="ui.backURL" value="{/root/env/param[@name='backURL']}"/>
  208. <!-- this defines the form command operation to be performed when all the collected properties are submitted... -->
  209. <utml:input type="hidden" name="ifrmcmd" value="create" utml:update="false"/>
  210. <utml:input type="hidden" name="so.select" utml:update="false">
  211. <utml:value>
  212. <xsl:value-of select="$fullTask"/>
  213. </utml:value>
  214. </utml:input>
  215. <utml:input type="hidden" name="so.return.m" utml:update="false">
  216. <utml:value>
  217. <xsl:value-of select="concat('subscribe/', $mname)"/>
  218. </utml:value>
  219. </utml:input>
  220. <utml:input name="so.defaultLocation" type="hidden">
  221. <xsl:attribute name="value"><xsl:value-of select="$path"/></xsl:attribute>
  222. </utml:input>
  223. <dp:header>
  224. <!-- header titles-->
  225. <dp:title>
  226. <xsl:value-of select="$browserTitle"/>
  227. </dp:title>
  228. <dp:description>
  229. <xsl:value-of select="$pageDescription"/>
  230. </dp:description>
  231. <dp:close>
  232. <xsl:choose>
  233. <xsl:when test="(/root/env/param[@name = 'ps_nav_stack']) and not(/root/env/param[@name = 'ps_nav_stack'] = '') ">
  234. <utml:a utml:op="stack-down">
  235. <xsl:attribute name="onClick">javascript:resetPageState()</xsl:attribute>
  236. <dp:closeMarker/>
  237. </utml:a>
  238. </xsl:when>
  239. <xsl:otherwise>
  240. <a href="{/root/env/param[@name = 'backURL']}">
  241. <xsl:attribute name="onClick">javascript:resetPageState()</xsl:attribute>
  242. <dp:closeMarker/>
  243. </a>
  244. </xsl:otherwise>
  245. </xsl:choose>
  246. </dp:close>
  247. </dp:header>
  248. <lyt:layout style="1">
  249. <lyt:section>
  250. <dp:list>
  251. <dp:section>
  252. <dp:label>
  253. <label for="m_subData_newsitem_headline">
  254. <xts:string id="IDS_CUSTSUB_NEWSOPTIONS_HEADLINE"/>
  255. </label>
  256. </dp:label>
  257. </dp:section>
  258. <dp:section>
  259. <utml:textarea id="m_subData_newsitem_headline" name="m_subData_newsitem_headline" style="width:300px; height:50px;overflow:hidden"/>
  260. </dp:section>
  261. <dp:section>
  262. <img height="5" width="1">
  263. <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
  264. </img>
  265. </dp:section>
  266. </dp:list>
  267. </lyt:section>
  268. <lyt:section>
  269. <dp:list>
  270. <dp:section>
  271. <dp:label>
  272. <label for="m_subData_newsitem_screentip">
  273. <xts:string id="IDS_CUSTSUB_NEWSOPTIONS_SCREENTIP"/>
  274. </label>
  275. </dp:label>
  276. </dp:section>
  277. <dp:section>
  278. <utml:textarea id="m_subData_newsitem_screentip" name="m_subData_newsitem_screentip" style="width:300px; height:50px;overflow:hidden"/>
  279. </dp:section>
  280. <dp:section>
  281. <img height="5" width="1">
  282. <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
  283. </img>
  284. </dp:section>
  285. </dp:list>
  286. </lyt:section>
  287. <lyt:section>
  288. <dp:list>
  289. <dp:section>
  290. <dp:label>
  291. <label for="m_subData_newsitem_text">
  292. <xts:string id="IDS_CUSTSUB_NEWSOPTIONS_TEXT"/>
  293. </label>
  294. </dp:label>
  295. </dp:section>
  296. <dp:section>
  297. <utml:textarea id="m_subData_newsitem_text" name="m_subData_newsitem_text" style="width:300px; height:50px;overflow:hidden"/>
  298. </dp:section>
  299. <dp:section>
  300. <img height="5" width="1">
  301. <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
  302. </img>
  303. </dp:section>
  304. </dp:list>
  305. </lyt:section>
  306. </lyt:layout>
  307. <!-- Path / Destination folder -->
  308. <!-- =============================================================================== -->
  309. <lyt:layout style="1" joinSection="yes">
  310. <lyt:section>
  311. <dp:list>
  312. <dp:section>
  313. <dp:label>
  314. <xts:string id="IDS_CUSTSUB_NEWSOPTIONS_LOCATION"/>
  315. </dp:label>
  316. </dp:section>
  317. <dp:section wrap="wrap">
  318. <div id="path" style="padding:0px; display:none; ">
  319. <xsl:choose>
  320. <xsl:when test="$canWrite">
  321. <dp:text valign="top" wrap="wrap">
  322. <xsl:variable name="rootPath">
  323. <xsl:choose>
  324. <xsl:when test="$isPersonalPath">
  325. <xsl:value-of select="concat(key('session-param', 'e_hp'), '/folder')"/>
  326. </xsl:when>
  327. <xsl:when test="starts-with($path, '/content')">
  328. <xsl:value-of select="$defaultContentRoot"/>
  329. </xsl:when>
  330. </xsl:choose>
  331. </xsl:variable>
  332. <cf:do-the-path-link>
  333. <cf:param name="familytree">cm:queryResponse/cm:queryReply[1]/*/cm:ancestors</cf:param>
  334. <cf:param name="familymember">cm:queryResponse/cm:queryReply[1]/*/cm:defaultName</cf:param>
  335. <cf:param name="home">
  336. <xsl:value-of select="$rootPath"/>
  337. </cf:param>
  338. </cf:do-the-path-link>
  339. </dp:text>
  340. </xsl:when>
  341. <xsl:otherwise>
  342. <dp:inactiveText>
  343. <i>
  344. <xts:string id="IDS_NONE"/>
  345. </i>&#160;&#160;</dp:inactiveText>
  346. </xsl:otherwise>
  347. </xsl:choose>
  348. </div>
  349. </dp:section>
  350. <dp:section wrap="wrap">
  351. <div id="myfolder" style="padding:0px; display:none; ">
  352. <xsl:choose>
  353. <xsl:when test="key('session-param', 'e_mroot') != ''">
  354. <dp:text>
  355. <xsl:value-of select="key('session-param', 'e_mroot')"/>
  356. </dp:text>
  357. </xsl:when>
  358. <xsl:otherwise>
  359. <dp:inactiveText>
  360. <i>
  361. <xts:string id="IDS_NONE"/>
  362. </i>&#160;&#160;</dp:inactiveText>
  363. </xsl:otherwise>
  364. </xsl:choose>
  365. </div>
  366. </dp:section>
  367. <dp:section>
  368. <dp:group>
  369. <dp:groupItem valign="top">
  370. <utml:a utml:op="maintain">
  371. <utml:target>
  372. <xsl:value-of select="$app"/>/select/select.xts<xsl:text/>
  373. </utml:target>
  374. <xsl:attribute name="onclick">javascript:resetPageState()</xsl:attribute>
  375. <xsl:attribute name="style">font-size:143%</xsl:attribute>
  376. <xsl:text/>
  377. <xts:string id="IDS_SELECT_ANOTHER_FOLDER"/>
  378. <xsl:text/>
  379. </utml:a>
  380. </dp:groupItem>
  381. <xsl:if test="not($isAdminPath)">
  382. <dp:groupItem valign="top">
  383. <img height="1" width="10" border="0">
  384. <xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute>
  385. </img>
  386. <xsl:text/>
  387. <a href="#">
  388. <xsl:text/>
  389. <xsl:attribute name="onclick">javascript:changeSelection('myfolder')</xsl:attribute>
  390. <xsl:attribute name="style">font-size:143%</xsl:attribute>
  391. <xsl:text/>
  392. <xts:string id="IDS_SELECT_MY_FOLDERS"/>
  393. <xsl:text/>
  394. </a>
  395. <xsl:text/>
  396. </dp:groupItem>
  397. </xsl:if>
  398. </dp:group>
  399. </dp:section>
  400. </dp:list>
  401. <utml:input name="m_subData_newsitem_path" type="hidden">
  402. <xsl:attribute name="value"><xsl:value-of select="$path"/></xsl:attribute>
  403. </utml:input>
  404. </lyt:section>
  405. </lyt:layout>
  406. <script language="javascript">
  407. function clearSelect()
  408. {
  409. if (document.pform.elements['so.searchPath']) {
  410. document.pform.elements['so.searchPath'].value = '';
  411. }
  412. }
  413. function changeSelection(divName)
  414. {
  415. var pathdiv = document.getElementById('path');
  416. var mfdiv = document.getElementById('myfolder');
  417. switch (divName)
  418. {
  419. case "path":
  420. {
  421. mfdiv.style.display = "none";
  422. pathdiv.style.display = "";
  423. break;
  424. }
  425. case "myfolder":
  426. {
  427. mfdiv.style.display = "";
  428. pathdiv.style.display = "none";
  429. setMyFolder();
  430. break;
  431. }
  432. }
  433. }
  434. function setMyFolder()
  435. {
  436. setStateValue("mfst",1);
  437. document.pform["so.defaultLocation"].value = document.pform.m_subData_newsitem_path.value="<xsl:value-of select="xtsext:javascriptencode(key('session-param','e_mrootpath'))"/>";
  438. }
  439. function resetPageState()
  440. {
  441. <!-- Clear the cookie value mfst -->
  442. clearSessionEntry('mfst');
  443. }
  444. </script>
  445. <script language="javascript">
  446. var mf = getSessionValue("mfst");
  447. if ( mf !=null &amp;&amp; mf != "" )
  448. {
  449. if( mf == 1 ) {
  450. document.getElementById('myfolder').style.display = "";
  451. document.getElementById('path').style.display = "none";
  452. setMyFolder(); //Make sure the path is set to My Folders when the myfolder div is visible.
  453. }
  454. else {
  455. document.getElementById('path').style.display = "";
  456. document.getElementById('myfolder').style.display = "none";
  457. }
  458. } else
  459. {
  460. <xsl:choose>
  461. <xsl:when test="$path!=''">
  462. document.getElementById('path').style.display = "";
  463. document.getElementById('myfolder').style.display = "none";
  464. setStateValue("mfst",0);
  465. </xsl:when>
  466. <xsl:otherwise>
  467. document.getElementById('myfolder').style.display = "";
  468. document.getElementById('path').style.display = "none";
  469. setStateValue("mfst",1);
  470. setMyFolder(); //Make sure the path is set to My Folders when the myfolder div is visible.
  471. </xsl:otherwise>
  472. </xsl:choose>
  473. }
  474. </script>
  475. <dp:footer>
  476. <df:button df:id="IDS_OK" df:style="drop" onClick="javascript:resetPageState(); clearSelect(); "/>
  477. <df:button df:id="IDS_CANCEL" df:style="pop" onClick="javascript:resetPageState();"/>
  478. </dp:footer>
  479. </utml:form>
  480. </dp:page>
  481. </xsl:template>
  482. </xsl:stylesheet>
  483. </xts:block>
  484. <!--
  485. ===============================================================================================
  486. debug - special debug block for nested requests
  487. ===============================================================================================
  488. -->
  489. <xts:block id="debug" type="exec" processor="XSLT" mimeType="text/html" dependency="genMarkup" condition=".[/root/session/param[@name='debug']='1']" mandatory="false">
  490. <!-- Get the debug logic sheet -->
  491. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  492. <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">
  493. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  494. <xsl:template match="/">
  495. <dbg:dumpxml select="/root"/>
  496. </xsl:template>
  497. </xsl:stylesheet>
  498. </xts:block>
  499. </xts:morphlet>