view_packagedatasources.xts 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2013
  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/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" messageBase="messages/portal.xml, messages/portalRL.xml">
  13. <!--
  14. ===============================================================================================
  15. formlogic_init
  16. Standard form logic initialization
  17. ===============================================================================================
  18. -->
  19. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  20. <!--
  21. ================================================================================
  22. render_page
  23. Render the HTML page.
  24. ================================================================================
  25. -->
  26. <xts:block id="render_page" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="formlogic_init" condition="">
  27. <!-- portal specific information -->
  28. <xts:logicsheet path="logicsheets/portal.xsl"/>
  29. <!-- get the presentation theme -->
  30. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  31. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  32. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  33. <xts:logicsheet path="logicsheets/presentation/dialog/confirm.xslt"/>
  34. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  35. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  36. <!-- apply the form logic -->
  37. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  38. <xts:logicsheet path="logicsheets/validation.xslt"/>
  39. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  40. <xsl:stylesheet version="1.0"
  41. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  42. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  43. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  44. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  45. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  46. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  47. xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
  48. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  49. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  50. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  51. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl cm pf df dp dc lyt utml cp cf xtsext">
  52. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  53. <!-- current file name -->
  54. <xsl:variable name="mname" select="'view_packagedatasources.xts'"/>
  55. <!-- add any theme variables -->
  56. <pf:variables/>
  57. <!-- start the output -->
  58. <xsl:template match="/root">
  59. <!-- get passed in parameters -->
  60. <xsl:variable name="browserTitle">
  61. <xts:string id="IDS_PACKAGE_DATA_SOURCES_TITLE">
  62. <xts:param name="objectName"><span lang="{$contentLocale}"><xsl:value-of select="/root/env/param[@name='m_name']"/></span></xts:param>
  63. </xts:string>
  64. </xsl:variable>
  65. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  66. <dp:meta>
  67. <!-- Standard meta tags -->
  68. <pf:meta/>
  69. </dp:meta>
  70. <dp:script>
  71. <!-- Help system -->
  72. <pf:help context="hid_view_pkg_data_sources"/>
  73. <!-- Need to statically include js file for IE -->
  74. <script src="{$webRoot}/fragments/fragments.js"/>
  75. <script src="{$webRoot}/ps/j2html/js/j2html.js"/>
  76. <script src="{$webRoot}/ps/cogadmin/js/fragmentEmbedder.js"/>
  77. <script>
  78. var fragDef = {};
  79. fragDef.gateway = "<xsl:value-of select="xtsext:javascriptencode($gateway)"/>";
  80. fragDef.webRoot = "<xsl:value-of select="xtsext:javascriptencode($webRoot)"/>";
  81. fragDef.skinRoot = "<xsl:value-of select="xtsext:javascriptencode($skin_root)"/>";
  82. var fragmentEmbedder = new FragmentEmbedder(fragDef);
  83. </script>
  84. </dp:script>
  85. <utml:form name="pform" method="post" action="{$gateway}">
  86. <utml:read-only>true</utml:read-only>
  87. <!-- dialog header -->
  88. <dp:header>
  89. <!-- header titles-->
  90. <dp:title>
  91. <xsl:copy-of select="$browserTitle"/>
  92. </dp:title>
  93. </dp:header>
  94. <div id="datasourcesFrag" />
  95. <script>
  96. function generatePathParameter() {
  97. return "m_path=<xsl:value-of select="xtsext:urlencode(/root/env/param[@name='m_obj_search_path'])"/>";
  98. }
  99. fragmentEmbedder.embed('/fragmentproducer/cogadmin/package/datasources','datasourcesFrag',generatePathParameter);
  100. fragmentEmbedder.loadFragments(true);
  101. </script>
  102. <dp:footer>
  103. <df:button df:id="IDS_CLOSE" df:style="back-url"/>
  104. </dp:footer>
  105. </utml:form>
  106. </dp:page>
  107. </xsl:template>
  108. </xsl:stylesheet>
  109. </xts:block>
  110. <!--
  111. ===============================================================================================
  112. debug - display debug information
  113. ===============================================================================================
  114. -->
  115. <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">
  116. <!-- get the debug logic sheet -->
  117. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  118. <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">
  119. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  120. <xsl:template match="/">
  121. <dbg:dumpxml select="/root"/>
  122. </xsl:template>
  123. </xsl:stylesheet>
  124. </xts:block>
  125. </xts:morphlet>