123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620 |
- <?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).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml">
- <!-- ======================================================== -->
- <!-- Session Management -->
- <!-- ======================================================== -->
-
- <!-- Reads session-sensitive info from CM -->
- <xts:block processor="XSLT" type="exec" mandatory="false"
- id="refreshSession"
- path="portal/cc/read_session.xml"
- condition=".[
- string(/root/cookies/cookie[@name = 'cc_session']) = ''
- or /root/env/param[@name='m_reload']
- or /root/env/param[@name='m_root'] ]">
-
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
-
- <!-- Update the <session> element for this request. -->
- <xts:block id="buildSession" path="portal/session.xml"
- dependency="refreshSession" processor="XSLT" type="exec"
- condition=".[
- /root/newSession
- or /root/env/param[@name='ui']
- or /root/env/param[@name='d']
- or /root/env/param[starts-with(@name,'m_s_')]
- or /root/env/param[@name = 'resetSort'] ]"
- mandatory="false"/>
-
- <!-- Save changes to the state info in a cookie -->
- <xts:block mode="interpret" processor="XSLT" type="exec"
- id="setSession"
- path="portal/set_session.xml"
- dependency="buildSession"
- condition=".[/root/updateSession]"
- mandatory="false"/>
- <xts:block processor="XSLT" type="exec" mandatory="false"
- id="init"
- dependency="">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="portal/cc/search_pagers.xslt"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:out="http://www.w3.org/1999/XSL/Transform"
- xmlns:pg="http://developer.cognos.com/schemas/xts/pg"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- exclude-result-prefixes="xsl">
- <pf:sessionpassport/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:delete select="/root/env/param[@name='sfield']"/>
- <xts:append select="/root/env">
- <param name="sfield">k</param> <!-- index search mode -->
- <param name="open">true</param><!-- index search mode with open-->
- <param name="cs_contextversion">2</param> <!-- Context version -->
- <param name="cs_tree">true</param>
- </xts:append>
-
- <!-- attempt to read any applicable previously saved index search filter -->
- <pg:read_cs_filter/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block mandatory="false" processor="XSLT" type="exec"
- id="setSearch"
- dependency="buildSession init"
- condition=".[true()]"
- nodelist="cookies, env, session, system, user, configProps">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/searchlogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:search="http://developer.cognos.com/schemas/xts/logicsheets/xslt/searchlogic/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
- <pf:variables/>
- <cml:object-predicates/>
- <xsl:template match="/root">
- <!-- If we have a search command then append a <search> element -->
- <xsl:variable name="path">
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name='m_folder']) != ''">
- <xsl:value-of select="concat('storeID("', /root/env/param[@name='m_folder'], '")')"/>
- </xsl:when>
- <xsl:when test="string(/root/env/param[@name='m_path']) != ''">
- <xsl:value-of select="string(/root/env/param[@name='m_path'])"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="string(/root/system/param[@name='consumer-root'])"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xts:sequence>
- <search:gen-search-exp navInterface="true">
- <!-- index search object types -->
- <!-- note: only index search is supported by this morphlet -->
- <search:defaultTypes indexSearch="true">
- <search:defaultType>analysis</search:defaultType>
- <search:defaultType>agentDefinition</search:defaultType>
- <search:defaultType>agentDefinitionView</search:defaultType>
- <search:defaultType>report</search:defaultType>
- <search:defaultType>query</search:defaultType>
- <search:defaultType>reportView</search:defaultType>
- <search:defaultType>folder</search:defaultType>
- <search:defaultType>URL</search:defaultType>
- <search:defaultType>package</search:defaultType>
- <search:defaultType>pagelet</search:defaultType>
- <search:defaultType>powerPlayCube</search:defaultType>
- <search:defaultType>powerPlayReport</search:defaultType>
- <search:defaultType>powerPlay8Cube</search:defaultType>
- <search:defaultType>powerPlay8Report</search:defaultType>
- <search:defaultType>powerPlay8ReportView</search:defaultType>
- <search:defaultType>reportTemplate</search:defaultType>
- <search:defaultType>shortcut</search:defaultType>
- <search:defaultType>metric</search:defaultType>
- <search:defaultType>metricType</search:defaultType>
- <search:defaultType>scorecard</search:defaultType>
- </search:defaultTypes>
- </search:gen-search-exp>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block processor="XSLT" type="exec" mandatory="false"
- id="getContent"
- path="portal/cc/get_content_nav.xslt"
- condition=".[/root/search/navSearchSpec]"
- dependency="init setSearch"
- nodelist="header, http, env, system, session, search, cookies, setCookies, user, credential, configProps, page, tabPath_id">
- <xts:logicsheet path="portal/cc/search_pagers.xslt"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- </xts:block>
- <xts:block mandatory="false" processor="XSLT" type="exec"
- id="process"
- dependency="getContent">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/searchlogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:search="http://developer.cognos.com/schemas/xts/logicsheets/xslt/searchlogic/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
- <pf:variables/>
- <xsl:template match="/root">
- <xts:sequence>
- <xts:append select="/root">
- <xsl:choose>
- <xsl:when test="/root/navContent/nav:searchResponse/nav:open">
- <xsl:choose>
- <xsl:when test="/root/navContent/nav:searchResponse/nav:content/nav:item[1]/nav:defaultAction">
- <redirect/>
- </xsl:when>
- <xsl:otherwise>
- <error><xts:string id="IDS_OPEN_OBJECT_ERROR"/></error>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <renderResultset/>
- </xsl:otherwise>
- </xsl:choose>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="renderItems" mode="output" processor="XSLT" type="exec" mimeType="text/html"
- condition=".[/root/renderResultset]"
- dependency="getContent process">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/permissions.xsl"/>
- <xts:logicsheet path="portal/cc/search_pagers.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/search.xsl"/>
- <xts:logicsheet path="logicsheets/indextree.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:cs="http://developer.cognos.com/schemas/cs"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:out="http://www.w3.org/1999/XSL/Transform"
- xmlns:pg="http://developer.cognos.com/schemas/xts/pg"
- xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- exclude-result-prefixes="xsl cm cml pf mt mf xts xtsext cf cp out bus utml dp lyt pm">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <pm:permissions/>
- <pf:variables/>
- <mf:variables stateParams="t_cs_filter_saved cs_tree cs_requestversion desc_expanded m_folder m_folder2 m_searchsection m_searchcontext search stext sscope smethod sfield sstatus stype stype_is smodified sshortcuts stime rui id "/>
- <xsl:variable name="mname" select="'open.xts'"/>
- <xsl:variable name="js-encoded-path" select="xtsext:javascriptencode( string( $m_path ) )"/><!-- Required -->
- <xsl:variable name="cmd-form" select="'cform'"/> <!-- Required -->
- <xsl:variable name="edit-form" select="'pform'"/><!-- Required -->
- <xsl:variable name="isIndexSearch" select="string(/root/env/param[@name = 'sfield']) = 'k' or (string(/root/env/param[@name = 'sfield']) = '' and $userCanUseIndexSearch)"/>
- <cp:flyoutControl/>
- <mt:common-variables/>
- <!-- start the output -->
- <xsl:template match="/root">
- <!-- Note: DOCTYPE is handled by mt:page -->
- <html encodeDocType="false">
- <head>
- <pf:meta/><!-- Standard meta tags -->
- <title><xts:string id="IDS_PORTAL"/></title>
- <mt:stylesheet/><!-- add the theme style sheet -->
- <mf:head/><!-- Common framework logic for Cognos Central main view -->
- <pf:help context="HID_SEARCH"/><!-- Help system -->
- <pf:launch/><!-- adds functions to launch the studios.... -->
- </head>
- <!-- HTML body -->
- <mt:page mode="search">
- <xsl:call-template name="render-header"/><!-- Render the top headers. -->
- <xsl:call-template name="search-panel"/><!-- Insert search control panel -->
-
- <form action="{$gateway}" method="post" name="pform" style="margin:0px">
- <div id="wsrp_rewrite_div_result_busy_container" style="height:0px;display:none;"/>
- <pg:busyIndicator/>
- <div id="wsrp_rewrite_div_results">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <!-- tree section -->
- <xsl:if test="$isIndexSearch">
- <td valign="top" width="200px">
- <table cellpadding="0" cellspacing="0">
- <tr>
- <td>
- <img width="10" height="1" border="0" src="{$webcontent}/images/space.gif"/>
- </td>
- <td>
- <xsl:if test="/root/search/navSearchSpec or string(/root/search/expression) != ''">
- <img width="1" height="26" border="0" src="{$webcontent}/images/space.gif"/>
- <pg:treeResult width="200px" caller="cc">
- <pg:isIndexSearch>$isIndexSearch</pg:isIndexSearch>
- <pg:treeContent>/root/navContent/nav:searchResponse/nav:extensions/cs:subjectTree/QueryDescription/SubjectTree</pg:treeContent>
- </pg:treeResult>
- </xsl:if>
- </td>
- </tr>
- </table>
- </td>
- </xsl:if>
- <!-- result content section -->
- <td valign="top" width="100%">
- <lyt:layout style="1" joinSection="yes">
- <lyt:section width="100%">
- <xsl:choose>
- <xsl:when test="/root/search/indexSearchNotAllowed">
- <mt:errorMessage>
- <xts:string id="IDS_SEARCH_NO_INDEX_CAPABILITY"/>
- </mt:errorMessage>
- </xsl:when>
- <xsl:when test="/root/search/emptySearchExpression">
- <mt:objectNoneFound id="IDS_EMPTY_QUERY"/>
- </xsl:when>
- <xsl:when test="/root/search/navSearchSpec">
- <xsl:choose>
- <xsl:when test="$isIndexSearch">
- <!-- index search -->
- <pg:pager-indexSearch is-scrolling="true" id="wsrp_rewrite_div_results_content" noSelection='true'/>
- </xsl:when>
- <xsl:otherwise>
- <!-- basic search -->
- <pg:pager-basicSearch navContent='true' noSelection='true'/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- </xsl:choose>
- </lyt:section>
- </lyt:layout>
- </td>
- </tr>
- </table>
- </div>
- <mf:edit-vars/>
- </form>
- <form name="cform" method="post" action="{$gateway}" style="margin:0px">
- <mf:cmd-vars/>
- </form>
- </mt:page>
- <pg:common-script/>
- <pg:common-popup-script/>
- <pg:common-tree-script caller="cc">
- <pg:isIndexSearch>$isIndexSearch</pg:isIndexSearch>
- <pg:filterContext>/root/navContent/nav:searchResponse/nav:extensions/cs:filterContext/filterContext/FilterSpecification</pg:filterContext>
- <pg:searchFunctionName>doSearch</pg:searchFunctionName>
- <pg:gateway>gateway</pg:gateway>
- <pg:openList>/root/env/param[@name='open_list']</pg:openList>
- </pg:common-tree-script>
- <!-- End of HTML body -->
- </html>
- </xsl:template>
- <!-- Insert common templates -->
- <pg:do-the-path-link-nav/>
- <pf:ccinav-gen-icon/>
- <pf:ccinav-gen-url/>
- <pf:ccinav-gen-action-properties/>
- <pg:commonSupportTemplates/>
- <pf:gen-action/>
-
- <xsl:template name="render-header">
- <mt:h1 mode="basic">
- <mt:title><xts:string id="IDS_PORTAL"/></mt:title>
- </mt:h1>
- <mt:h4>
- <mt:path>
- <span class="bold"><xts:string id="IDS_SEARCH"/></span>
- </mt:path>
- <mt:toolbar>
- <!-- Show the toolbar when we have data to display -->
- <xsl:choose>
- <xsl:when test="count(/root/navContent/nav:searchResponse/nav:content/*) > 0">
- <mt:tool-group hideDivider="true">
- <mt:tool name="refresh"/>
- </mt:tool-group>
- </xsl:when>
- <xsl:otherwise>
- <mt:tool-group hideDivider="true">
- <mt:tool name="refresh" disable="true"/>
- </mt:tool-group>
- </xsl:otherwise>
- </xsl:choose>
- </mt:toolbar>
- </mt:h4>
- </xsl:template>
- <xsl:template name="search-panel">
- <mt:search indexSearch="true">
- <!-- TODO: open.xts most likely _only_ handle burgundy search -->
- <!-- In the case where user not having the burgundy capability (or burgundy not installed) -->
- <!-- an error page could be issued when open.xts is invoked -->
- <mt:fields>
- <mt:field>k</mt:field>
- </mt:fields>
- <!-- index search object types -->
- <mt:stypes indexSearch='true'>
- <mt:stype name="agentDefinition"><xts:string id="IDS_OBJ_AGENT"/></mt:stype>
- <mt:stype name="agentDefinitionView"><xts:string id="IDS_OBJ_AGENTVIEW"/></mt:stype>
- <mt:stype name="analysis"><xts:string id="IDS_OBJ_ANALYSIS"/></mt:stype>
- <mt:stype name="folder"><xts:string id="IDS_OBJ_FOLDER"/></mt:stype>
- <mt:stype name="metric"><xts:string id="IDS_OBJ_METRICS_METRIC"/></mt:stype>
- <mt:stype name="metricsPackage"><xts:string id="IDS_OBJ_METRICSPACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for metrics manager-->
- <mt:stype name="metricType"><xts:string id="IDS_OBJ_METRICS_METRIC_TYPE"/></mt:stype>
- <mt:stype name="package"><xts:string id="IDS_OBJ_PACKAGE"/></mt:stype>
- <mt:stype name="pagelet"><xts:string id="IDS_OBJ_PAGELET"/></mt:stype>
- <mt:stype name="planningPackage"><xts:string id="IDS_OBJ_PLANNING_PACKAGE"/></mt:stype> <!-- Not actual object type, package with userInterfaces for planning package-->
- <mt:stype name="powerPlayCube"><xts:string id="IDS_OBJ_POWERPLAYCUBE"/></mt:stype>
- <mt:stype name="powerPlayReport"><xts:string id="IDS_OBJ_POWERPLAYREPORT"/></mt:stype>
- <mt:stype name="powerPlay8Cube"><xts:string id="IDS_OBJ_POWERPLAY8CUBE"/></mt:stype>
- <mt:stype name="powerPlay8Report"><xts:string id="IDS_OBJ_POWERPLAY8REPORT"/></mt:stype>
- <mt:stype name="powerPlay8ReportView"><xts:string id="IDS_OBJ_POWERPLAY8REPORTVIEW"/></mt:stype>
- <mt:stype name="query"><xts:string id="IDS_OBJ_QUERY"/></mt:stype>
- <mt:stype name="report"><xts:string id="IDS_OBJ_REPORT"/></mt:stype>
- <mt:stype name="interactiveReport"><xts:string id="IDS_OBJ_INTERACTIVEREPORT"/></mt:stype>
- <mt:stype name="reportTemplate"><xts:string id="IDS_OBJ_REPORTTEMPLATE"/></mt:stype>
- <mt:stype name="reportView"><xts:string id="IDS_OBJ_REPORTVIEW"/></mt:stype>
- <mt:stype name="scorecard"><xts:string id="IDS_OBJ_SCORECARD"/></mt:stype>
- <mt:stype name="shortcut"><xts:string id="IDS_SHORTCUTS"/></mt:stype>
- <mt:stype name="URL"><xts:string id="IDS_OBJ_URL"/></mt:stype>
- </mt:stypes>
- <mt:close-params>
- <param>id</param>
- </mt:close-params>
- </mt:search>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="redirect" mode="output" processor="XSLT" type="exec" mimeType="text/html"
- condition=".[/root/redirect]"
- dependency="getContent process">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/permissions.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- exclude-result-prefixes="xsl cm cml pf mf xts xtsext cf cp bus dp lyt pm">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <pm:permissions/>
- <pf:variables/>
- <mf:variables/>
- <xsl:variable name="cmd-form" select="'cform'"/>
- <xsl:template match="/root">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$product_name">
- <dp:meta>
- <pf:meta/>
- </dp:meta>
- <dp:script>
- <!--<pf:launch/>--> <!-- Requires $cmd-form, $back-url to be defined -->
- <script language="javascript">
- function init()
- {
- <xsl:variable name="the-obj" select="/root/navContent/nav:searchResponse/nav:content/nav:item[1]/nav:defaultAction/nav:urlParts"/>
- <xsl:variable name="href">
- <xsl:value-of select="$the-obj/nav:gateway"/>?<xsl:text/>
- <xsl:for-each select="$the-obj/nav:param">
- <xsl:value-of select="@name"/>=<xsl:value-of select="."/>&<xsl:text/>
- </xsl:for-each>
- <xsl:text/>launch.openJSStudioInFrame=true<xsl:text/>
- </xsl:variable>
- var href = '<xsl:value-of select="$href"/>';
- document.location = href;
- }
- </script>
- </dp:script>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="renderError" mode="output" processor="XSLT" type="exec" mimeType="text/html"
- condition=".[/root/error]"
- dependency="getContent process">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/permissions.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- exclude-result-prefixes="xsl cm cml pf mf xts xtsext cf cp bus dp lyt pm">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <pm:permissions/>
- <pf:variables/>
- <mf:variables/>
- <xsl:template match="/root">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$product_name">
- <dp:script>
- <script type="text/javascript">
- function doCancel() {
- close();
- }
- </script>
- </dp:script>
- <dp:meta>
- <!-- Add standard meta tags -->
- <pf:meta/>
- <dp:script>
- <pf:help context=""/> <!-- Help system -->
- </dp:script>
- <!-- dialog header -->
- </dp:meta>
- <!-- dialog header -->
- <dp:header help="false">
- <!-- header titles -->
- <dp:title><xsl:value-of select="$product_name"/></dp:title>
- <!-- close link for the header -->
- <dp:close>
- <a href="javascript:doCancel()">
- <dp:closeMarker/>
- </a>
- </dp:close>
- <!-- description (hint text) -->
- <dp:description><xsl:value-of select="substring-before(string(/root/selectionSpec),',')"/></dp:description>
- </dp:header>
- <lyt:layout style="1">
- <lyt:section>
- <dp:group>
- <dp:groupItem>
- <img height="32" width="32" border="0">
- <xsl:attribute name="src">
- <xsl:value-of select="$webcontent"/>/<xsl:value-of select="$app"/>
- <xsl:text/>/images/msg_error.gif<xsl:text/>
- </xsl:attribute>
- </img>
- </dp:groupItem>
- <dp:groupItem>
- <!-- used for alignment -->
- <dp:text/><xsl:text> </xsl:text>
- </dp:groupItem>
- <dp:groupItem valign="top">
- <dp:text nospace="nospace" wrap="wrap">
- <xsl:value-of select="/root/error"/>
- </dp:text>
- </dp:groupItem>
- </dp:group>
- </lyt:section>
- </lyt:layout>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!-- Debug -->
- <xts:block type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html"
- id="debug"
- condition=".[ /root/env/param[@name='d'] = '1' or /root/session/param[@name='debug'] = '1']"
- dependency="renderItems">
-
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <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">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <dbg:templates/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|