ui-templates.xsl 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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, 2013
  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 fHideFlyout = null;
  36. var sActiveFlyout = "";
  37. function dponclick(event)
  38. {
  39. if (fHideFlyout)
  40. {
  41. fHideFlyout();
  42. fHideFlyout = null;
  43. }
  44. return true;
  45. }
  46. function dponresize()
  47. {
  48. if (fHideFlyout)
  49. {
  50. fHideFlyout();
  51. fHideFlyout = null;
  52. }
  53. return true;
  54. }
  55. </script>
  56. <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/cookie_jar.js"/>
  57. <script language="javascript">
  58. function debug()
  59. {
  60. if (window.event.altKey)
  61. {
  62. if (getSessionValue("debug") != "1")
  63. setStateValue("debug", "1");
  64. else
  65. setStateValue("debug", "0");
  66. location.reload();
  67. }
  68. }
  69. </script>
  70. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  71. <tr>
  72. <td height="5px">
  73. <img border="0" alt="" src="{'{$webcontent}'}/images/space.gif" height="5"/>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td>
  78. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  79. <tr>
  80. <td width="24px" height="24px" valign="middle" align="center">
  81. <!-- copy the contents of the dp image -->
  82. <xsl:copy-of select="./dp:image/*"/>
  83. </td>
  84. <td width="5px">
  85. <img border="0" alt="" src="{'{$webcontent}'}/images/space.gif" width="5px"/>
  86. </td>
  87. <td class="page_label">
  88. <!-- copy the contents of the dp:title -->
  89. <span onclick="debug()"><xsl:copy-of select="dp:title/child::node()"/></span>
  90. </td>
  91. </tr>
  92. </table>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td height="5px">
  97. <img border="0" alt="" src="{'{$webcontent}'}/images/space.gif" height="5"/>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td>
  102. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  103. <tr>
  104. <td width="10px">
  105. <img border="0" alt="" src="{'{$webcontent}'}/images/space.gif" width="10px"/>
  106. </td>
  107. <td class="text2">
  108. <!-- copy the contents of the dp:description -->
  109. <xsl:copy-of select="./dp:description/*"/>
  110. </td>
  111. </tr>
  112. </table>
  113. </td>
  114. </tr>
  115. </table>
  116. </xsl:template>
  117. <!-- the main engine -->
  118. <xsl:template match="*">
  119. <xsl:copy>
  120. <xsl:copy-of select="@*"/>
  121. <xsl:apply-templates/>
  122. </xsl:copy>
  123. </xsl:template>
  124. </xsl:stylesheet>