123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: rsvp
- (C) Copyright IBM Corp. 2005, 2019
- US Government Users Restricted Rights - Use, duplication or disclosure
- restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rsext="xalan://com.cognos.reportserver.ext.RSExt" version="1.0" extension-element-prefixes="rsext">
- <xsl:include href="V5environment_sdk.xsl"/>
- <xsl:include href="V5ReportEngine.xsl"/>
- <xsl:include href="V5drillthru.xsl"/>
- <xsl:include href="../../ps/prompting/p_include_V5ParamSafe.xsl"/>
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:variable name="promptLocale" select="$contentLocale"/>
- <xsl:variable name="promptFormName" select="'formWarpRequest'"/>
- <xsl:variable name="sGenerateContextData">
- <xsl:choose>
- <!-- <xsl:when test="//META-DATA[@contextItemFormat='InitializerFormat'] and $strict='false'">true</xsl:when> -->
- <xsl:when test="$generateContextData = 'true' and $strict='false'">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!--
- template : /Document
- -->
- <xsl:template match="/Document">
- <xsl:choose>
- <xsl:when test="$htmlFragment='true'">
- <xsl:if test="$firstPage='true'">
- <xsl:text disable-output-escaping="yes"><!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: rsvp
- (C) Copyright IBM Corp. 2005, 2013
- US Government Users Restricted Rights - Use, duplication or disclosure
- restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- </xsl:text>
- <xsl:text disable-output-escaping="yes"><!--</xsl:text>
- <xsl:apply-templates select="/Document/styleOptions"/>
- <xsl:text disable-output-escaping="yes"> -->
- </xsl:text>
- <xsl:call-template name="chartConfig"/>
- <xsl:call-template name="preProcess"/>
- </xsl:if>
- <xsl:apply-templates select="DATA"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$firstPage='true'">
- <xsl:choose>
- <xsl:when test="$Xhtml='true'">
- <xsl:choose>
- <xsl:when test="$strict='true'">
- <xsl:if test="$appSupport='false'">
- <xsl:text disable-output-escaping="yes"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "</xsl:text>
- <xsl:value-of select="$basePath"/>
- <xsl:text disable-output-escaping="yes">../dtds/xhtml1-strict.dtd">
- </xsl:text>
- </xsl:if>
- <xsl:text disable-output-escaping="yes"><html xmlns="http://www.w3.org/1999/xhtml" lang="</xsl:text><xsl:value-of select="$contentLocale"/><xsl:text disable-output-escaping="yes">" xml:lang="</xsl:text><xsl:value-of select="$contentLocale"/><xsl:text disable-output-escaping="yes">"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.w3.org/1999/xhtml </xsl:text>
- <xsl:text disable-output-escaping="yes">../dtds/xhtml1-strict.xsd">
- </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$appSupport='false'">
- <xsl:choose>
- <xsl:when test="$quirks='false'">
- <xsl:text disable-output-escaping="yes"><!DOCTYPE html></xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text disable-output-escaping="yes"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "</xsl:text>
- <xsl:value-of select="$basePath"/>
- <xsl:text disable-output-escaping="yes">../dtds/xhtml1-transitional.dtd">
- </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:text disable-output-escaping="yes">
- <html lang="</xsl:text><xsl:value-of select="$contentLocale"/><xsl:text disable-output-escaping="yes">">
- </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text disable-output-escaping="yes"><head></xsl:text>
- <xsl:if test="$appSupport='false'">
- <xsl:choose>
- <xsl:when test="$quirks='false'">
- <xsl:text disable-output-escaping="yes">
- <meta http-equiv="Content-Type" content="text/html; charset=</xsl:text><xsl:value-of select="$encoding" disable-output-escaping="yes"/><xsl:text disable-output-escaping="yes">"/>
- <meta name="Copyright" content="Licensed Materials - Property of IBM; IBM Cognos Products: rsvp; (C) Copyright IBM Corp. 2005, 2013; US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp."/>
- <meta name="GeneratorID" content="</xsl:text><xsl:value-of select="$generatorID" disable-output-escaping="yes"/><xsl:text disable-output-escaping="yes">"/>
- </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text disable-output-escaping="yes">
- <meta http-equiv="Content-Type" content="text/html; charset=</xsl:text><xsl:value-of select="$encoding" disable-output-escaping="yes"/><xsl:text disable-output-escaping="yes">"/><meta http-equiv="MSThemeCompatible" content="no"</xsl:text><xsl:text disable-output-escaping="yes">/>
- <meta http-equiv="X-UA-Compatible" content="IE=5"/>
- <meta name="Copyright" content="Licensed Materials - Property of IBM; IBM Cognos Products: rsvp; (C) Copyright IBM Corp. 2005, 2013; US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp."/>
- <meta name="GeneratorID" content="</xsl:text><xsl:value-of select="$generatorID" disable-output-escaping="yes"/><xsl:text disable-output-escaping="yes">"/>
- </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$appSupport='false'">
- <!-- The system identifier (URI) is optional when the external identifier indicates the language is public -->
- <xsl:choose>
- <xsl:when test="$quirks='false'">
- <xsl:text disable-output-escaping="yes"><!DOCTYPE html>
- </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text disable-output-escaping="yes"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:text disable-output-escaping="yes"><html lang="</xsl:text><xsl:value-of select="$contentLocale"/><xsl:text disable-output-escaping="yes">">
- <head></xsl:text>
- <xsl:if test="$appSupport='false'">
- <xsl:choose>
- <xsl:when test="$quirks='false'">
- <xsl:text disable-output-escaping="yes">
- <meta http-equiv="Content-Type" content="text/html; charset=</xsl:text><xsl:value-of select="$encoding" disable-output-escaping="yes"/><xsl:text disable-output-escaping="yes">"></xsl:text><xsl:text disable-output-escaping="yes">
- <meta name="Copyright" content="Licensed Materials - Property of IBM; IBM Cognos Products: rsvp; (C) Copyright IBM Corp. 2005, 2013; US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.">
- <meta name="GeneratorID" content="</xsl:text><xsl:value-of select="$generatorID" disable-output-escaping="yes"/><xsl:text disable-output-escaping="yes">"/>
- </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text disable-output-escaping="yes">
- <meta http-equiv="Content-Type" content="text/html; charset=</xsl:text><xsl:value-of select="$encoding" disable-output-escaping="yes"/><xsl:text disable-output-escaping="yes">"><meta http-equiv="MSThemeCompatible" content="no"</xsl:text><xsl:text disable-output-escaping="yes">/>
- <meta http-equiv="X-UA-Compatible" content="IE=5">
- <meta name="Copyright" content="Licensed Materials - Property of IBM; IBM Cognos Products: rsvp; (C) Copyright IBM Corp. 2005, 2013; US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.">
- <meta name="GeneratorID" content="</xsl:text><xsl:value-of select="$generatorID" disable-output-escaping="yes"/><xsl:text disable-output-escaping="yes">"/>
- </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <!-- If generating HTML and XHTML, include the QS Viewer selection UI styles link (not applicable for fragments) -->
- <xsl:if test="$sGenerateContextData='true' and $appSupport='false'">
- <link rel="stylesheet" type="text/css" href="../skins/corporate/viewer/QSRVSelection.css"/>
- </xsl:if>
- <xsl:apply-templates select="/Document/styleOptions"/>
- <!-- Can't leave a empty title tag, XSLT will optimise it to <title/> and IE6.0 won't recognise it as a end tag, so all the rest of the document becomes the title and you get a blank page... -->
- <xsl:text disable-output-escaping="yes">
- <title></xsl:text>
- <xsl:value-of select="$reportTitle" disable-output-escaping="yes"/>
- <xsl:text disable-output-escaping="yes"></title>
- </xsl:text>
- <xsl:if test="$promptSupport='true'">
- <!-- Add prompt control javascript and style sheets -->
- <xsl:call-template name="getPromptHeadIncludes">
- <xsl:with-param name="promptLocale" select="$productLocale"/>
- <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
- </xsl:call-template>
- </xsl:if>
-
- <xsl:if test="$drillSupport!='no'">
- <xsl:call-template name="getDrillThruHead"/>
- </xsl:if>
- <xsl:call-template name="chartConfig"/>
- <xsl:call-template name="parentViewerScript"/>
- <xsl:call-template name="preProcess"/>
- <xsl:apply-templates select="/Document/ReportPageSet"/>
- <xsl:text disable-output-escaping="yes">
- </head>
- <body</xsl:text>
- <xsl:if test="$accessible='true'">
- <xsl:choose>
- <xsl:when test="$appSupport='false'">
- <xsl:text disable-output-escaping="yes"> role="main"</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text disable-output-escaping="yes"> role="application"</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <!-- render the body tag and attributes -->
- <xsl:if test="$appSupport='false'">
- <xsl:choose>
- <xsl:when test="$strict='true'">
- <xsl:text disable-output-escaping="yes">
- onclick="if(parent &amp;&amp; typeof parent.oCV_THIS_ == 'object') parent.oCV_THIS_.rvMainWnd.pageClicked(event);"</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text disable-output-escaping="yes">
- onclick="onClickEvent(event);"</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$sGenerateContextData='true' or $accessible='true'">
- <xsl:text disable-output-escaping="yes"> onkeydown="onKeyDownEvent(event);"</xsl:text>
- <!-- generate the options on the body (which include interactive events when initializer format context is present) -->
- <xsl:if test="$sGenerateContextData='true'">
- <xsl:text disable-output-escaping="yes"> onload="onLoadEvent(event);" onmousemove="onMouseMoveEvent(event);" ondblclick="onDoubleClickEvent(event);" oncontextmenu="onContextMenuEvent(event);"</xsl:text>
- </xsl:if>
- </xsl:if>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$strict='true'">
- <xsl:text disable-output-escaping="yes"> style="margin-top:0px;margin-left:0px;background-color: #FFFFFF;">
- </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text disable-output-escaping="yes"> topmargin="0" leftmargin="0" style="background-color: #FFFFFF;">
- </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$promptSupport='false'">
- <xsl:apply-templates select="DATA"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$firstPage='true'">
- <xsl:choose>
- <xsl:when test="$strict = 'true'">
- <xsl:text disable-output-escaping="yes"><form name="formWarpRequest" id="formWarpRequest" method="post" style="margin:0px" onsubmit="if((typeof promptButtonOK).match(/^function$/i)){promptButtonOK();return false;} else if((typeof execute).match(/^function$/i)){execute();return false;}">
- </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text disable-output-escaping="yes"><FORM NAME="formWarpRequest" ID="formWarpRequest" METHOD="POST" style="margin:0px" onsubmit="if((typeof promptButtonOK).match(/^function$/i)){promptButtonOK();return false;} else if((typeof execute).match(/^function$/i)){execute();return false;}">
- </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="not(optionList/userData/@name='b_action')">
- <xsl:text disable-output-escaping="yes"><input type="hidden" name="b_action" value="xts.run"/>
- </xsl:text>
- </xsl:if>
- <xsl:if test="not(optionList/userData/@name='m')">
- <xsl:text disable-output-escaping="yes"><input type="hidden" name="m" value="async/conv.xts"/>
- </xsl:text>
- </xsl:if>
- <xsl:if test="not(optionList/userData/@name='ui.action')">
- <xsl:text disable-output-escaping="yes"><input type="hidden" name="ui.action" value="forward"/>
- </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="optionList/userData[./@name!='ui.spec' or ./@name!='ui.conversation' or ./@name!='ui.object']"/>
- <xsl:text disable-output-escaping="yes"><input type="hidden" name="ui.object" value=""/>
- <input type="hidden" name="ui.spec" value=""/>
- <input type="hidden" name="ui.conversation" value=""/>
- <input type="hidden" name="run.prompt" value=""/>
- </xsl:text>
- </xsl:if>
- <xsl:apply-templates select="DATA"/>
- <xsl:if test="$lastPage='true'">
- <xsl:text disable-output-escaping="yes">
- </FORM>
- </xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$lastPage='true'">
- <xsl:call-template name="getDrillThruBody"/>
- <xsl:call-template name="postProcess"/>
- <xsl:text disable-output-escaping="yes">
- </body>
- </html>
- </xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- userData nodes that are prefixed with either an _ or a p_ (prompt values) will not be round-tripped -->
- <!-- <xsl:template match="userData">
- <xsl:if test="substring(@name,1,1)!='_'">
- <xsl:if test="substring(@name,1,2)!='p_'">
- <xsl:text disable-output-escaping="yes">
- <INPUT TYPE="HIDDEN" NAME="</xsl:text>
- {@name}<xsl:text disable-output-escaping="yes">" VALUE="</xsl:text>
- {@value}<xsl:text disable-output-escaping="yes">"/>
- </xsl:text>
- </xsl:if>
- </xsl:if>
- </xsl:template>-->
- <!--
- The following templates are only required by Query Studio but since they are called from generic XSL code,
- they are defined here as empty templates.
- -->
- <xsl:template name="parentViewerScript">
- <xsl:if test="$appSupport='false'">
- <script type="text/javascript">
- var gCognosViewerId = "_THIS_";
- var sLocation = document.location.search;
- if (sLocation.match(/cv\.id=([^&?]*)/))
- {
- gCognosViewerId = RegExp.$1;
- }
-
- function getCognosViewer()
- {
- var cognosViewer = null;
- try
- {
- cognosViewer = eval("parent.oCV" + gCognosViewerId);
- }
- catch(e)
- {
- cognosViewer = null;
- }
-
- return cognosViewer;
- }
-
- <xsl:if test="$sGenerateContextData='true'">
- function getSelectionController()
- {
- var selectionController = null;
- var cognosViewer = getCognosViewer();
- if(cognosViewer != null)
- {
- selectionController = cognosViewer.getSelectionController();
- }
- return selectionController;
- };
- function onLoadEvent(evt)
- {
- <xsl:variable name="metaData">
- <xsl:value-of select="string(/Document/META-DATA/Block)" disable-output-escaping="yes"/>
- </xsl:variable>
- <xsl:variable name="contextData">
- <xsl:value-of select="string(/Document/CONTEXT-DATA/*[local-name()=$contextBlock])" disable-output-escaping="yes"/>
- </xsl:variable>
- var selectionController = getSelectionController();
- if(selectionController != null)
- {
- selectionController.addMetaData(<xsl:value-of select="$metaData"/>);
- selectionController.addContextData(<xsl:value-of select="$contextData"/>);
- selectionController.setSelectionBasedFeaturesEnabled(true);<xsl:text/>
- <xsl:if test="/Document/META-DATA/@modelBasedDrillThru='true'">
- selectionController.setModelDrillThroughEnabled(true);<xsl:text/>
- </xsl:if>
- }
- else {
- setTimeout(onLoadEvent, 100);
- }
- };
- function onMouseMoveEvent(evt)
- {
- var selectionController = getSelectionController();
- if(selectionController != null)
- {
- selectionController.pageHover(evt);
- }
- };
- function onKeyDownEvent(evt)
- {
- var cognosViewer = getCognosViewer();
- if(cognosViewer != null)
- {
- cognosViewer.onKeyDown(evt);
- }
- };
- function onDoubleClickEvent(evt)
- {
- var selectionController = getSelectionController();
- if(selectionController != null)
- {
- selectionController.pageDoubleClicked(evt);
- }
- };
- function onContextMenuEvent(evt)
- {
- var cognosViewer = getCognosViewer();
- if(cognosViewer != null)
- {
- cognosViewer.dcm(evt,true);
- }
- };
- function preSelectNode(evt)
- {
- if (document.all)
- {
- var cognosViewer = getCognosViewer();
- if(cognosViewer != null)
- {
- cognosViewer.pcc(evt);
- }
- }
- }
- </xsl:if>
- function onClickEvent(evt)
- {
- var cognosViewer = getCognosViewer();
- if(cognosViewer && cognosViewer.rvMainWnd)
- {
- cognosViewer.rvMainWnd.pageClicked(evt);
- }
- };
- </script>
- </xsl:if>
- </xsl:template>
- <xsl:template name="startPage"/>
- <!-- used in selection -->
- <xsl:template name="GenEventHandlers">
- <xsl:if test="$sGenerateContextData='true' and (@layoutClass='listColumnBody' or @layoutClass='listColumnTitle' or @layoutClass='rowCell' or @layoutClass='crosstabFactCell' or @layoutClass='crosstabNodeMember' or @layoutClass='crosstabCorner' or @layoutClass='repeaterTableCell' or name()='OCHART')">
- <xsl:if test="$appSupport='false'">
- <xsl:copy-of select="@cid"/>
- <xsl:if test="@uid != ''">
- <xsl:copy-of select="@uid"/>
- <xsl:attribute name="name">c_THIS_<xsl:value-of select="@uid"/></xsl:attribute>
- </xsl:if>
- </xsl:if>
- <xsl:copy-of select="@ctx"/>
- <xsl:if test="$appSupport='false'">
- <xsl:copy-of select="@type"/>
- </xsl:if>
- <xsl:if test="@class">
- <xsl:attribute name="class">
- <xsl:if test="$appSupport='false'">c_THIS_<xsl:value-of select="@uid"/><xsl:text> </xsl:text></xsl:if>
- <xsl:value-of select="@class"/>
- <xsl:if test="@styleId and $vUseStyleId='true'">
- <xsl:text> </xsl:text><xsl:value-of select="@styleId"/>
- </xsl:if>
- </xsl:attribute>
- </xsl:if>
- </xsl:if>
- <xsl:if test="name() = 'OCHART'">
- <xsl:if test="$sGenerateContextData='true' and $appSupport='false'">
- <xsl:attribute name="rsvpChart">true</xsl:attribute>
- </xsl:if>
- </xsl:if>
- </xsl:template>
- <!-- used to add events to the main page for selection -->
- <xsl:template match="*[@layoutClass='textItem']" priority="1">
- <span>
- <xsl:call-template name="GenTabIndexAttribute"/>
- <xsl:call-template name="AddAccessibleTagsForSpan"/>
- <xsl:if test="$sGenerateContextData='true'">
- <xsl:copy-of select="@ctx"/>
- </xsl:if>
- <xsl:call-template name="GenCommonAttributes"/>
- <xsl:value-of select="rsext:htmlencode(string(.))" disable-output-escaping="yes"/>
- </span>
- </xsl:template>
- <xsl:template match="OAREA" priority="2">
- <xsl:if test="MEMBER or drillTargets or MEASURE">
- <xsl:if test="MEMBER or MEASURE">
- <xsl:copy-of select="@ctx"/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="@type='legendTitle'">
- <xsl:attribute name="isChartTitle">true</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="@type='ordinalAxisTitle'">
- <xsl:attribute name="isChartTitle">true</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:if test="$appSupport='false'">
- <xsl:attribute name="onmouseup"><xsl:text>preSelectNode(event);</xsl:text></xsl:attribute>
- </xsl:if>
- <xsl:if test="drillTargets">
- <xsl:choose>
- <xsl:when test="$appSupport='true'">
- <xsl:attribute name="drillCtx"><xsl:value-of select="./drillTargets/@drillCtx"/></xsl:attribute>
- </xsl:when>
- <xsl:when test="count(./drillTargets/drillTarget) = 1 and ./drillTargets/drillTarget/@bookmarkRef != '' and $drillSupport='no'">
- <!-- We only get in this template if there is drill information to be rendered
- but if drillSupport=no, then we are dealing with a simple bookmark -->
- <xsl:attribute name="href">
- <xsl:text disable-output-escaping="yes">#</xsl:text>
- <xsl:value-of select="rsext:replace (rsext:urlencode(string(./drillTargets/drillTarget/@bookmarkRef)), '+', '-')"/>
- </xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="style"><xsl:text>cursor:pointer;cursor:hand;</xsl:text></xsl:attribute>
- <xsl:call-template name="generateDrillThroughEventHandler">
- <xsl:with-param name="node" select="./drillTargets"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:if>
- </xsl:template>
- <!--
- This template is used to generate tabset information
- -->
- <xsl:template match="ReportPageSet">
- <script language="javascript" type="text/javascript">
- <xsl:if test="$Xhtml='true'">
- <xsl:text disable-output-escaping="yes">
- //<![CDATA[
- </xsl:text>
- </xsl:if>
- var cognosViewer = getCognosViewer();
- if (cognosViewer) {
- var gJSONTabs = <xsl:call-template name="createJsonTabset">
- <xsl:with-param name="node" select="."/>
- </xsl:call-template>;
- cognosViewer.setTabInfo(gJSONTabs);
- }
- <xsl:if test="$Xhtml='true'">
- <xsl:text disable-output-escaping="yes">
- //]]>
- </xsl:text>
- </xsl:if>
- </script>
- </xsl:template>
- </xsl:stylesheet>
|