1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xts lyt pf dp df">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <pf:variables/>
- <xsl:template match="/root">
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_COGNOS_REPORTS"/>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/> <!-- Standard meta tags -->
- </dp:meta>
- <dp:script>
- <pf:help context=""/> <!-- Help system -->
- </dp:script>
- <script language="javascript">
- function closePage()
- {
- var emptyHistoryThreshold = <xsl:choose><xsl:when test="$browser = 'ie'">0</xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose>;
- <xsl:choose>
- <xsl:when test="string(/root/displayMessage/backURL) != ''">
- document.location.href = "<xsl:value-of select="xtsext:javascriptencode(string(/root/displayMessage/backURL))"/>";
- </xsl:when>
- <xsl:otherwise> <!-- No BackURL provided -->
- // try to go back in history if we can
- if ( history.length > emptyHistoryThreshold )
- history.back();
- // try to close a win32 window if we appear inside of one
- else if (window.external && window.external.HasOnClose)
- window.external.OnClose(1);
- // close the browser window
- else
- window.close();
- </xsl:otherwise>
- </xsl:choose>
- }
- </script>
- <!-- dialog header -->
- <dp:header>
- <!-- header titles-->
- <dp:title showName="false">
- <xsl:value-of select="$browserTitle"/>
- </dp:title>
- <!-- header introduction -->
- <dp:close>
- <xsl:variable name="close"><xts:string id="IDS_CLOSE"/></xsl:variable>
- <a href="javascript:closePage();"><img height="16" width="16" class="dialogClose" vspace="2" border="0" src="{$skin_images}close.gif" alt="{$close}" onmouseover="this.className = 'dialogCloseOver'" onmouseout="this.className = 'dialogClose'"/></a>
- </dp:close>
- </dp:header>
- <lyt:layout style="1">
- <lyt:section>
- <dp:group>
- <dp:groupItem valign="top">
- <dp:text nospace="nospace" wrap="wrap">
- <xsl:value-of select="string(/root/displayMessage/message)"/>
- </dp:text>
- </dp:groupItem>
- </dp:group>
- </lyt:section>
- </lyt:layout>
- <dp:footer>
- <df:button df:id="IDS_CLOSE" df:style="href" df:href="javascript:closePage();"/>
- </dp:footer>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
|