123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cpscrn
- (C) Copyright IBM Corp. 2005, 2014
- 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:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xts xtsext">
- <xsl:import href="common.xslt"/>
- <xsl:import href="layout.xslt"/>
- <xsl:import href="menus.xslt"/>
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xsl:call-template name="fragment-globals"/>
- <xsl:call-template name="html-globals"/>
- <xsl:call-template name="html-body"/>
- </xsl:template>
- <xsl:template name="fragment-globals">
- <script type="text/javascript">
-
- _F_Config = (window._F_Config !== undefined) ? window._F_Config: new Object();
- _F_Config.init = function(){
- var appGateway="<xsl:value-of select="$applicationGateway"/>";
- this.gateway = "<xsl:value-of select="$gateway"/>";
- this.application = appGateway.substring(appGateway.lastIndexOf("/"));
- this.webContent = "<xsl:value-of select="$contextPath"/>";
- };
- _F_Config.init();
- _F_Config.help = {
- path: "<xsl:value-of select="xtsext:javascriptencode($helpPath)"/>",
- langs: " <xsl:value-of select="xtsext:javascriptencode($helpSupportedLangs)"/> ",
- book: "<xsl:value-of select="xtsext:javascriptencode($helpDefaultBook)"/>"
- };
- </script>
- </xsl:template>
- <xsl:template name="html-globals">
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$applicationGateway"/><xsl:text>/messages/messages/pfmessages?section=JS</xsl:text></xsl:attribute>
- </script>
- <xsl:if test="'true' = $debug and '' != $debugFile">
- <script type="text/javascript">
- _F_Debug.enabled = <xsl:value-of select="$debug"/>;
- _F_Debug.IELiteLevel = <xsl:value-of select="$debugIELiteLevel"/>;
- <xsl:for-each select="$debugObjects/debugObject">
- _F_Debug.settings["<xsl:value-of select="@name"/>"] = <xsl:value-of select="@setting"/>;
- </xsl:for-each>
- </script>
- </xsl:if>
- <script type="text/javascript">
- <xsl:variable name="rootPath">
- <xsl:value-of select="/root/path"/>
- </xsl:variable>
- var <xsl:value-of select="/root/id"/>=_F_attach({path: "<xsl:value-of select="xtsext:javascriptencode($rootPath)"/>", id: "<xsl:value-of select="/root/id"/>", page: true});
- <xsl:value-of select="/root/id"/>.setOnloadHandler(ui_init);
- ui_error.prototype.template =
- '<div role="alert" id="_THIS_errormsg"></div>' +
- '<div>' +
- '<a id="_THIS_error_showdetails"><xts:string id="IDS_GEN_DETAILS" encode="javascript"/></a> | ' +
- '<a id="_THIS_error_retry"><xts:string id="IDS_GEN_RETRY" encode="javascript"/></a> | ' +
- '<a id="_THIS_error_hide"><xts:string id="IDS_GEN_HIDE" encode="javascript"/></a>' +
- '</div>';
- </script>
- </xsl:template>
- <xsl:template name="html-body">
- <xsl:apply-templates select="/root/layout"/>
- </xsl:template>
- </xsl:stylesheet>
|