tree_error.xts 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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, 2011
  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 version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml">
  13. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
  14. <!-- get the debug logic sheet -->
  15. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  16. <!-- get the new theme stuff -->
  17. <xts:logicsheet path="logicsheets/portal.xsl"/>
  18. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  19. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  20. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  21. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  22. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  23. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  24. <!-- apply the form logic -->
  25. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  26. <xsl:stylesheet version="1.0"
  27. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  28. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  29. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  30. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  31. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  32. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  33. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  34. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  35. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  36. xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
  37. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  38. exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg utml xtsext">
  39. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  40. <!-- add any theme variables -->
  41. <df:variables/>
  42. <pf:variables/>
  43. <!-- start the output -->
  44. <xsl:template match="/root">
  45. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page>
  46. <dp:script>
  47. <dp:meta/>
  48. <script type="text/javascript">
  49. function doCancel()
  50. {
  51. <xsl:choose>
  52. <xsl:when test="string(/root/env/param[@name='backURL'])!=''">
  53. backTo = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='backURL']))"/>";
  54. window.setTimeout("window.location.href = backTo;" , 1);
  55. </xsl:when>
  56. <xsl:when test="string(/root/env/param[@name='ps_nav_stack'])!=''">
  57. document.pform.ps_nav_op.value = 'pop';
  58. document.pform.m.value = document.pform.ps_nav_stack.value;
  59. document.pform.submit();
  60. </xsl:when>
  61. </xsl:choose>
  62. }
  63. </script>
  64. </dp:script>
  65. <utml:form name="pform" method="post" action="{$gateway}">
  66. <!-- dialog header -->
  67. <dp:header help="false">
  68. <!-- header titles -->
  69. <dp:title><xsl:value-of select="$product_name"/></dp:title>
  70. <!-- close link for the header -->
  71. <dp:close>
  72. <utml:a utml:op="stack-down">
  73. <dp:closeMarker/>
  74. </utml:a>
  75. </dp:close>
  76. <!-- description (hint text) -->
  77. <dp:description><xsl:value-of select="substring-before(string(/root/env/param[@name='errorText']),' ')"/></dp:description>
  78. </dp:header>
  79. <lyt:layout style="1">
  80. <lyt:section>
  81. <dp:group>
  82. <dp:groupItem>
  83. <img height="32" width="32" border="0">
  84. <xsl:attribute name="src">
  85. <xsl:value-of select="$webcontent"/>/<xsl:value-of select="$app"/>
  86. <xsl:text/>/images/msg_error.gif<xsl:text/>
  87. </xsl:attribute>
  88. </img>
  89. </dp:groupItem>
  90. <dp:groupItem>
  91. <!-- used for alignment -->
  92. <dp:text/><xsl:text>&#160;</xsl:text>
  93. </dp:groupItem>
  94. <dp:groupItem valign="top">
  95. <dp:text nospace="nospace" wrap="wrap">
  96. <xsl:value-of select="substring-after(string(/root/env/param[@name='errorText']),' ')"/>
  97. </dp:text>
  98. </dp:groupItem>
  99. </dp:group>
  100. </lyt:section>
  101. </lyt:layout>
  102. <xsl:if test="normalize-space(string(/root/env/param[@name='errorDetail']))!=''">
  103. <!-- NOTE: *** The following changes where made get alignment correct (since not in a layout): -->
  104. <!-- The image height and width are set to 30 instead of 32 -->
  105. <!-- Lone dp:text -->
  106. <!-- The &#160; is used to align the Details hyperlink with the textarea -->
  107. <dp:group>
  108. <dp:groupItem>
  109. <img height="30" width="30" border="0">
  110. <xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute>
  111. </img>
  112. </dp:groupItem>
  113. <dp:groupItem>
  114. <dp:text/>
  115. </dp:groupItem>
  116. <dp:groupItem align="left">
  117. <xsl:if test="/root/env/param[@name='errorDetail']">
  118. <cf:dynamicExpandingSection name="details" title="IDS_FAULT_DETAILS" expanding="yes">
  119. <!-- Filtering control -->
  120. <lyt:layout style="1" joinSection="no">
  121. <lyt:section>
  122. <div class="errorPanel">
  123. <xsl:value-of select="/root/env/param[@name='errorDetail']"/>
  124. </div>
  125. </lyt:section>
  126. </lyt:layout>
  127. </cf:dynamicExpandingSection>
  128. </xsl:if>
  129. </dp:groupItem>
  130. </dp:group>
  131. </xsl:if>
  132. <dp:footer>
  133. <dp:button>
  134. <a href="javascript:doCancel();">
  135. <dp:buttonText><xts:string id="IDS_OK"/></dp:buttonText>
  136. </a>
  137. </dp:button>
  138. </dp:footer>
  139. <!-- <dbg:dumpxml select="/"/> -->
  140. </utml:form>
  141. </dp:page>
  142. </xsl:template>
  143. </xsl:stylesheet>
  144. </xts:block>
  145. <!--
  146. ===============================================================================================
  147. debug - display debug information
  148. ===============================================================================================
  149. -->
  150. <xts:block id="debug" dependency="page" type="exec" condition=".[ /root/session/param[@name='debug'] = '1' ]" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  151. <!-- get the debug logic sheet -->
  152. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  153. <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">
  154. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  155. <xsl:template match="/">
  156. <dbg:dumpxml select="/root"/>
  157. </xsl:template>
  158. </xsl:stylesheet>
  159. </xts:block>
  160. </xts:morphlet>