conditional_subscribe1.xts 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  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" requiredCapability="canUseConditionalSubscriptions">
  9. <!--
  10. ===============================================================================================
  11. formlogic_init - standard form logic initialization
  12. ===============================================================================================
  13. -->
  14. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  15. <!--
  16. ================================================================================
  17. If the CM roots (personal/public) have not been determined (i.e. exist in the session) then get them
  18. ===============================================================================================
  19. -->
  20. <xts:block id="getRootNames" path="portal/cmroots.xml" condition=".[not(/root/session/param[@name = 'e_proot'])]" processor="XSLT" type="exec" mandatory="false">
  21. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  22. </xts:block>
  23. <!--
  24. ================================================================================
  25. Load default root map for CM objects
  26. ===============================================================================================
  27. -->
  28. <xts:block id="getRootMap" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml" mandatory="false">
  29. <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_roots.xslt"/>
  30. </xts:block>
  31. <!--
  32. ================================================================================
  33. start us on the right path if we've started from RV
  34. ================================================================================
  35. -->
  36. <xts:block id="startingFromRV" processor="XSLT" type="exec" condition=".[/root/env/param[@name='rv.selectionSpecXML'] and /root/env/param[@name='rv.selectionSpecXML']!='' ]" mandatory="false">
  37. <xts:logicsheet path="logicsheets/portal.xsl"/>
  38. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  39. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  40. <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">
  41. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  42. <xsl:template match="/">
  43. <xts:sequence>
  44. <!-- need information about the report - the defaultName to be precise -->
  45. <xts:append>
  46. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  47. <send:request provider="cm">
  48. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  49. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  50. <cm:search>
  51. <xsl:value-of select="/root/env/param[@name='rv.periodicalProducer']"/>
  52. </cm:search>
  53. <cm:properties>
  54. <cm:property name="ancestors"/>
  55. <cm:property name="defaultName"/>
  56. <cm:property name="searchPath"/>
  57. </cm:properties>
  58. </cm:query>
  59. </xts:transform>
  60. </send:request>
  61. </xts:transform>
  62. </xts:append>
  63. <xts:append>
  64. <periodicalProducerParent>
  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:search>
  70. <xts:function name="xmlencode">
  71. <xts:param name="source">
  72. <xts:queryValue select="/root/*[local-name()='queryResponse']/*/*[local-name()='ancestors']/*[local-name()='ancestorInfo'][last()]/*[local-name()='searchPath']"/>
  73. </xts:param>
  74. </xts:function>
  75. </cm:search>
  76. <cm:properties>
  77. <cm:property name="searchPath"/>
  78. <cm:property name="permissions"/>
  79. </cm:properties>
  80. </cm:query>
  81. </xts:transform>
  82. </send:request>
  83. </xts:transform>
  84. </periodicalProducerParent>
  85. </xts:append>
  86. <!-- build all the variables that we need -->
  87. <xts:append select="/root/env">
  88. <!-- build everything from the selection spec we're given -->
  89. <xts:transform src="subscribe/transforms/disassembleSelectionSpec.xslt" processor="XSLT">
  90. <xts:param name="logicsheet">logicsheets/portal.xsl</xts:param>
  91. <xts:transform src="subscribe/transforms/assembleSelectionSpec.xslt" processor="XSLT">
  92. <root>
  93. <selection>
  94. <xts:transform src="subscribe/transforms/filterUsageSelectionSpec.xslt" processor="XSLT">
  95. <xts:transform name="XMLDecode">
  96. <xsl:value-of select="/root/env/param[@name='rv.selectionSpecXML']"/>
  97. </xts:transform>
  98. </xts:transform>
  99. </selection>
  100. </root>
  101. </xts:transform>
  102. </xts:transform>
  103. <!-- build variables for the periodical producer - pretend we got this from the schedule -->
  104. <xts:transform src="subscribe/transforms/disassembleAgentSchedule.xslt" processor="XSLT">
  105. <xts:param name="logicsheet">logicsheets/portal.xsl</xts:param>
  106. <xts:param name="logicsheet">logicsheets/presentation/controls/framework.xsl</xts:param>
  107. <xts:param name="logicsheet">logicsheets/presentation/controls/presentation.xsl</xts:param>
  108. <root>
  109. <schedule>
  110. <periodicalProducer>
  111. <xts:queryNode select="/root/*[local-name()='queryResponse']/*"/>
  112. </periodicalProducer>
  113. </schedule>
  114. <periodicalProducerParent>
  115. <xts:queryNode select="/root/*[local-name()='periodicalProducerParent']/*[local-name()='queryResponse']/*"/>
  116. </periodicalProducerParent>
  117. <xsl:copy-of select="/root/session"/>
  118. </root>
  119. </xts:transform>
  120. </xts:append>
  121. <!-- now that everything is as we'd like - remove the RV names -->
  122. <xts:delete select="/root/env/param[starts-with(@name, 'rv.')]"/>
  123. </xts:sequence>
  124. </xsl:template>
  125. </xsl:stylesheet>
  126. </xts:block>
  127. <!--
  128. ===============================================================================================
  129. Get all the information from CM
  130. ===============================================================================================
  131. -->
  132. <xts:block id="getSubscriptionContent" path="subscribe/blocks/getSubscriptionContentPortal.xslt" processor="XSLT" type="exec" condition=".[/root/env/param[@name='m_obj'] and /root/env/param[@name='m_obj']!='' and not(/root/env/param[@name='m_subData_report'])]" mandatory="false">
  133. <xts:logicsheet path="logicsheets/portal.xsl"/>
  134. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  135. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  136. </xts:block>
  137. <!--
  138. ===============================================================================================
  139. Query for the default destination container
  140. ===============================================================================================
  141. -->
  142. <xts:block id="getSubscriptionVariables" processor="XSLT" type="exec" dependency="getSubscriptionContent" condition=".[/root/env/param[@name='m_obj'] and /root/env/param[@name='m_obj']!='' and not(/root/env/param[@name='m_subData_report']) ]" mandatory="false">
  143. <xts:logicsheet path="logicsheets/portal.xsl"/>
  144. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  145. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  146. <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">
  147. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  148. <xsl:template match="/">
  149. <xts:sequence>
  150. <xts:append select="/root/env">
  151. <!-- get the name/description/screen tip for the subscription -->
  152. <param name="m_p_defaultDescription">
  153. <xts:queryValue select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='reportDataServiceAgentDefinition']/*[local-name()='defaultDescription']"/>
  154. </param>
  155. <param name="m_p_defaultName">
  156. <xts:queryValue select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='reportDataServiceAgentDefinition']/*[local-name()='defaultName']"/>
  157. </param>
  158. <param name="m_p_defaultScreenTip">
  159. <xts:queryValue select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='reportDataServiceAgentDefinition']/*[local-name()='defaultScreenTip']"/>
  160. </param>
  161. <!-- say where this agent is -->
  162. <param name="m_path">
  163. <xts:queryValue select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='reportDataServiceAgentDefinition']/*[local-name()='ancestors']/*[local-name()='ancestorInfo'][last()]/*[local-name()='searchPath']"/>
  164. </param>
  165. </xts:append>
  166. </xts:sequence>
  167. </xsl:template>
  168. </xsl:stylesheet>
  169. </xts:block>
  170. <!--
  171. ===============================================================================================
  172. processReponse - Process the response from the callMorphlet block and either displays
  173. the markup or processes the results
  174. ===============================================================================================
  175. -->
  176. <xts:block id="processResponse" path="/portal/emailOptions/logicsheets/process_email_options.xslt" processor="XSLT" dependency="getSubscriptionVariables" type="exec" condition=".[/root/env/param[@name='m_obj'] and /root/env/param[@name='m_obj']!='' and not(/root/env/param[@name='m_subData_report']) ]" mandatory="false">
  177. <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
  178. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  179. <xts:logicsheet path="logicsheets/portal.xsl"/>
  180. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  181. </xts:block>
  182. <!--
  183. ================================================================================
  184. create the user capabilities structure
  185. ===============================================================================================
  186. -->
  187. <xts:block id="addSample" path="subscribe/blocks/addSample.xslt" dependency="startingFromRV processResponse" processor="XSLT" type="exec" condition=".[not(/root/env/param[@name='m_subData_report']) and not(/root/env/param[@name='m_obj'])]" mandatory="false"/>
  188. <!--
  189. ===============================================================================================
  190. Query for the default destination container
  191. ===============================================================================================
  192. -->
  193. <xts:block id="getContent" processor="XSLT" type="exec" dependency="addSample getRootNames getRootMap">
  194. <xts:logicsheet path="logicsheets/portal.xsl"/>
  195. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  196. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  197. <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">
  198. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  199. <xsl:template match="/">
  200. <!-- most of these have to be redefined -->
  201. <xsl:variable name="class" select="'reportDataServiceAgentDefinition'"/>
  202. <xsl:variable name="CMRoot" select="/root/CMRootMap/class[@name=$class]"/>
  203. <xsl:variable name="usePath">
  204. <xsl:choose>
  205. <xsl:when test="string(/root/env/param[@name='so.searchPath'])!=''">
  206. <xsl:value-of select="/root/env/param[@name='so.searchPath']"/>
  207. </xsl:when>
  208. <xsl:otherwise>
  209. <xsl:value-of select="/root/env/param[@name='m_path']"/>
  210. </xsl:otherwise>
  211. </xsl:choose>
  212. </xsl:variable>
  213. <xsl:variable name="path">
  214. <xsl:choose>
  215. <xsl:when test="$usePath != '' and (not($CMRoot/@fixedRoot) or $CMRoot/@fixedRoot!='T')">
  216. <xsl:value-of select="$usePath"/>
  217. </xsl:when>
  218. <xsl:otherwise>
  219. <xsl:value-of select="$CMRoot/@root"/>
  220. </xsl:otherwise>
  221. </xsl:choose>
  222. </xsl:variable>
  223. <xts:sequence>
  224. <!-- get some new stuff -->
  225. <xts:append>
  226. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  227. <send:request provider="cm">
  228. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  229. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  230. <cm:requests>
  231. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  232. <cm:search>
  233. <xsl:value-of select="$path"/>
  234. </cm:search>
  235. <cm:properties>
  236. <cm:property name="defaultName"/>
  237. <cm:property name="searchPath"/>
  238. <cm:property name="ancestors"/>
  239. <cm:property name="permissions"/>
  240. <cm:property name="storeID"/>
  241. </cm:properties>
  242. </cm:query>
  243. <xsl:if test="string($CMRoot/@root) = '/content' ">
  244. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  245. <cm:search>
  246. <xsl:value-of select="/root/session/param[@name='e_hp']"/>/folder[permission("write") and permission("traverse")]</cm:search>
  247. <cm:properties>
  248. <cm:property name="defaultName"/>
  249. <cm:property name="permissions"/>
  250. <cm:property name="storeID"/>
  251. </cm:properties>
  252. </cm:query>
  253. </xsl:if>
  254. </cm:requests>
  255. </cm:query>
  256. </xts:transform>
  257. </send:request>
  258. </xts:transform>
  259. </xts:append>
  260. <xts:delete select="/root/env/param[contains(string(@name),'pagerfrom')]"/>
  261. <xts:delete select="/root/env/param[contains(string(@name),'pagerto')]"/>
  262. <xts:delete select="/root/env/param[@name='pageitem']"/>
  263. </xts:sequence>
  264. </xsl:template>
  265. </xsl:stylesheet>
  266. </xts:block>
  267. <!--
  268. ===============================================================================================
  269. format - render the page - for an invalid selection
  270. ===============================================================================================
  271. -->
  272. <xts:block id="formatInvalid" dependency="getContent" mode="output" processor="XSLT" type="exec" mimeType="text/html" condition=".[/root/env/param[@name='m_subData_dtype_domain']='invalid']" mandatory="false">
  273. <!-- get the debug logic sheet -->
  274. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  275. <xts:logicsheet path="logicsheets/portal.xsl"/>
  276. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  277. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  278. <xts:logicsheet path="logicsheets/presentation/dialog/centralabout.xsl"/>
  279. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  280. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  281. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  282. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  283. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  284. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  285. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  286. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  287. xmlns:ca="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/centralabout/"
  288. xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/"
  289. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  290. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  291. xmlns:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
  292. exclude-result-prefixes="xsl xts lyt pf dp df ca qsdlg bus xtsext ut">
  293. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  294. <!-- add any theme variables -->
  295. <pf:variables/>
  296. <!-- get the title -->
  297. <xsl:variable name="wizardTitle">
  298. <xts:string id="IDS_CUSTSUB_TITLE"/>
  299. </xsl:variable>
  300. <xsl:variable name="new-general-title">
  301. <xts:string id="IDS_CUSTSUB_INVALID_TITLE">
  302. <xts:param name="wizardTitle">
  303. <xsl:value-of select="$wizardTitle"/>
  304. </xts:param>
  305. </xts:string>
  306. </xsl:variable>
  307. <!-- start the output -->
  308. <xsl:template match="/root">
  309. <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
  310. <dp:page longTitle="$new-general-title">
  311. <dp:meta>
  312. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  313. <meta name="Copyright" content="Copyright (C) 2008 Cognos Incorporated. All Rights Reserved."/>
  314. <meta name="Trademark" content="Cognos and the Cognos logo are trademarks of Cognos Incorporated."/>
  315. <title>
  316. <xsl:value-of select="$new-general-title"/>
  317. </title>
  318. </dp:meta>
  319. <dp:script>
  320. <script type="text/javascript">
  321. function doCancel() {
  322. window.close();
  323. }
  324. </script>
  325. <!-- Help system -->
  326. <pf:help context="HID_MY_WATCH_ITEMS"/>
  327. </dp:script>
  328. <dp:header>
  329. <!-- header titles-->
  330. <dp:title>
  331. <xsl:value-of select="$new-general-title"/>
  332. </dp:title>
  333. <dp:close>
  334. <xsl:choose>
  335. <xsl:when test="/root/env/param[@name='backURL']">
  336. <a href="{/root/env/param[@name = 'backURL']}">
  337. <dp:closeMarker/>
  338. </a>
  339. </xsl:when>
  340. <xsl:otherwise>
  341. <a href="javascript:doCancel()">
  342. <dp:closeMarker/>
  343. </a>
  344. </xsl:otherwise>
  345. </xsl:choose>
  346. </dp:close>
  347. </dp:header>
  348. <lyt:layout style="1">
  349. <lyt:section>
  350. <dp:group>
  351. <dp:groupItem valign="top">
  352. <dp:text nospace="nospace" wrap="wrap">
  353. <xts:string id="IDS_CUSTSUB_INVALID"/>
  354. </dp:text>
  355. </dp:groupItem>
  356. </dp:group>
  357. </lyt:section>
  358. </lyt:layout>
  359. <!-- page footer -->
  360. <dp:footer>
  361. <df:button df:id="IDS_OK" df:style="href">
  362. <df:href>
  363. <xsl:choose>
  364. <xsl:when test="/root/env/param[@name='backURL']">
  365. <xsl:value-of select="/root/env/param[@name='backURL']"/>
  366. </xsl:when>
  367. <xsl:otherwise>
  368. <xsl:text>javascript:doCancel();</xsl:text>
  369. </xsl:otherwise>
  370. </xsl:choose>
  371. </df:href>
  372. </df:button>
  373. </dp:footer>
  374. </dp:page>
  375. </xsl:template>
  376. </xsl:stylesheet>
  377. </xts:block>
  378. <!--
  379. ===============================================================================================
  380. format - render the page - for a valid selection
  381. ===============================================================================================
  382. -->
  383. <xts:block id="format" dependency="formatInvalid" mode="output" processor="XSLT" type="exec" mimeType="text/html" condition=".[/root/env/param[@name='m_subData_dtype_domain']!='invalid']" mandatory="false">
  384. <!-- get the debug logic sheet -->
  385. <xts:logicsheet path="subscribe/logicsheets/rdsad.xsl"/>
  386. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  387. <xts:logicsheet path="logicsheets/portal.xsl"/>
  388. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  389. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  390. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  391. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  392. <xts:logicsheet path="logicsheets/presentation/dialog/centralabout.xsl"/>
  393. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  394. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  395. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  396. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  397. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  398. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  399. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  400. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  401. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  402. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  403. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  404. xmlns:ca="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/centralabout/"
  405. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  406. xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/"
  407. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  408. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  409. xmlns:rdsad="http://developer.cognos.com/schemas/xts/rdsad/"
  410. xmlns:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
  411. exclude-result-prefixes="xsl xts lyt pf cp cf dp df ca utml qsdlg bus xtsext rdsad ut">
  412. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  413. <!-- add any theme variables -->
  414. <pf:variables/>
  415. <cp:flyoutControl/>
  416. <!-- get the title -->
  417. <xsl:variable name="wizardTitle">
  418. <xts:string id="IDS_CUSTSUB_TITLE"/>
  419. </xsl:variable>
  420. <xsl:variable name="new-general-title">
  421. <xts:string id="IDS_CUSTSUB_CONDITION_TITLE">
  422. <xts:param name="wizardTitle">
  423. <xsl:value-of select="$wizardTitle"/>
  424. </xts:param>
  425. </xts:string>
  426. </xsl:variable>
  427. <!-- start the output -->
  428. <xsl:template match="/root">
  429. <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
  430. <dp:page longTitle="$new-general-title">
  431. <dp:meta>
  432. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  433. <meta name="Copyright" content="Copyright (C) 2008 Cognos Incorporated. All Rights Reserved."/>
  434. <meta name="Trademark" content="Cognos and the Cognos logo are trademarks of Cognos Incorporated."/>
  435. </dp:meta>
  436. <dp:script>
  437. <script type="text/javascript" src="{$webcontent}/{$app}/js/CCflyoutMenu.js"/>
  438. <script type="text/javascript">
  439. function doCancel() {
  440. window.close();
  441. }
  442. function validate()
  443. {
  444. return conditionValidate();
  445. }
  446. </script>
  447. <!-- Help system -->
  448. <pf:help context="HID_MY_WATCH_ITEMS"/>
  449. </dp:script>
  450. <utml:form name="pform" method="post" action="{$gateway}">
  451. <!-- we're taking control of all the all the pv_ params ourselves -->
  452. <utml:exclude-prefix>m_sub_</utml:exclude-prefix>
  453. <utml:input type="hidden" name="controller_state" value="" utml:update="false"/>
  454. <dp:header>
  455. <!-- header titles-->
  456. <dp:title>
  457. <xsl:value-of select="$new-general-title"/>
  458. </dp:title>
  459. <dp:description>
  460. <xts:string id="IDS_CUSTSUB_CONDITION_INTRO"/>
  461. </dp:description>
  462. <dp:close>
  463. <xsl:choose>
  464. <xsl:when test="/root/env/param[@name='backURL']">
  465. <a href="{/root/env/param[@name = 'backURL']}">
  466. <dp:closeMarker/>
  467. </a>
  468. </xsl:when>
  469. <xsl:otherwise>
  470. <a href="javascript:doCancel()">
  471. <dp:closeMarker/>
  472. </a>
  473. </xsl:otherwise>
  474. </xsl:choose>
  475. </dp:close>
  476. </dp:header>
  477. <lyt:layout style="1">
  478. <lyt:section>
  479. <!-- pull in the logicsheet for the condition display -->
  480. <rdsad:conditionDisplay/>
  481. </lyt:section>
  482. </lyt:layout>
  483. <!-- page footer -->
  484. <dp:footer>
  485. <xsl:variable name="next-target">
  486. <!-- we know where we're going -->
  487. <xsl:text>subscribe/conditional_subscribe2.xts</xsl:text>
  488. </xsl:variable>
  489. <df:button df:id="IDS_CANCEL" df:style="href">
  490. <df:href>
  491. <xsl:choose>
  492. <xsl:when test="/root/env/param[@name='backURL']">
  493. <xsl:value-of select="/root/env/param[@name='backURL']"/>
  494. </xsl:when>
  495. <xsl:otherwise>
  496. <xsl:text>javascript:doCancel();</xsl:text>
  497. </xsl:otherwise>
  498. </xsl:choose>
  499. </df:href>
  500. </df:button>
  501. <df:button df:id="IDS_BACK"/>
  502. <df:button df:id="IDS_NEXT" df:style="maintain" utml:validate="true">
  503. <df:target>
  504. <xsl:value-of select="$next-target"/>
  505. </df:target>
  506. </df:button>
  507. <df:button df:id="IDS_FINISH"/>
  508. </dp:footer>
  509. </utml:form>
  510. </dp:page>
  511. </xsl:template>
  512. <!-- pull in the additional templates used by the display -->
  513. <rdsad:conditionDisplayTemplates/>
  514. <rdsad:enumTemplates/>
  515. </xsl:stylesheet>
  516. </xts:block>
  517. <!-- Debug -->
  518. <!-- ============================================================================= -->
  519. <xts:block id="debug" dependency="format" condition=".[ /root/session/param[@name='debug'] = '1' ]" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  520. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  521. <!-- debug logic sheet -->
  522. <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">
  523. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  524. <xsl:template match="/">
  525. <dbg:dumpxml select="/root"/>
  526. </xsl:template>
  527. </xsl:stylesheet>
  528. </xts:block>
  529. </xts:morphlet>