123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- *****************************************************************
- ** Licensed Materials - Property of IBM
- **
- ** IBM Cognos Products: drill
- **
- ** (C) Copyright IBM Corp. 2001, 2013
- **
- ** 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:scope="http://developer.cognos.com/schemas/xts/scope"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:out="dummy-uri"
- xmlns:xts="http://developer.cognos.com/schemas/xts/">
-
- <xsl:output method="xml" encoding="UTF-8" indent="no"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
- <xsl:template match="scope:jscripts">
- <out:variable name="type" select="{@type}"/>
- <out:variable name="selectedNode">
- <out:choose>
- <out:when test="$type = 'scope' and contains(string(/root/env/param[@name='m_p_scope']),'].[')">
- <out:value-of select="/root/env/param[@name='m_p_scope']"/>
- </out:when>
- <out:when test="$type = 'query' and contains(string(/root/env/param[@name='m_p_bookmarkItem']),'].[')">
- <out:value-of select="/root/env/param[@name='m_p_bookmarkItem']"/>
- </out:when>
- <out:when test="$type = 'param' and contains(string(/root/env/param[@name=concat('drillParam_',string(/root/env/param[@name='paramToSelect']))]),'].[')">
- <out:value-of select="/root/env/param[@name=concat('drillParam_',string(/root/env/param[@name='paramToSelect']))]"/>
- </out:when>
- </out:choose>
- </out:variable>
- <script language="javascript">
- var prod_dir = "<out:value-of select="$app"/>";
- var images_dir = "ps/portal/images";
- var cafContextId = "";
- var contentlocale = "<out:value-of select="$contentLocale"/>";
- var productlocale = "<out:value-of select="$productLocale"/>";
- var serverURL = "<out:value-of select="xtsext:javascriptencode(string(/root/http/param[@name='SERVER_URL']))"/>";
- var serverName = "<out:value-of select="xtsext:javascriptencode(string(/root/http/param[@name='SERVER_NAME']))"/>";
- var serverPort = "<out:value-of select="xtsext:javascriptencode(string(/root/http/param[@name='SERVER_PORT']))"/>";
- var scriptEngine = "<out:value-of select="xtsext:javascriptencode(string(/root/http/param[@name='SCRIPT_NAME']))"/>";
- var browserType = "<out:value-of select="$browser"/>";
- var model = "<out:value-of select="xtsext:urlencode(string(/root/env/param[@name='m_path']))"/>";
- var selectedNode = "<out:value-of select="xtsext:javascriptencode(string($selectedNode))"/>";
- var startAt = "<out:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='startAtPath']))"/>";
- var rptSvcParam = "<out:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='encodedRptSvcParam']))"/>";
- var routingServerGroup = "<out:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='routingServerGroup']))"/>";
- function g_PS_getWebRoot()
- {
- return "<out:value-of select="xtsext:javascriptencode($webRoot)"/>";
- }
- </script>
- <script type="text/javascript" src="{'{$webRoot}'}/prompting/prompting.js">//</script>
- <script type="text/javascript" src="{'{$webRoot}'}/prompting/CTreeIE5NS6.js">//</script>
- <script type="text/javascript" src="{'{$webRoot}'}/prompting/CDispatcher.js">//</script>
- <script type="text/javascript" src="{'{$webcontent}'}/portal/js/config.js">//</script>
- <script type="text/javascript" src="{'{$webcontent}'}/portal/js/requestManager.js">//</script>
- <script type="text/javascript" src="{'{$webcontent}'}/portal/js/cmd.js">//</script>
- <script type="text/javascript" src="{'{$webRoot}'}/common/framework/util/XMLParser.js">//</script>
- <script type="text/javascript">
- <out:attribute name="src"><out:value-of select="$webRoot"/>/prompting/res/promptingStrings_<out:value-of select="$productLocale"/>.js</out:attribute>
- <out:text/>//<out:text/>
- </script>
- <script type="text/javascript" src="{'{$webRoot}'}/qs/dragDropIE5.js">//</script>
- <!-- extra scripts (mostly variable definitions) -->
- <script type="text/javascript" src="{'{$webcontent}'}/portal/js/metadataTree.js">//</script>
- <script language="javascript">
- function init()
- {
- loadCfgArray('<out:value-of select="$type"/>');
- doMetadataTree('<out:value-of select="$browser"/>', contentlocale);
- }
- </script>
- </xsl:template>
- <xsl:template match="scope:metadataTree">
- <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="height:90%;width:100%">
- <tr>
- <td><img height="10" width="1" src="{'{$webcontent}'}/images/space.gif"/></td>
- </tr>
- <tr>
- <td width="100%" height="100%">
- <table border="0" cellpadding="0" role="presentation" cellspacing="0" style="height:100%;width:100%">
- <tr>
- <td valign="top" style="width:100%; height:100%;">
- <div class="dialogTreePane" id="metadataTreeContainer" name="metadataTree" />
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- </xsl:stylesheet>
|