viewer-closeIframe.xts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: Viewer
  5. (C) Copyright IBM Corp. 2001, 2011
  6. US Government Users Restricted Rights - Use, duplication or
  7. disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/viewer.xml, messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseCognosViewer">
  10. <xts:block id="closeDialog" processor="XSLT" type="exec" mode="output" mimeType="text/html" contentId="callrv" partId="1">
  11. <xsl:stylesheet version="1.0"
  12. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  13. exclude-result-prefixes="xsl">
  14. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  15. <xsl:template match="/">
  16. <html>
  17. <head>
  18. <script language="javascript">
  19. function finish()
  20. {
  21. if(typeof parent.destroyCModal == "function")
  22. {
  23. parent.destroyCModal();
  24. }
  25. else if (window.opener)
  26. {
  27. window.close();
  28. }
  29. }
  30. </script>
  31. </head>
  32. <body onload="finish();">
  33. </body>
  34. </html>
  35. </xsl:template>
  36. </xsl:stylesheet>
  37. </xts:block>
  38. <!--
  39. ===============================================================================================
  40. debug - display debug information
  41. ===============================================================================================
  42. -->
  43. <xts:block id="debug" dependency="closeDialog" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  44. <!-- get the debug logic sheet -->
  45. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  46. <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">
  47. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  48. <xsl:template match="/">
  49. <dbg:dumpxml select="/root"/>
  50. </xsl:template>
  51. </xsl:stylesheet>
  52. </xts:block>
  53. </xts:morphlet>