ui-templates.xsl 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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, 2019
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsl:stylesheet version="1.0"
  9. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  10. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  11. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  12. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  13. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  14. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  15. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  16. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  17. xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
  18. xmlns:eut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/emailOptions/logicsheets/"
  19. xmlns:out="dummy-uri" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  20. exclude-result-prefixes="xsl dp utml xts pf cf cp df dt">
  21. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  22. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  23. <!--
  24. ===============================================================================================
  25. eut:agentHeader - Header needed by the email options dialog when displayed in agent studio
  26. This was taken from ags/logicsheets/dialog.xsl
  27. ===============================================================================================
  28. -->
  29. <xsl:template match="eut:header">
  30. <script language="javascript">
  31. var sParamDelimiter = "<out:value-of select="xtsext:javascriptencode(string(key('system-param', 'delimiters')/@d1))"/>";
  32. var sNameValueDelimiter = "<out:value-of select="xtsext:javascriptencode(string(key('system-param', 'delimiters')/@d2))"/>";
  33. var sCookiePath = "<out:value-of select="xtsext:javascriptencode(string($cookie_path))"/>";
  34. var sCookieDomain = "<out:value-of select="xtsext:javascriptencode(string($cookie_domain))"/>";
  35. var sCookieSecure = "<out:value-of select="xtsext:javascriptencode(string($cookie_secure))"/>";
  36. var fHideFlyout = null;
  37. var sActiveFlyout = "";
  38. function dponclick(event)
  39. {
  40. if (fHideFlyout)
  41. {
  42. fHideFlyout();
  43. fHideFlyout = null;
  44. }
  45. return true;
  46. }
  47. function dponresize()
  48. {
  49. if (fHideFlyout)
  50. {
  51. fHideFlyout();
  52. fHideFlyout = null;
  53. }
  54. return true;
  55. }
  56. </script>
  57. <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/cookie_jar.js"/>
  58. <script language="javascript">
  59. function debug()
  60. {
  61. if (window.event.altKey)
  62. {
  63. if (getSessionValue("debug") != "1")
  64. setStateValue("debug", "1");
  65. else
  66. setStateValue("debug", "0");
  67. location.reload();
  68. }
  69. }
  70. </script>
  71. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  72. <tr>
  73. <td height="5px">
  74. <img border="0" alt="" src="{'{$webcontent}'}/images/space.gif" height="5"/>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td>
  79. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  80. <tr>
  81. <td width="24px" height="24px" valign="middle" align="center">
  82. <!-- copy the contents of the dp image -->
  83. <xsl:copy-of select="./dp:image/*"/>
  84. </td>
  85. <td width="5px">
  86. <img border="0" alt="" src="{'{$webcontent}'}/images/space.gif" width="5px"/>
  87. </td>
  88. <td class="page_label">
  89. <!-- copy the contents of the dp:title -->
  90. <span onclick="debug()"><xsl:copy-of select="dp:title/child::node()"/></span>
  91. </td>
  92. </tr>
  93. </table>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td height="5px">
  98. <img border="0" alt="" src="{'{$webcontent}'}/images/space.gif" height="5"/>
  99. </td>
  100. </tr>
  101. <tr>
  102. <td>
  103. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  104. <tr>
  105. <td width="10px">
  106. <img border="0" alt="" src="{'{$webcontent}'}/images/space.gif" width="10px"/>
  107. </td>
  108. <td class="text2">
  109. <!-- copy the contents of the dp:description -->
  110. <xsl:copy-of select="./dp:description/*"/>
  111. </td>
  112. </tr>
  113. </table>
  114. </td>
  115. </tr>
  116. </table>
  117. </xsl:template>
  118. <!-- the main engine -->
  119. <xsl:template match="*">
  120. <xsl:copy>
  121. <xsl:copy-of select="@*"/>
  122. <xsl:apply-templates/>
  123. </xsl:copy>
  124. </xsl:template>
  125. </xsl:stylesheet>