123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2013
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" includeConfig="true">
- <!-- Navigation control -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
- <!--
- ================================================================================
- Content request to get basic preferences
- ================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init">
- <xts:logicsheet path="portal/preferences/common/request/request.xslt"/>
- <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: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/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/root">
- <rdr:Requests>
- <rdr:Request type="preferences" mode="preferences">
- <rdr:searchPath>~</rdr:searchPath>
- </rdr:Request>
- <rdr:Request type="skins" mode="preferences">
- <rdr:searchPath>/portal/*[@objectClass='portalSkinFolder']/*[@objectClass='portalSkin' and permission('execute')]</rdr:searchPath>
- </rdr:Request>
- </rdr:Requests>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="resolveSkinPath" processor="XSLT" type="exec" dependency="getContent">
- <xts:logicsheet path="portal/preferences/common/request/request.xslt"/>
- <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: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/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/root">
- <xsl:variable name="the-object" select="/root/cm:queryResponse/cm:queryReply[1]/cm:account"/>
- <xsl:if test="string($the-object/options/value/item[name = 'skin']/value) != ''">
- <rdr:resolveSkinPath>
- <rdr:searchPath><xsl:value-of select="$the-object/options/value/item[name = 'skin']/value"/></rdr:searchPath>
- </rdr:resolveSkinPath>
- </xsl:if>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!-- Response -->
- <xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="formlogic_init getContent resolveSkinPath" >
- <xts:logicsheet path="portal/preferences/common/response/preferences.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.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/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:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:out="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:x="x"
- xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb"
- exclude-result-prefixes="rdb xsl out cm lyt pf df dp dt cp dc cf utml x xts xtsext">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- morphlet -->
- <xsl:variable name="mname" select="'preferences/general.xts'"/>
-
- <!-- Global vars -->
- <xsl:variable name="the-object" select="/root/cm:queryResponse/cm:queryReply[1]/cm:account"/>
- <xsl:variable name="skin-objects" select="/root/cm:queryResponse/cm:queryReply[2]"/>
- <xsl:variable name="resolved-skin-object" select="/root/resolvedSkinPath/cm:queryResponse[1]"/>
- <xsl:variable name="XLSenabled" select="xtsext:cafaction('get_configsignedreporturls','')!='true'"/>
- <xsl:variable name="isNamedAccountReadOnly" select="(not(contains($the-object/cm:permissions,'write')) and ($is-named='1'))"/>
-
- <pf:modalVariables/>
-
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_PREFERENCES"/>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/>
- </dp:meta>
- <dp:script>
- <pf:help context="HID_PERSONALIZE"/>
- </dp:script>
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:read-only><xsl:value-of select="$isNamedAccountReadOnly"/></utml:read-only>
- <dp:header div="div">
- <dp:title><xsl:value-of select="$browserTitle"/></dp:title>
- </dp:header>
- <!-- Tab control -->
- <df:personalizeTabs select="general"/>
-
- <!-- Intro text -->
- <dp:description dp:kbA11y="true" aria-labelledby="genIntro">
- <xts:string id="IDS_PERS_TAB_GENERAL_INTRO"/>
- </dp:description>
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px;" id="genIntro"><xts:string id="IDS_PREFERENCES"/> <xts:string id="IDS_PERS_TAB_GENERAL_INTRO"/></span>
-
- <utml:input type="hidden" name="ifrmcmd" value="save" utml:update="false"/>
- <utml:input type="hidden" name="m_return" value="" utml:update="false"/>
-
- <!-- Render the body of this tab -->
- <rdb:preferences mode="preferences"/>
-
- <!-- Footer -->
- <dp:footer div="div">
- <xsl:if test="$isNamedAccountReadOnly != 'true'">
- <df:button df:id="IDS_OK" utml:validate="true" df:style="submit"/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$isModal">
- <df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:processModalCommand('cancel')"/>
- </xsl:when>
- <xsl:otherwise>
- <df:button df:id="IDS_CANCEL" df:style="back-url"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:footer>
-
- </utml:form>
- </dp:page>
- </xsl:template>
-
- <!-- Generic templates -->
- <pf:variables/>
- <pf:gen-icon/>
- </xsl:stylesheet>
- </xts:block>
-
-
- <!-- debug -->
- <xts:block id="debug" dependency="format" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
- <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>
|