123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530 |
- <?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 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">
- <!--
- -->
- <!-- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/> -->
- <!-- 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']) = '']">
- <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"/>
-
- <!-- 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"
- dependency="setSession"
- condition=".[not(/root/env/param[@name='so.handledCallerEnv'])]"
- path="portal/select/src/handleCallerEnv.xslt"
- 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">
- <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>
-
- <!-- Encode the selectionSpec node to use on a return trip either from a navigation operation or a page refresh. ================ -->
- <xts:block
- id="packSelectionSpec"
- processor="XSLT"
- type="exec"
- dependency="buildSpec"
- condition=".[/root/selectionSpec/item[@name='navigationId']]"
- 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>
-
- <!-- 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="buildSession 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>
- <!-- 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="buildSession 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: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: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']"/>
- <xsl:variable name="admin-path">
- <xsl:text/>storeID("<xsl:value-of select="/root/env/param[@name='so.adminId']"/>")<xsl:text/>
- </xsl:variable>
- <xsl:variable name="selectionPermissions">
- <xsl:choose>
- <!-- When in the directory tree apply security filter based on where we are in the tree (unless we're selecting a container) -->
- <xsl:when test="contains(key('spec-item','containerObjects'), 'namespace') and not(contains(key('env-param','so.select'),'.container'))">
- <xsl:choose>
- <!-- when displaying a list of namespaces use the namespace_filter -->
- <xsl:when test="key('spec-item','navigationId')=key('env-param', 'so.directoryId')">
- <xsl:value-of select="/root/system/param[@name='namespace_filter']"/>
- </xsl:when>
- <!-- when inside the Cognos namespace, use the visible filter -->
- <xsl:when test="key('env-param','so.namespace')='CAMID(":")' or ( string( key('env-param','so.cognosNamespaceId') )!='' and (key('env-param','so.namespaceId')=key('env-param','so.cognosNamespaceId') ) or key('spec-item','navigationId')=key('env-param','so.cognosNamespaceId'))">
- <xsl:value-of select="/root/system/param[@name='visible']"/>
- </xsl:when>
- <!-- otherwise (if we're in a 3rd party namespace) do not apply any security filter -->
- </xsl:choose>
- </xsl:when>
- <!-- Otherwise, use the permissions defined in the specGuide -->
- <xsl:otherwise>
- <xsl:value-of select="key('spec-item','selectionPermissions')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <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:when test="contains(key('spec-item','containerObjects'), 'namespace') and not(contains(key('env-param','so.select'),'.container')) and $selectionPermissions=''">
- <search:gen-search-exp mode="sos" nohiddenpredicate="true"/>
- </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"
- condition=".[/root/selectionSpec/item[@name='navigationId'] and /root/selectionSpec/item[@name='consumer-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(/root/selectionSpec/item[@name='consumer-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']]"
- type="exec"
- dependency="buildSpec getContent getContent2"
- 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>
- <xsl:if test="/root/env/param[@name='sosmode'] = 'search'">
- <xsl:variable name="inside3rdPartyNamespace">
- <xsl:variable name="nsObj" select="/root/cm:queryResponse/cm:queryReply/*"/>
- <xsl:variable name="insideCognosNamespace" select="(starts-with($nsObj/cm:searchPath, "CAMID(':") or starts-with($nsObj/cm:searchPath, 'CAMID(":'))"/>
- <xsl:value-of select="($nsObj/cm:objectClass='namespace' or $nsObj/cm:ancestors/cm:ancestorInfo/cm:objectClass='namespace') and not($insideCognosNamespace)"/>
- </xsl:variable>
- <xsl:if test="$inside3rdPartyNamespace = 'true'">
- <xts:delete select="/root/env/param[@name='queryNamespaceSearchDefaultMethodOptionSetting']"/>
- <xts:append select="/root/env">
- <param name="queryNamespaceSearchDefaultMethodOptionSetting">true</param>
- </xts:append>
- </xsl:if>
- </xsl:if>
- <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>
- <!--
- ===============================================================================================
- getObjects - get object class names
- ===============================================================================================
- -->
- <xts:block id="classNames" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml">
- <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
- </xts:block>
- <xts:block
- id="validateParams"
- processor="XSLT"
- condition=".[/root/selectionSpec/item[@name='so.return.domain']]"
- type="exec"
- dependency="buildSpec"
- 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:string="java:java.lang.String"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xtsext xts">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <xsl:template match="root">
- <xts:sequence>
- <xsl:variable name="domain-matches" select="/root/selectionSpec/item[@name = 'so.return.domain' and string:matches(string:new(.), string:new('^[-.@+=()*^%$#!_a-zA-Z0-9]{1,500}$'))]"/>
- <xsl:if test="$domain-matches != ''">
- <xts:append>
- <sosreturndomain><xsl:value-of select="$domain-matches"/></sosreturndomain>
- </xts:append>
- </xsl:if>
- </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="buildSession getContent getContent2 contentLogic unpackSelectionSpec packSelectionSpec handleCallerEnv buildSpec validateParams classNames"
- condition=".[/root/selectionSpec/item[@name='navigationId']]"
- 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"
- condition=".[not(/root/selectionSpec/item[@name='navigationId'])]"
- 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" condition=".[ /root/session/param[@name='debug'] = '1' or /root/env/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>
|