123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2012
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008, 2015 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/portalRL.xml, messages/portal.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']) = '' and not(/root/setCookies/cookie[@name='cam_passport' and string(@maxAge) = '-1']))
- 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 or /root/deleteCookies]"
- mandatory="false"/>
- <!-- Encode the callers environment to use when ok or cancel is pressed. Only so.parameters and m are not encoded. ================ -->
- <xts:block
- id="handleCallerEnv"
- processor="XSLT"
- type="exec"
- condition=".[not(/root/env/param[@name='so.handledCallerEnv'])]"
- path="portal/select/src/handleCallerEnv.xslt"
- dependency="setSession"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- </xts:block>
- <!-- Convert paths to id's. ================ -->
- <xts:block
- id="preprocess"
- processor="XSLT"
- type="exec"
- condition=".[not(/root/env/param[@name='so.defaultRootId'])]"
- path="portal/select/src/preprocess.xslt"
- dependency="handleCallerEnv"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!-- Decode an existing selectionSpec node to use on return trip either from a navigation operation or a page refresh. ================ -->
- <xts:block
- id="unpackSelectionSpec"
- processor="XSLT"
- type="exec"
- dependency="handleCallerEnv preprocess"
- condition=".[/root/env/param[@name='so.savedSelectionSpec']]"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:variable name="passport" select="/root/credential/param[@name='CAM']/*[local-name() ='CAM']/*[local-name() = 'CAMPassport']/*[local-name() = 'id']"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap', string(/root/env/param[@name='so.savedSelectionSpec'])), true())" disable-output-escaping="yes"/>
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap', string(/root/env/param[@name='so.savedspecGuide'])), true())" disable-output-escaping="yes"/>
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap', string(/root/env/param[@name='so.savedCallerEnv'])), true())" disable-output-escaping="yes"/>
- </xts:append>
- <xts:delete select="/root/env/param[@name='so.savedSelectionSpec' or @name='so.savedspecGuide' or @name='so.savedCallerEnv']"/>
- </xts:sequence>
- </xsl:template>
- <pf:serialize-xml/>
- </xsl:stylesheet>
- </xts:block>
- <!-- <xts:block id="selectionSpecMessages" type="exec" mode="interpret" processor="XSLT" dependency="getRootNames getRootMap unpackSelectionSpec" condition=".[not(/root/selectionSpec/item[@name='selectionTitle']) or not(/root/selectionSpec/item[@name='selectionIntro'])]" path="portal/select/src/selectionSpecMessages.xslt" mandatory="false"/> -->
- <xts:block
- id="messages"
- type="exec"
- mode="interpret"
- processor="XSLT"
- dependency="unpackSelectionSpec"
- condition=".[(not(/root/selectionSpec/item[@name='selectionTitle']) or not(/root/selectionSpec/item[@name='selectionIntro']))]"
- path="portal/select/src/messages.xslt"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- </xts:block>
- <!-- Build a selectionSpec node from scratch or update it on a return trip either from a navigation operation or a page refresh. ================ -->
- <xts:block
- id="buildSpec"
- processor="XSLT"
- type="exec"
- dependency="handleCallerEnv unpackSelectionSpec messages"
- mandatory="false">
- <!-- <xts:queryNode select="/root/http | /root/session | /root/env | /root/CMRootMap | /root/system | /root/message"/> -->
- <!-- <xts:queryNode select="/root/http | /root/session | /root/env | /root/CMRootMap | /root/system | /root/selectionSpec"/> -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xts xtsext pf bus cm">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="root">
- <xts:sequence>
- <xsl:choose>
- <xsl:when test="not(/root/selectionSpec)">
- <xts:append select="/root">
- <xts:transform processor="XSLT" src="portal/select/transforms/buildSpec.xslt" mimeType="text/xml">
- <xts:param name="logicsheet">logicsheets/portal.xsl</xts:param>
- <xts:param name="logicsheet">logicsheets/presentation/main/framework.xsl</xts:param>
- <xts:param name="messageBase">messages/portal.xml</xts:param>
- <xts:param name="messageBase">messages/portalRL.xml</xts:param>
- <root>
- <xts:queryNode select="/root/http | /root/session | /root/env | /root/system | /root/selectionSpecMessages | /root/searchSpecMessages"/>
- <xts:request protocol="FILEREAD" cache="true" target="/portal/select/res/specGuide.xml"/>
- </root>
- </xts:transform>
- </xts:append>
- <xts:delete select="/root/selectionSpecMessages"/>
- <xts:delete select="/root/searchSpecMessages"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:replace select="/root/selectionSpec">
- <xts:transform processor="XSLT" src="portal/select/transforms/buildSpec.xslt" mimeType="text/xml">
- <xts:param name="logicsheet">logicsheets/portal.xsl</xts:param>
- <xts:param name="logicsheet">logicsheets/presentation/main/framework.xsl</xts:param>
- <xts:param name="messageBase">messages/portal.xml</xts:param>
- <xts:param name="messageBase">messages/portalRL.xml</xts:param>
- <root>
- <xts:queryNode select="/root/http | /root/session | /root/env | /root/system | /root/selectionSpec"/>
- </root>
- </xts:transform>
- </xts:replace>
- </xsl:otherwise>
- </xsl:choose>
- <xts:delete select="/root/CMRootMap"/>
- <xts:delete select="/root/env/param[starts-with(@name,'so.condition_')]"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Retrieve the objects based on the selectionPath item in the selectionSpec. ================ -->
- <!-- dependency="getRootNames getRootMap buildSpec" -->
- <xts:block
- id="getContent"
- processor="XSLT"
- type="exec"
- condition=".[/root/selectionSpec/item[@name='navigationId']]"
- dependency="buildSpec setSearchExpression"
- path="portal/select/src/getContent.xslt"
- mandatory="false">
- <xts:logicsheet path="portal/mru/logicsheets/mru.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <xts:block
- id="setPackageEnv"
- processor="XSLT"
- type="exec"
- dependency="getContent"
- condition=".[not(/root/env/param[@name='so.defaultRootId']='')]"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl pf xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <!-- Once navigation is within a package, the defaultObject is set to that package - so use it for creating the new metrics task(s) -->
- <xsl:if test="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='searchPath']=string(/root/env/param[@name='so.defaultObject']) and (not(/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='userInterfaces']) or /root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='userInterfaces']/*='metricStudio')">
- <xts:append select="/root">
- <oneMetricsPackage>
- <xsl:copy-of select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*"/>
- </oneMetricsPackage>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- <pf:serialize-xml/>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="redirect"
- processor="XSLT"
- type="exec"
- mode="output"
- mimeType="text/html"
- dependency="setPackageEnv"
- mandatory="false"
- condition=".[/root/env/param[@name='so.defaultRootId'] and /root/oneMetricsPackage]">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- exclude-result-prefixes="xsl pf dp utml xtsext cp bus cm cml xts">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <pf:variables/>
- <xsl:template match="/">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$product_name">
- <dp:meta>
- <pf:meta/>
- </dp:meta>
- <form name="pform" method="post" action="{$gateway}">
- <input name="m" type="hidden" value="{/root/env/param[@name='so.return.m']}"/>
- <input name="m_path" type="hidden">
- <xsl:attribute name="value">
- <xsl:text/>storeID("<xsl:text/>
- <xsl:choose>
- <xsl:when test="string(key('env-param','so.defaultLocationId'))!=''"><xsl:value-of select="key('env-param','so.defaultLocationId')"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="/root/oneMetricsPackage/*[local-name()='storeID']"/></xsl:otherwise>
- </xsl:choose>
- <xsl:text/>")<xsl:text/>
- </xsl:attribute>
- </input>
- <xsl:for-each select="/root/env/param[@name != 'm' and not(starts-with(@name,'so.')) and @name != 'm_path']">
- <input name="{@name}" type="hidden" value="{.}"/>
- </xsl:for-each>
- <xsl:for-each select="/root/callerEnv/param[@name != 'm' and not(starts-with(@name,'so.')) and @name != 'm_path' and @name!='m_path']">
- <input name="{@name}" type="hidden" value="{.}"/>
- </xsl:for-each>
- <xsl:for-each select="/root/selectionSpec/item[@name='returns']/*">
- <xsl:variable name="cmName" select="substring-after(@name,'so.')"/>
- <xsl:variable name="returnName">
- <xsl:choose>
- <xsl:when test="not(@alias)"><xsl:value-of select="@name"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="@alias"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <input name="{$returnName}" type="hidden">
- <xsl:choose>
- <xsl:when test="substring-after(@name,'.')!='storeID'">
- <xsl:attribute name="value"><xsl:value-of select="/root/oneMetricsPackage/*[local-name()=string($cmName)]"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="value"><xsl:text/>storeID("<xsl:text/><xsl:value-of select="/root/oneMetricsPackage/*[local-name()=string($cmName)]"/><xsl:text/>")<xsl:text/></xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- </input>
- </xsl:for-each>
- </form>
- <script language="javascript">document.pform.submit();</script>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Encode the selectionSpec node to use on a return trip either from a navigation operation or a page refresh. ================ -->
- <!-- dependency="getPackageProps redirect buildSpec" -->
- <xts:block
- id="packSelectionSpec"
- processor="XSLT"
- type="exec"
- dependency="buildSpec getContent setPackageEnv redirect"
- condition=".[/root/selectionSpec/item[@name='navigationId'] and not(/root/oneMetricsPackage)]"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xtsext xts xsl pf">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:variable name="passport" select="/root/credential/param[@name='CAM']/*[local-name() ='CAM']/*[local-name() = 'CAMPassport']/*[local-name() = 'id']"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/env">
- <xsl:variable name="spec">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="/root/selectionSpec"/>
- </xsl:call-template>
- </xsl:variable>
- <param name="so.savedSelectionSpec">
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($spec), true()))"/>
- </param>
- </xts:append>
- <xts:append select="/root/env">
- <xsl:variable name="guide">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="/root/specGuide"/>
- </xsl:call-template>
- </xsl:variable>
- <param name="so.savedspecGuide">
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($guide), true()))"/>
- </param>
- </xts:append>
- <xts:append select="/root/env">
- <xsl:variable name="callerEnv">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="/root/callerEnv"/>
- </xsl:call-template>
- </xsl:variable>
- <param name="so.savedCallerEnv">
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($callerEnv), true()))"/>
- </param>
- </xts:append>
- <xts:delete select="/root/specGuide"/>
- </xts:sequence>
- </xsl:template>
- <pf:serialize-xml/>
- </xsl:stylesheet>
- </xts:block>
- <!-- generate search expression (cm or nav) for search mode-->
- <xts:block
- id="setSearchExpression"
- processor="XSLT"
- condition=".[ /root/env/param[@name = 'sosmode'] = 'search' ]"
- type="exec"
- dependency="buildSpec"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <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:cm="http://developer.cognos.com/schemas/xts-cm/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/>
- <xsl:key name="spec-item" match="/root/selectionSpec/item" use="@name"/>
- <xsl:template match="/root">
- <xsl:variable name="path">
- <xsl:text/>storeID("<xsl:value-of select="key('spec-item','navigationId')"/>")<xsl:text/>
- </xsl:variable>
- <xsl:variable name="ns-path" select="/root/env/param[@name='so.namespace']"/>
- <xts:sequence>
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name = 'sfield']) = 'k'">
- <search:gen-search-exp navInterface="true" mode="sos"/>
- </xsl:when>
- <xsl:otherwise>
- <search:gen-search-exp mode="sos"/>
- </xsl:otherwise>
- </xsl:choose>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--Alter the ancestors path when the defaultContent is not the default consumer root '/content' - corresponds ps system.xml tag consumer-root. ================ -->
- <!-- dependency="getRootNames getRootMap buildSpec getContent" -->
- <xts:block
- id="getContent2"
- processor="XSLT"
- type="exec"
- dependency="buildSpec getContent redirect"
- condition=".[/root/selectionSpec/item[@name='navigationId'] and /root/session/param[@name='e_root'] and /root/session/param[@name='e_root'] != '' and /root/session/param[@name='e_root'] != '/content' and starts-with(/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='searchPath'],'/content')]"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl send bus xts xtsext pf">>
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:key name="session-param" match="/root/session/param" use="@name"/>
- <xsl:key name="system-param" match="/root/system/param" use="@name"/>
- <pf:variables/>
- <xsl:template match="root">
- <xts:sequence>
- <xts:replace select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='ancestors']">
- <ancestors xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:for-each select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='ancestors']/*[local-name()='ancestorInfo']">
- <xsl:if test="position()='1' or contains(string(./*[local-name()='searchPath']),string(key('session-param', 'e_root')))">
- <xsl:copy-of select="."/>
- </xsl:if>
- </xsl:for-each>
- </ancestors>
- </xts:replace>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Retrieve the objects based on the selectionPath item in the selectionSpec. ================ -->
- <!-- dependency="getRootNames getRootMap buildSpec getContent getContent2"> -->
- <xts:block
- id="contentLogic"
- processor="XSLT"
- condition=".[/root/selectionSpec/item[@name='navigationId'] and not(/root/oneMetricsPackage)]"
- type="exec"
- dependency="buildSpec getContent getContent2 redirect"
- mandatory="false">
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xtsext pf bus cm pm xts">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="root">
- <xts:sequence>
- <xts:replace select="/root/*[local-name()='queryResponse']">
- <xts:transform processor="XSLT" src="portal/select/transforms/contentLogic.xslt" mimeType="text/xml">
- <xts:param name="logicsheet">logicsheets/portal.xsl</xts:param>
- <xts:param name="logicsheet">logicsheets/permissions.xsl</xts:param>
- <xts:param name="logicsheet">logicsheets/cm-logic.xsl</xts:param>
- <xts:param name="logicsheet">logicsheets/buslogic.xslt</xts:param>
- <xts:param name="logicsheet">portal/mru/logicsheets/mru.xslt</xts:param>
- <xts:param name="messageBase">messages/portal.xml</xts:param>
- <xts:param name="messageBase">messages/portalRL.xml</xts:param>
- <root>
- <xts:queryNode select="/root/http | /root/session | /root/env | /root/system | /root/selectionSpec | root/*[local-name()='queryResponse'] "/>
- </root>
- </xts:transform>
- </xts:replace>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--Render the Select Object page. ================ -->
- <!-- dependency="getRootMap getRootNames getContent getContent2 contentLogic unpackSelectionSpec packSelectionSpec handleCallerEnv buildSpec" -->
- <xts:block
- id="renderSODialogue"
- dependency="getContent getContent2 contentLogic unpackSelectionSpec packSelectionSpec handleCallerEnv buildSpec redirect"
- condition=".[/root/selectionSpec/item[@name='navigationId'] and not(/root/oneMetricsPackage)]"
- mode="output"
- processor="XSLT"
- type="exec"
- mimeType="text/html"
- path="portal/select/src/render.xslt"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/permissions.xsl"/>
- <xts:logicsheet path="portal/select/logicsheets/search.xsl"/>
- <xts:logicsheet path="portal/select/logicsheets/pagers.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/presentation/main/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- </xts:block>
- <xts:block
- id="renderSOError"
- dependency="getContent getContent2 contentLogic unpackSelectionSpec packSelectionSpec handleCallerEnv buildSpec renderSODialogue redirect"
- condition=".[not(/root/selectionSpec/item[@name='navigationId']) and not(/root/oneMetricsPackage)]"
- mode="output"
- processor="XSLT"
- type="exec"
- mimeType="text/html"
- path="portal/select/src/error.xslt"
- mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/permissions.xsl"/>
- <xts:logicsheet path="portal/select/logicsheets/search.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/presentation/main/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <!-- <xts:block id="debug" dependency="getRootMap getRootNames getContent getContent2 unpackSelectionSpec packSelectionSpec handleCallerEnv renderSODialogue" condition=".[ /root/session/param[@name='debug'] = '1' ]" type="exec" mode="output" processor="XSLT" mimeType="text/html">-->
- <xts:block id="debug" dependency="getContent getContent2 unpackSelectionSpec packSelectionSpec handleCallerEnv renderSODialogue renderSOError setPackageEnv redirect" condition=".[ /root/session/param[@name='debug'] = '1' ]" type="exec" mode="output" processor="XSLT" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <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"/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|