123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2014, 2015
- 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" requiredCapability="canUseMyDataSets">
- <!--
- ===============================================================================================
- If external backURLs are not allowed then verify the backURL is in the crn domain and replace it if it isn't
- ===============================================================================================
- -->
- <xts:block id="secureBackURL" path="portal/secureBackURL.xml" processor="XSLT" type="exec" condition=".[/root/system/param[@name = 'allowExternalURLs'] = 'false']" mandatory="false"/>
- <!-- ======================================================== -->
- <!-- 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 impersonateTenant secureBackURL" 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"/>
-
- <xts:block id="impersonateTenant" path="/portal/tenants/impersonateTenant.xsl" processor="XSLT" type="exec" mode="interpret" condition=".[/root/env/param[@name='impersonateTenantCmd']!='']" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
-
- <!-- 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 getContent"
- condition=".[/root/updateSession]"
- mandatory="false"/>
- <!--
- =============================================
- Request properties of the current container
- =============================================
- -->
- <xts:block id="getPath" processor="XSLT" type="exec" dependency="buildSession">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <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:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
- <cml:object-predicates/>
- <xsl:template match="root">
- <xsl:variable name="m_path" select="/root/env/param[@name='m_path']"/>
- <xsl:variable name="path">
- <xsl:choose>
- <xsl:when test="not($m_path='/content')">
- <xsl:value-of select="$m_path"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'~/dataSetFolder'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:if test="$path != ''">
- <xts:sequence>
- <xts:append>
- <path>
- <!-- Request properties of the current container. -->
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search>
- <xsl:value-of select="$path"/><xsl:value-of select="$hidden-objects-predicate"/>
- </cm:search>
- <cm:properties>
- <cm:property name="objectClass"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="searchPath"/>
- <cm:property name="storeID"/>
- <cm:property name="credentialNamespaces"/>
- <cm:property name="hidden"/>
- <cm:property name="userInterfaces"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </path>
- </xts:append>
- </xts:sequence>
- </xsl:if>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ======================================
- Generate the search expression
- ======================================
- -->
- <xts:block id="generateSearchExp" processor="XSLT" type="exec" dependency="getPath" condition=".[/root/env/param[@name='search']]" mandatory="false">
- <xts:logicsheet path="logicsheets/searchlogic.xslt"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- 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:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:search="http://developer.cognos.com/schemas/xts/logicsheets/xslt/searchlogic/" exclude-result-prefixes="xsl xts xtsext pf cml search">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
- <cml:object-predicates/>
- <xsl:template match="/root">
- <xsl:variable name="path">
- <xsl:choose>
- <xsl:when test=" /root/env/param[@name='m_path'] != '' ">
- <xsl:value-of select="/root/env/param[@name='m_path']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/session/param[@name='e_hp']"/><xsl:text>/dataSetFolder</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:if test="/root/env/param[@name='m_path']=''">
- <xts:sequence>
- <xts:replace select="/root/env/param[@name='m_path']">
- <!--param name="m_path">/content</param-->
- <param name="m_path">~/dataSetFolder</param>
- </xts:replace>
- </xts:sequence>
- </xsl:if>
- <xts:sequence>
- <search:gen-search-exp>
- <search:defaultTypes>
- <search:defaultType>dataSetFolder</search:defaultType>
- <search:defaultType>dataSet</search:defaultType>
- </search:defaultTypes>
- </search:gen-search-exp>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- =============================================
- Request properties of the dataSet
- =============================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="generateSearchExp" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" exclude-result-prefixes="xsl xts xtsext cm cml send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
- <cml:object-predicates/>
- <xsl:template match="root">
- <xsl:variable name="userPrefs" select="/root/session/param"/>
- <xsl:variable name="userPrefsDefault" select="/root/system/param[@name='defaultPortalPreferences']"/>
- <xsl:variable name="dataSetPath">
- <xsl:choose>
- <xsl:when test=" /root/env/param[@name='m_path'] != '' ">
- <xsl:value-of select="/root/env/param[@name='m_path']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/session/param[@name='e_hp']"/><xsl:text>/dataSetFolder</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="maxObjects">
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name = 'm_pagerto']) !='' and string(/root/env/param[@name = 'm_pagerfrom']) !=''">
- <xsl:value-of select="(/root/env/param[@name = 'm_pagerto'] - /root/env/param[@name = 'm_pagerfrom']) + 1"/>
- </xsl:when>
- <xsl:when test="$userPrefs[@name='linesPerPage']!=''">
- <xsl:value-of select="$userPrefs[@name='linesPerPage']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$userPrefsDefault/pref[@name='lines']"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="skipObjects">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 'm_pagerfrom'] and /root/env/param[@name = 'm_pagerfrom']!=''">
- <xsl:value-of select="(/root/env/param[@name = 'm_pagerfrom'])-1"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name='m_section']!=''">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_section']!='-1'">
- <xsl:value-of select="((/root/env/param[@name='m_section']) -1)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="($maxObjects) * -1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="m_sort" select="/root/session/param[@name='s_ct']"/>
- <xsl:variable name="parentPath">
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name='m_path'])!=''">
- <xsl:value-of select="/root/env/param[@name='m_path']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/session/param[@name='e_hp']"/><xsl:text>/dataSetFolder</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="path">
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name='m_path'])!='' and /root/env/param[@name='m_path'] != '~'">
- <xsl:value-of select="/root/env/param[@name='m_path']"/><xsl:text>/*[@objectClass='dataSetFolder' or @objectClass='dataSet']</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/session/param[@name='e_hp']"/><xsl:text>/dataSetFolder/*[@objectClass='dataSetFolder' or @objectClass='dataSet']</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <!-- Append permission restrictions -->
- <!--xsl:value-of select="'[permission("read")]'"/-->
- </xsl:variable>
- <xsl:variable name="myDataSetsPath">
- <!--xsl:value-of select="/root/session/param[@name='e_mrootpath']"/-->
- <xsl:value-of select="/root/session/param[@name='e_hp']"/><xsl:text>/dataSetFolder/*</xsl:text>
- </xsl:variable>
- <xsl:variable name="atRoot">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_pathRoot']">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xts:sequence>
- <xts:append>
- <content>
- <!-- Request properties of the datasets. -->
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:requests>
- <cm:query>
- <cm:search><xsl:value-of select="$parentPath"/><xsl:value-of select="$visibility-predicate"/></cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="permissions"/>
- <cm:property name="ancestors"/>
- <cm:property name="searchPath"/>
- <cm:property name="storeID"/>
- <cm:property name="hidden"/>
- <cm:property name="disabled"/>
- </cm:properties>
- </cm:query>
- <xsl:if test="/root/search/expression or not(/root/search)">
- <cm:query>
- <cm:search>
- <xsl:choose>
- <xsl:when test="/root/search/expression">
- <xsl:value-of select="/root/search/expression"/><xsl:value-of select="$visibility-predicate"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$path"/><xsl:value-of select="$visibility-predicate"/>
- </xsl:otherwise>
- </xsl:choose>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="hasChildren"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="searchPath"/>
- <cm:property name="storeID"/>
- <cm:property name="modificationTime"/>
- <cm:property name="dataSetSize"/>
- <cm:property name="dataModificationTime"/>
- <cm:property name="disabled"/>
- <cm:property name="userInterfaces"/>
- <cm:property name="displaySequence"/>
- <cm:property name="position"/>
- <cm:property name="defaultScreenTip"/>
- <cm:property name="target"/>
- <!-- We need this property to get the target information for Abacab Targets -->
- <cm:property name="deploymentReferences"/>
- <cm:property name="iconURI"/>
- <cm:property name="usage"/>
- <cm:property name="hidden"/>
- <cm:property name="packageBase"/>
- <cm:property name="specification"/>
- </cm:properties>
- <cm:options schemaInfo="true">
- <cm:maxObjects><xsl:value-of select="$maxObjects + 1"/></cm:maxObjects>
- <cm:skipObjects><xsl:value-of select="$skipObjects"/></cm:skipObjects>
- <cm:refProps>
- <!-- Get target info for shortcut objects -->
- <cm:refProp refPropName="packageBase">
- <cm:properties>
- <cm:property name="ancestors"/>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- <cm:property name="storeID"/>
- <cm:property name="permissions"/>
- <cm:property name="hidden"/>
- <cm:property name="disabled"/>
- <cm:property name="permissions"/>
- </cm:properties>
- </cm:refProp>
- </cm:refProps>
- </cm:options>
- <cm:sortBy>
- <xsl:if test="/root/session/param[@name='eom'] != '2'">
- <xsl:choose>
- <xsl:when test="/root/session/param[@name='eom'] = '0'">
- <cm:sort name="usage" order="ascending"/>
- </xsl:when>
- <xsl:otherwise>
- <cm:sort name="usage" order="descending"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$m_sort = 'da'">
- <cm:sort name="modificationTime" order="ascending"/>
- </xsl:when>
- <xsl:when test="$m_sort = 'dd'">
- <cm:sort name="modificationTime" order="descending"/>
- </xsl:when>
- <xsl:when test="$m_sort = 'nd'">
- <cm:sort name="defaultName" order="descending"/>
- </xsl:when>
- <xsl:when test="$m_sort = 'na'">
- <cm:sort name="defaultName" order="ascending"/>
- </xsl:when>
- <xsl:when test="$m_sort = 'md'">
- <cm:sort name="dataModificationTime" order="descending"/>
- </xsl:when>
- <xsl:when test="$m_sort = 'ma'">
- <cm:sort name="dataModificationTime" order="ascending"/>
- </xsl:when>
- <xsl:when test="$m_sort = 'sd'">
- <cm:sort name="dataSetSize" order="descending"/>
- </xsl:when>
- <xsl:when test="$m_sort = 'sa'">
- <cm:sort name="dataSetSize" order="ascending"/>
- </xsl:when>
- <xsl:otherwise>
- <cm:sort name="displaySequence" order="ascending"/>
- </xsl:otherwise>
- </xsl:choose>
- </cm:sortBy>
- </cm:query>
- </xsl:if>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </content>
- </xts:append>
-
- <xts:delete select="/root/env/param[@name='pagerfrom' or @name='pagerto' or @name='pagerfrom_d' or @name='pagerto_d']"/>
- <xsl:variable name="stateEnvParams">
- <xsl:choose>
- <xsl:when test="/root/search">m_path</xsl:when>
- <xsl:otherwise>m_path m_section m_pagerfrom m_pagerto</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xts:delete select="root/env/param[@name='m_stateEnvParams']"/>
- <xts:append select="/root/env">
- <param name="m_stateEnvParams"><xsl:value-of select="$stateEnvParams"/></param>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ============================================================================
- Block: mergeTenantNames
- Purpose: merge the tenant names into the response
- output: replaces tenantID with defaultName from applicable tenant object
- =============================================================================
- -->
- <xts:block processor="XSLT" type="exec" mandatory="false"
- path="/portal/tenancy/mergeTenantNames.xslt"
- id="mergeTenantNames"
- dependency="getContent"
- condition=".[/root/session/param[@name='e_showTenantInfo']='true']">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
-
- <!--
- ===============================================================================================
- head - This block generates the HTML <head> tag.
- ===============================================================================================
- -->
- <xts:block id="head" type="exec" mode="output" processor="XSLT" dependency="getContent" mimeType="text/html" contentId="head" partId="1" xmlns:tool="http://developer.cognos.com/schemas/xts/logicsheets/xslt/toollogic/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" 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: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/">
- <xts:logicsheet path="logicsheets/toollogic2.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/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:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="cm tool pf mt mf cf cp xsl xts xtsext">
- <xsl:output method="html" encoding="utf-8" indent="no"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'myDatasets/myDatasets.xts'"/>
- <tool:variables formName="frmEntryAdmin" useEnvParams="/root/env/param[@name='m_stateEnvParams']"/>
- <xsl:template match="/">
- <tool:head title="IDS_MYDS_MYDATASETS" helpid="HID_DRILL_THROUGH_ACTIONS"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- banner - This block generates the portal banner at the top of the tool.
- ===============================================================================================
- -->
- <xts:block id="banner" type="exec" mode="output" processor="XSLT" dependency="getContent mergeTenantNames" mimeType="text/html" contentId="banner" partId="1"
- xmlns:tool="http://developer.cognos.com/schemas/xts/logicsheets/xslt/toollogic/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- 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:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/">
- <xts:logicsheet path="logicsheets/toollogic2.xslt"/>
- <!-- Cognos Central main behaviour logic -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <!-- Cognos Central controls logic -->
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/formlogic_lite.xslt"/>
- <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:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="tool pf mf mt cf cp dp cm xtsext xts">
- <xsl:output method="html" encoding="utf-8" indent="no"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'myDatasets/myDatasets.xts'"/>
- <tool:variables formName="frmEntryAdmin" useEnvParams="/root/env/param[@name='m_stateEnvParams']" type="drillthru"/>
- <xsl:variable name="rootPath" select="count(/root/path/cm:queryResponse/*/cm:ancestors/cm:ancestorInfo)=0"/>
- <xsl:variable name="startPathTitle"><xts:string id="IDS_MYDS_MYDATASETS"/></xsl:variable>
- <xsl:variable name="atRoot">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_pathRoot']">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="start-at-path">
- <!-- xsl:if test="starts-with(/root/path/cm:queryResponse/*/cm:searchPath, 'CAMID')"-->
- <xsl:variable name="sq"><xsl:text>'</xsl:text></xsl:variable>
- <xsl:value-of select="concat(/root/session/param[@name='e_hp'],'/dataSetFolder')"/>
-
- <!--/xsl:if-->
- <!-- xsl:text>CAMID("::Anonymous")/dataSetFolder</xsl:text-->
- </xsl:variable>
-
- <cp:flyoutControl/>
-
- <xsl:template match="/">
- <tool:banner title="IDS_MYDS_MYDATASETS" mode="mydatasets" jumpToMain="true" id="headerBackA11Y">
-
- <tool:path>
- <div role="navigation" lang="{$contentLocale}">
-
- <xsl:choose>
- <xsl:when test="/root/search">
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="key('env-param','m')"/><xsl:if test="key('env-param', 'backURL')"><xsl:value-of select="concat('&backURL=', xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata'))"/></xsl:if>&m_pathRoot123<xsl:text/>
- </xsl:attribute>
- <xsl:text/><xsl:value-of select="$startPathTitle"/><xsl:text/>
- </a>
- <xsl:text/><span class="pathSeparator"> > </span><xsl:text/>
- <xsl:text/><xts:string id="IDS_SEARCH"/><xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <!-- breadcrumb -->
- <cf:do-the-path-link>
-
-
- <cf:param name="familytree">/root/content/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='ancestors']</cf:param>
- <cf:param name="familymember">/root/content/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='defaultName']</cf:param>
- <cf:param name="isRootPath"><xsl:value-of select="$rootPath"/></cf:param>
- <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
- <cf:param name="home-title">
- <xsl:if test="$atRoot='true'"><xsl:value-of select="$startPathTitle"/></xsl:if>
- </cf:param>
- <cf:param name="anchorpath">
- <xsl:choose>
- <xsl:when test="$home-title!='' and (string(position())=$start-position or position() = 1)">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="concat($gateway, '?b_action=xts.run')"/><xsl:value-of select="concat('&m=', key('env-param', 'm'))"/><xsl:value-of select="concat('&m_path=', xtsext:protect(xtsext:urlencode(string(cm:searchPath)),'url','searchPath','getdata'))"/><xsl:if test="key('env-param', 'backURL')"><xsl:value-of select="concat('&backURL=', xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata'))"/></xsl:if></xsl:attribute>
- <xsl:if test="$isBidiEnabled = 'true'">
- <xsl:attribute name="dir">
- <xsl:value-of select="xtsext:getBTD($home-title, $baseTextDirection, $productLocale)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:text/><xsl:value-of select="$home-title"/><xsl:text/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="concat($gateway, '?b_action=xts.run')"/><xsl:value-of select="concat('&m=', key('env-param', 'm'))"/><xsl:value-of select="concat('&m_path=', xtsext:protect(xtsext:urlencode(string(cm:searchPath)),'url','searchPath','getdata'))"/><xsl:if test="key('env-param', 'backURL')"><xsl:value-of select="concat('&backURL=', xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata'))"/></xsl:if></xsl:attribute>
- <xsl:if test="$isBidiEnabled = 'true'">
- <xsl:attribute name="dir">
- <xsl:value-of select="xtsext:getBTD(cm:title, $baseTextDirection, $productLocale)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:text/><xsl:value-of select="cm:title"/><xsl:text/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </cf:param>
- </cf:do-the-path-link>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </tool:path>
-
- <tool:actions>
- <mt:toolbar>
- <mt:tool-group hideDivider="true">
-
- <mt:tool-group hideDivider="true">
- <mt:tool name="importPersonalData"/>
- </mt:tool-group>
- <mt:tool name="deleteDataset"/>
- <!-- xsl:if test="$atRoot!='true' and not(/root/search)">
- <mt:tool name="search"/>
- </xsl:if>
- <xsl:if test="$atRoot='true'">
- <mt:tool name="search" disable="true"/>
- </xsl:if-->
- <mt:tool name="search"/>
- </mt:tool-group>
- </mt:toolbar>
- </tool:actions>
- </tool:banner>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block id="classNames" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml" >
- <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
- </xts:block>
-
- <!--
- ===============================================================================================
- body - This block generates the tool contents.
- ===============================================================================================
- -->
- <xts:block id="body" type="exec" mode="output" processor="XSLT" dependency="getContent classNames" mimeType="text/html" contentId="body" partId="1" xmlns:tool="http://developer.cognos.com/schemas/xts/logicsheets/xslt/toollogic/" 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:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt" 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:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/">
- <xts:logicsheet path="logicsheets/toollogic2.xslt"/>
- <!-- Cognos Central main behaviour logic -->
- <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/main/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/search.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <!-- Cognos Central controls logic -->
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/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:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="tool pf pm mf mt cf cp dp cm xtsext xts">
- <xsl:output method="html" encoding="utf-8" indent="no"/>
-
- <!-- current file name -->
- <xsl:variable name="mname" select="'myDatasets/myDatasets.xts'"/>
- <xsl:variable name="user_permissions">
- <xsl:choose>
- <xsl:when test="/root/path/cm:queryResponse/*/*">
- <xsl:value-of select="/root/path/cm:queryResponse/*/cm:permissions"/>
- </xsl:when>
- <xsl:otherwise>na</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="userCanNotTraverse" select="not(contains($user_permissions, 'traverse')) and not(contains($user_permissions, 'na'))"/>
-
- <tool:variables formName="frmEntryAdmin" useEnvParams="/root/env/param[@name='m_stateEnvParams']"/>
- <cp:flyoutControl/>
- <xsl:template match="/">
- <xsl:variable name="showTenantInfo" select="/root/session/param[@name='e_showTenantInfo']='true'"/>
- <xsl:if test="/root/search">
- <xsl:variable name="isPanelMain" select="not($userCanNotTraverse) and not(/root/search/emptySearchExpression) and not(/root/env/param[@name='m_pathRoot']) and not(/root/search/expression or not(root/search))"/>
- <xsl:choose>
- <xsl:when test="$isPanelMain">
- <div role="main" tabindex="-1">
- <xsl:call-template name="search-panel"/>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="search-panel"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- Insert search control panel -->
- </xsl:if>
- <tool:content formName="frmEntryAdmin" nomode="true">
- <xsl:choose>
- <xsl:when test="$userCanNotTraverse">
- <div tabindex="-1">
- <mt:objectNoneFound id="IDS_NO_TRAVERSE_CONTAINER"/>
- </div>
- </xsl:when>
- <xsl:when test="/root/search/emptySearchExpression">
- <div tabindex="-1">
- <mt:objectNoneFound id="IDS_EMPTY_QUERY"/>
- </div>
- </xsl:when>
- <xsl:when test="/root/search/expression or not(root/search)">
- <input type="hidden" name="includePackages"/>
- <cf:main-pager-section virtualPage="true" width="100%" role="main">
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="item-path">root/content/cm:queryResponse/cm:queryReply[2]/*</cf:param>
- <cf:param name="lines-per-page">
- <xsl:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="rows">
- <cp:tableHeader session-name="s_ct">
- <cp:columnHeader toggleName="checkbox_" form="pfrmEntryAdmin" noLabel="true" id="checkbox_0"/>
- <cp:columnHeader width="20px"/>
- <xsl:variable name="sizing">100</xsl:variable>
- <cp:columnHeader sort="n" width="{$sizing}%" id="columnHeaderName">
- <cp:sortHref>
- <xsl:value-of select="$back-url"/><xsl:value-of select="concat('&m_path=', xtsext:protect(xtsext:urlencode(string(/root/env/param[@name='m_path'])),'url','searchPath','getdata'))"/>&m_s_ct=<xsl:choose>
- <xsl:when test="key('session-param', 's_ct') = 'na' ">nd</xsl:when>
- <xsl:when test="key('session-param', 's_ct') = 'nd' "/>
- <xsl:otherwise>na</xsl:otherwise>
- </xsl:choose>
- </cp:sortHref>
- <xsl:if test="/root/search">
- <img height="5" width="1" border="0"><xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute></img>
- <xsl:text/><xts:string id="IDS_PATH_INDICATOR"/><xsl:text> </xsl:text>
- <img height="5" width="1" border="0"><xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute></img>
- </xsl:if>
- <xts:string id="IDS_NAME"/>
- </cp:columnHeader>
- <cp:columnHeader width="200px" id="columnHeaderPackage">
- <xts:string id="IDS_MYDS_HEADING_PACKAGE"/>
- </cp:columnHeader>
- <cp:columnHeader sort="m" width="200px" id="columnHeaderRefreshed">
- <cp:sortHref>
- <xsl:value-of select="$back-url"/><xsl:value-of select="concat('&m_path=', xtsext:protect(xtsext:urlencode(string(/root/env/param[@name='m_path'])),'url','searchPath','getdata'))"/>&m_s_ct=<xsl:choose>
- <xsl:when test="key('session-param', 's_ct') = 'ma' ">md</xsl:when>
- <xsl:when test="key('session-param', 's_ct') = 'md' "/>
- <xsl:otherwise>ma</xsl:otherwise>
- </xsl:choose>
- </cp:sortHref>
- <xts:string id="IDS_MYDS_HEADING_REFRESHED"/>
- </cp:columnHeader>
- <cp:columnHeader sort="s" width="100px" id="columnHeaderSize">
- <cp:sortHref>
- <xsl:value-of select="$back-url"/><xsl:value-of select="concat('&m_path=', xtsext:protect(xtsext:urlencode(string(/root/env/param[@name='m_path'])),'url','searchPath','getdata'))"/>&m_s_ct=<xsl:choose>
- <xsl:when test="key('session-param', 's_ct') = 'sa' ">sd</xsl:when>
- <xsl:when test="key('session-param', 's_ct') = 'sd' "/>
- <xsl:otherwise>sa</xsl:otherwise>
- </xsl:choose>
- </cp:sortHref>
- <xts:string id="IDS_MYDS_HEADING_SIZE"/>
- </cp:columnHeader>
- <cp:columnHeader id="columnHeaderRowCount">
- <xts:string id="IDS_MYDS_HEADING_ROW_COUNT"/>
- </cp:columnHeader>
- <cp:columnHeader sort="d" width="200px" id="columnHeaderModified">
- <cp:sortHref>
- <xsl:value-of select="$back-url"/>&m_s_ct=<xsl:choose>
- <xsl:when test="key('session-param', 's_ct') = 'da' ">dd</xsl:when>
- <xsl:when test="key('session-param', 's_ct') = 'dd' "/>
- <xsl:otherwise>da</xsl:otherwise>
- </xsl:choose>
- </cp:sortHref>
- <xts:string id="IDS_MODIFIED"/>
- </cp:columnHeader>
- <cp:columnHeader width="100">
- <xsl:if test="@valign and @valign!=''">
- <xsl:attribute name="valign">
- <xsl:value-of select="@valign"/>
- </xsl:attribute>
- </xsl:if>
- <cp:columnCondition><xsl:value-of select="$showTenantInfo"/></cp:columnCondition>
- <xts:string id="IDS_OBJ_TENANT"/>
- </cp:columnHeader>
- <cp:columnHeader width="170px">
- <xts:string id="IDS_HEADING_ACTIONS"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:common-render-variables>
- <!-- Common variables used in rendering icons, actions .. etc. -->
- <pm:permissions/>
- <mf:common-entry-varaibles/>
- </cp:common-render-variables>
- <cp:columnContent>
- <xsl:variable name="checkboxLabel"><xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><xsl:value-of select="cm:defaultName"/></xts:param></xts:string></xsl:variable>
- <input type="checkbox" value="{xtsext:urlencode(string(cm:storeID))}" name="checkbox_{position()}" id="checkbox_{position()}" aria-label="{$checkboxLabel}"/>
- </cp:columnContent>
- <cp:columnContent>
- <xsl:call-template name="gen-icon">
- <xsl:with-param name="class" select="$class"/>
- <xsl:with-param name="userInterfaces" select="$userInterfaces"/>
- <xsl:with-param name="hiddenObject" select="cm:hidden"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </cp:columnContent>
- <cp:columnContent width="50%" scope="row">
- <xsl:if test="/root/search">
- <img width="20" height="16" align="absmiddle" src="{$skin_images}path.gif">
- <xsl:attribute name="alt">
- <cf:do-the-path-link>
- <cf:param name="familytree">cm:ancestors</cf:param>
- <cf:param name="familymember">cm:defaultName</cf:param>
- </cf:do-the-path-link>
- </xsl:attribute>
- </img><xsl:text> </xsl:text>
- </xsl:if>
- <!-- Logic to figure out if an entry is to be hyperlinked and if it is what the URL should be -->
- <xsl:choose>
- <xsl:when test="cm:hasChildren='true'">
- <mf:entry-name/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="xtsext:enforceBTD(string(cm:defaultName), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- <!-- Render the disabled icon if this entry is disabled -->
- <xsl:choose>
- <xsl:when test="cm:disabled = 'true'">
- <img height="16" width="16" hspace="4" align="absmiddle" src="{$image_root}state_disabled.gif">
- <xsl:attribute name="alt"><xts:string id="IDS_DISABLED"/></xsl:attribute>
- </img>
- </xsl:when>
- <xsl:when test="cm:target/*/cm:disabled = 'true' or cm:base/*/cm:disabled = 'true'">
- <img height="16" width="16" hspace="4" align="absmiddle" src="{$image_root}state_source_disabled.gif">
- <xsl:attribute name="alt"><xts:string id="IDS_DISABLED"/></xsl:attribute>
- </img>
- </xsl:when>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>  </xsl:text>
- </cp:columnContent>
-
- <cp:columnContent width="200px">
- <xsl:if test="string(cm:objectClass)='dataSet'">
- <nobr>
- <xsl:variable name="packageName" select="cm:packageBase/cm:package/cm:defaultName"/>
- <xsl:variable name="canTraverseTargetPackage" select="contains(cm:packageBase/cm:package/cm:permissions, 'traverse')"/>
- <xsl:choose>
- <xsl:when test="$packageName != '' and $canTraverseTargetPackage">
- <a href="{$gateway}?b_action=xts.run&m={$app}/cc.xts&m_folder={cm:packageBase/cm:package/cm:storeID}">
- <xsl:value-of select="$packageName"/>
- </a>
- </xsl:when>
- <xsl:when test="$packageName != '' and not($canTraverseTargetPackage)">
- <xsl:value-of select="$packageName"/>
- </xsl:when>
- <xsl:otherwise><xts:string id="IDS_MYDS_PACKAGE_UNAVAILABLE"/></xsl:otherwise>
- </xsl:choose>
-
- </nobr>
- </xsl:if>
- </cp:columnContent>
- <cp:columnContent width="200px">
- <xsl:if test="string(cm:objectClass)='dataSet'">
- <nobr>
- <!-- this will give us the time formatted with the java long(2) date and medium(3) time using the locale date and time patterns provided by java -->
- <xsl:variable name="modifTime">
- <xsl:value-of select="xtsext:formatDateFromUTC( string( cm:dataModificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </xsl:variable>
- <xsl:value-of select="xtsext:enforceBTD($modifTime, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
- </nobr>
- </xsl:if>
- </cp:columnContent>
-
- <cp:columnContent width="100px">
- <xsl:if test="string(cm:objectClass)='dataSet'">
- <nobr>
- <!-- this will give us the time formatted with the java long(2) date and medium(3) time using the locale date and time patterns provided by java -->
- <xsl:variable name="dataSetSize">
- <xsl:variable name="dataSize" select="round((number(cm:dataSetSize) div 1024)+.499)"/>
- <xsl:value-of select="xtsext:formatNumber(string($dataSize),string('#,##0'),string($contentLocale), number(1))"/>
- </xsl:variable>
- <xsl:value-of select="xtsext:enforceBTD($dataSetSize, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
- </nobr>
- </xsl:if>
- </cp:columnContent>
-
- <cp:columnContent>
- <xsl:if test="string(cm:objectClass)='dataSet'">
- <nobr>
- <xsl:variable name="rowCount">
- <xsl:variable name="rawCount" select="number(cm:specification/cm:pdSpec/cm:dataSet/cm:rowCount)"/>
- <xsl:value-of select="xtsext:formatNumber(string($rawCount),string($contentLocale), number(2))"/>
- </xsl:variable>
- <xsl:value-of select="xtsext:enforceBTD($rowCount, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
- </nobr>
- </xsl:if>
- </cp:columnContent>
- <cp:columnContent width="200px">
- <nobr>
- <!-- this will give us the time formatted with the java long(2) date and medium(3) time using the locale date and time patterns provided by java -->
- <xsl:variable name="modifTime">
- <xsl:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </xsl:variable>
- <xsl:value-of select="xtsext:enforceBTD($modifTime, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
- </nobr>
- </cp:columnContent>
- <cp:columnContent>
- <cp:columnCondition><xsl:value-of select="$showTenantInfo"/></cp:columnCondition>
- <xsl:value-of select="cm:tenantName"/>
- </cp:columnContent>
- <cp:columnContent width="170px">
- <nobr>
- <xsl:call-template name="action-properties">
- <xsl:with-param name="class" select="$class"/>
- <xsl:with-param name="supportPropertiesAction" select="true()"/>
- <xsl:with-param name="supportEditDataSet" select="true()"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- <xsl:with-param name="dataSetName" select="cm:defaultName"/>
- </xsl:call-template>
- </nobr>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </xsl:when>
- </xsl:choose>
- </tool:content>
- </xsl:template>
- <xsl:template name="search-panel">
- <mt:search type="tools">
- <mt:close-params>
- <param>backURL</param>
- <param>m_path</param>
- </mt:close-params>
- </mt:search>
- </xsl:template>
- <!-- Insert common templates -->
- <mt:actions mode="tools"/>
- <pf:gen-action/>
- <pf:gen-icon/>
- <pf:gen-url/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- render-page - Main page rendering block.
- ===============================================================================================
- -->
- <xts:block id="render-page" type="exec" mode="interpret" processor="XSLT" dependency="head banner body" mimeType="text/html" xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <!-- Cognos Central main behaviour logic -->
- <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xos="http://developer.cognos.com/schemas/xts/output/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt" xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/theme/main/mf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xts="http://developer.cognos.com/schemas/xts/" exclude-result-prefixes="xsl cm pf mt mf bus xts xos SOAP-ENV">
- <xsl:output method="xml" version="1.0" encoding="utf-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/root">
- <xts:sequence>
- <xts:replace select="/root/output/*[local-name() = 'part']">
- <xos:part>
- <xos:entityHeader>
- <xos:param name="Content-Type">text/html; charset=utf-8</xos:param>
- </xos:entityHeader>
- <xos:entityBody>
- <html lang="{$productLocale}">
- <!-- copy in the head content -->
- <xsl:copy-of select="output/xos:part/xos:entityBody/xos:content[@id = 'head']"/>
- <mt:page region="IDS_MYDS_MYDATASETS">
- <!-- copy in the banner -->
- <xsl:copy-of select="output/xos:part/xos:entityBody/xos:content[@id = 'banner']"/>
- <!-- copy in the body -->
- <xsl:copy-of select="output/xos:part/xos:entityBody/xos:content[@id = 'body']"/>
- </mt:page>
- </html>
- </xos:entityBody>
- </xos:part>
- </xts:replace>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- =============================================
- Output debug dump
- =============================================
- -->
- <xts:block id="debug" type="exec" mode="output" processor="XSLT" condition=".[/root/env/param[@name='d'] = '1' or /root/session/param[@name='debug'] = '1']" mandatory="false" mimeType="text/html" dependency="render-page">
- <!-- 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>
|