123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" messageBase="messages/portal.xml, messages/portalRL.xml">
- <!--
- ===============================================================================================
- formlogic_init - standard form logic initialization
- ===============================================================================================
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
-
- <!--
- ===============================================================================================
- Query for the default destination container
- ===============================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init">
- <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:pf="http://developer.cognos.com/schemas/xts/pf"
- 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:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <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 xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:value-of select="key('env-param','m_obj')"/>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="defaultScreenTip"/>
- <cm:property name="defaultDescription"/>
- <cm:property name="searchPath"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="memberDisplayCountDefault"/>
- <cm:property name="memberDisplayCountLimit"/>
- <cm:property name="defaultAnalysis"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- <xsl:if test="string(key('env-param','so.searchPath'))!=''">
- <xts:append>
- <selectedAnalysis>
- <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="key('env-param','so.searchPath')"/></cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- <cm:property name="ancestors"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </selectedAnalysis>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="buildPkgCfgSettings" type="exec" mode="interpret" processor="XSLT" dependency="formlogic_init getContent" path="/portal/packageConfiguration/settings.xml"/>
- <!--
- ===============================================================================================
- renderPage - render the page
- ===============================================================================================
- -->
- <xts:block id="render_page" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="formlogic_init getContent buildPkgCfgSettings">
- <!-- get the presentation theme -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="portal/packageConfiguration/packageConfiguration.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <!-- apply the form logic -->
- <xts:logicsheet path="logicsheets/formlogic.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:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- 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:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- 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:pkgcfg="http://developer.cognos.com/schemas/xts/pkgcfg"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl cm pf df dp lyt utml cf cp xtsext">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'new_packageconfiguration.xts'"/>
- <!-- add any theme variables -->
- <pf:variables/>
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:variable name="wizardTitle">
- <xts:string id="IDS_NEW_PACKAGECONFIGURATION_TITLE"/>
- </xsl:variable>
- <xsl:variable name="browserTitle">
- <xsl:text/>
- <xts:string id="IDS_NEW_SETTINGS_TITLE">
- <xts:param name="wizardTitle">
- <xsl:value-of select="$wizardTitle"/>
- </xts:param>
- </xts:string>
- <xsl:text/>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <!-- Standard meta tags -->
- <pf:meta/>
- </dp:meta>
- <dp:script>
- <script language="javascript">
- <pkgcfg:scripts/>
- function validate()
- {
- document.pform.ifrmcmd.value = "create";
- return validatePkgCfg();
- }
- </script>
- <script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"/>
- <!-- Help system -->
- <pf:help context="HID_NEW_PACKAGE_CONFIG"/>
- <script language="javascript" src="{$webcontent}/{$app}/js/list.js"></script>
- </dp:script>
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:exclusion-list><xsl:value-of select="' memberDisplayCountDefault memberDisplayCountLimit'"/></utml:exclusion-list>
- <utml:input type="hidden" name="ifrmcmd" value="" utml:update="false"/>
- <utml:input type="hidden" name="m_ppc_defaultAnalysis">
- <xsl:choose>
- <xsl:when test="key('env-param','so.searchPath')">
- <xsl:attribute name="value"><xsl:value-of select="key('env-param','so.searchPath')"/></xsl:attribute>
- </xsl:when>
- </xsl:choose>
- </utml:input>
- <utml:input type="hidden" name="m_ppc_defaultName">
- <xsl:attribute name="value">
- <xts:string id="IDS_ACT_PACKAGECONFIGURATION_OF"><xts:param name="curName"><xsl:value-of select="/root/cm:queryResponse/*/cm:defaultName"/></xts:param></xts:string>
- </xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="m_ppc_defaultScreenTip">
- <xsl:attribute name="value"><xsl:value-of select="/root/cm:queryResponse/*/cm:defaultScreenTip"/></xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="m_ppc_defaultDescription">
- <xsl:attribute name="value"><xsl:value-of select="/root/cm:queryResponse/*/cm:defaultDescription"/></xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="so.select" value="analysis" utml:update="false"/>
- <utml:input type="hidden" name="so.return.m" utml:update="false">
- <xsl:attribute name="value"><xsl:value-of select="concat($app,'/',$mname)"/></xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="so.defaultObject" utml:update="false">
- <xsl:attribute name="value">
- <xsl:if test="key('env-param','so.searchPath')"><xsl:value-of select="key('env-param','so.searchPath')"/></xsl:if>
- </xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="so.defaultLocation" utml:update="false">
- <xsl:attribute name="value">
- <xsl:if test="not(key('env-param','so.searchPath'))"><xsl:value-of select="key('env-param','m_obj')"/></xsl:if>
- </xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="m_return" utml:update="false">
- <utml:value>
- <xsl:if test="key('env-param', 'm_return')">
- <xsl:value-of select="key('env-param', 'm_return')"/>
- </xsl:if>
- </utml:value>
- </utml:input>
- <!-- ================================================================ -->
- <!-- H E A D E R -->
- <!-- ================================================================ -->
- <dp:header>
- <dp:title>
- <xsl:value-of select="$browserTitle"/>
- </dp:title>
- <dp:description>
- <xts:string id="IDS_PACKAGECONFIGURATION_INTRO"/>
- </dp:description>
- </dp:header>
- <!-- ================================================================ -->
- <!-- B O D Y -->
- <!-- ================================================================ -->
- <lyt:layout style="1">
- <lyt:section>
- <pkgcfg:defaultAnalysis/>
- </lyt:section>
- </lyt:layout>
- <lyt:layout style="1">
- <lyt:section>
- </lyt:section>
- </lyt:layout>
- <lyt:layout style="1">
- <lyt:section>
- <pkgcfg:settingsList/>
- <pkgcfg:settingsInput/>
- </lyt:section>
- </lyt:layout>
- <!-- ================================================================ -->
- <!-- F O O T E R -->
- <!-- ================================================================ -->
- <dp:footer>
- <df:button df:id="IDS_CANCEL" df:style="stack-down"/>
- <df:button df:id="IDS_BACK"/>
- <df:button df:id="IDS_NEXT"/>
- <df:button df:id="IDS_FINISH" utml:validate="true" df:style="submit" df:nav_op="stack_down"/>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="render_page" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" 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>
|