123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2017
- 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">
- <!--
- ===============================================================================================
- formlogic_init :
- ===============================================================================================
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
- <!--
- ===============================================================================================
- getObjectDisplayNames :
- ===============================================================================================
- -->
- <xts:block id="getObjectDisplayNames" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml">
- <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- getContent :
- send the searchpath of the deployment record object passed from the previous page (view.xts) to CM. CM returns the
- requested properties.
- ===============================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init getObjectDisplayNames">
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" 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:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
-
- <send:variables/>
- <xsl:template match="/">
-
- <xsl:variable name="m_sort">
- <xsl:choose>
- <xsl:when test=" /root/env/param[@name='m_sort']">
- <xsl:value-of select="/root/env/param[@name='m_sort']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/session/param[@name='s_dep']"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="object">
- <xsl:value-of select="/root/env/param[@name='m_obj']"/>
- </xsl:variable>
-
- <xsl:variable name="maxObjects">
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name = 'm_pagertoEntries']) !='' and string(/root/env/param[@name = 'm_pagerfromEntries']) !=''"><xsl:value-of select="(/root/env/param[@name = 'm_pagertoEntries'] - /root/env/param[@name = 'm_pagerfromEntries']) + 1"/></xsl:when>
- <xsl:when test="/root/session/param[@name = 'linesPerPage'] != ''">
- <xsl:value-of select="/root/session/param[@name='linesPerPage']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/system/param[@name = 'defaultPortalPreferences']/pref[@name = 'lines']"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="maxObjectsMessages">
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name = 'm_pagertoMessages']) !='' and string(/root/env/param[@name = 'm_pagerfromMessages']) !=''"><xsl:value-of select="(/root/env/param[@name = 'm_pagertoMessages'] - /root/env/param[@name = 'm_pagerfromMessages']) + 1"/></xsl:when>
- <xsl:when test="/root/session/param[@name = 'linesPerPage'] != ''">
- <xsl:value-of select="/root/session/param[@name='linesPerPage']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/system/param[@name = 'defaultPortalPreferences']/pref[@name = 'lines']"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="skipObjectsEntries">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 'm_pagerfromEntries'] and /root/env/param[@name = 'm_pagerfromEntries']!=''">
- <xsl:value-of select="(/root/env/param[@name = 'm_pagerfromEntries'])-1"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name='m_Entriessection']!=''">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_Entriessection']!='-1'">
- <xsl:value-of select="((/root/env/param[@name='m_Entriessection']) -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="skipObjectsMessages">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 'm_pagerfromMessages'] and /root/env/param[@name = 'm_pagerfromMessages']!=''">
- <xsl:value-of select="(/root/env/param[@name = 'm_pagerfromMessages'])-1"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name='m_Messagessection']!=''">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_Messagessection']!='-1'">
- <xsl:value-of select="((/root/env/param[@name='m_Messagessection']) -1)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="($maxObjectsMessages) * -1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xts:sequence>
- <xts:append>
- <xts:transform src="transforms/portal/deploymentOptions/post-process.xslt" processor="XSLT">
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <xts:transform src="transforms/portal/deploymentOptions/post-process-nil.xslt" processor="XSLT">
- <xts:transform src="portal/history/transforms/processDetails.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:requests>
- <cm:query>
- <cm:search>
- <xsl:value-of select="$object"/>[permission('read')]
- </cm:search>
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="modificationTime"/>
- <cm:property name="contentLocale"/>
- <cm:property name="permissions"/>
- <cm:property name="usage"/>
- <cm:property name="disabled"/>
- <cm:property name="owner"/>
- <cm:property name="status"/>
- <cm:property name="actualExecutionTime"/>
- <cm:property name="actualCompletionTime"/>
- <cm:property name="status"/>
- <cm:property name="iconURI"/>
- <cm:property name="eventID"/>
- <cm:property name="ownerEventID"/>
- <cm:property name="restartEventID"/>
- </cm:properties>
- <cm:options>
- <cm:refProps>
- <cm:refProp refPropName="parent">
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="permissions"/>
- <cm:property name="searchPath"/>
- <cm:property name="objectClass"/>
- </cm:properties>
- </cm:refProp>
- </cm:refProps>
- </cm:options>
- </cm:query>
- <cm:query>
- <cm:search><xsl:value-of select="$object"/>[permission('read')]//deploymentDetail[@deployedObjectUsage != 'subObject' and @deployedObjectStatus != 'existing']</cm:search>
- <!-- enable this when CM adds support -->
- <cm:sortBy>
- <xsl:choose>
- <xsl:when test="$m_sort='nd'">
- <cm:sort name="defaultName" order="descending"/>
- </xsl:when>
- <xsl:otherwise>
- <cm:sort name="defaultName" order="ascending"/>
- </xsl:otherwise>
- </xsl:choose>
- </cm:sortBy>
- <cm:properties>
- <cm:property name="deployedObjectClass"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="position"/>
- <cm:property name="hasMessage"/>
- <cm:property name="deployedObjectUsage"/>
- <cm:property name="deployedObjectStatus"/>
- <cm:property name="iconURI"/>
- </cm:properties>
- <cm:options maxObjects="{($maxObjects)+1}" skipObjects="{$skipObjectsEntries}"/>
- </cm:query>
- <cm:query>
- <cm:search><xsl:value-of select="$object"/>[permission('read')]//*[(@objectClass='deploymentDetail' and @hasMessage = 'true' and @deployedObjectStatus != 'existing') or @objectClass='historyDetail']</cm:search>
- <cm:properties>
- <cm:property name="message"/>
- <cm:property name="deployedObjectClass"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="position"/>
- <cm:property name="severity"/>
- <cm:property name="detail"/>
- <cm:property name="iconURI"/>
- </cm:properties>
- <cm:options maxObjects="{($maxObjectsMessages)+1}" skipObjects="{$skipObjectsMessages}"/>
- </cm:query>
- <cm:query>
- <cm:search><xsl:value-of select="$object"/>[permission('read')]/historyDetailRequestArguments</cm:search>
- <cm:properties>
- <cm:property name="options"/>
- <cm:property name="defaultName"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:transform>
- </xts:transform>
- </xts:transform>
- </xts:append>
- <xts:delete select="/root/env/param[@name='pagerfromMessages']"/>
- <xts:delete select="/root/env/param[@name='pagertoMessages']"/>
- <xts:delete select="/root/env/param[@name='pagerfrom_dMessages']"/>
- <xts:delete select="/root/env/param[@name='pagerto_dMessages']"/>
-
- <xts:delete select="/root/env/param[@name='pagerfromEntries']"/>
- <xts:delete select="/root/env/param[@name='pagertoEntries']"/>
- <xts:delete select="/root/env/param[@name='pagerfrom_dEntries']"/>
- <xts:delete select="/root/env/param[@name='pagerto_dEntries']"/>
-
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- getRerunList: Query the Monitor service to find out if anything can be rerun.
- Should only do this when the status is failed
- ===============================================================================================
- -->
- <xts:block id="getRerunList" path="/portal/history/getRerunList.xsl" nodelist="header, env, queryResponse" type="exec" mode="interpret" processor="XSLT" dependency="getContent" mandatory="false" condition=".[/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*[local-name()='history']/*[local-name()='status' and (.='failed' or .='purged')]]">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
-
- <!--
- ===============================================================================================
- eatFault - eat up any fault that occured while trying to release the conversation
- ===============================================================================================
- -->
- <xts:block id="eatFault" type="fault" processor="XSLT">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output method="xml"/>
- <xsl:template match="/">
- <eatFault/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- faultHandler - copy fault
- ===============================================================================================
- -->
- <xts:block id="faultHandler" type="fault" processor="XSLT">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output method="xml"/>
- <xsl:template match="/root/fault">
- <copyFault>
- <xsl:copy-of select="."/>
- </copyFault>
- </xsl:template>
- <xsl:template match="text()"/>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- getRelatedHistories: get the owner information and also all the rerun histories
- ===============================================================================================
- -->
- <xts:block id="getRelatedHistories" path="/portal/history/getRelatedHistories.xsl" nodelist="header, queryResponse" type="exec" mode="interpret" processor="XSLT" dependency="getContent">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
-
- <!--
- ===============================================================================================
- getDeploymentInfo - get the multilingual names and default Name of the source packages.
- ===============================================================================================
- -->
- <xts:block id="getDeploymentInfo" processor="XSLT" type="exec" dependency="getContent">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <xsl:variable name="archive" select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='deploymentReport']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='archive']"/>
- <xsl:variable name="archiveEncryptPassword" select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='deploymentReport']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='archiveEncryptPassword']"/>
- <xts:sequence>
- <xts:append>
- <archiveInformation>
- <xts:transform src="transforms/portal/deploymentOptions/post-process.xslt" processor="XSLT">
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm" faultBlock="faultHandler">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <xtscm:getDeploymentOptions xmlns:xtscm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:inputOptions>
- <xsl:attribute name="archive">
- <xsl:value-of select="$archive"/>
- </xsl:attribute>
- <xsl:attribute name="archiveEncryptPassword">
- <xsl:value-of select="$archiveEncryptPassword"/>
- </xsl:attribute>
- <xsl:attribute name="upgradeArchiveOptions">true</xsl:attribute>
- </cm:inputOptions>
- </xtscm:getDeploymentOptions>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:transform>
- </archiveInformation>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- processArchiveOptions
- ===============================================================================================
- -->
- <xts:block id="processArchiveOptions"
- processor="XSLT"
- type="exec"
- nodelist="archiveInformation"
- condition=".[/root/archiveInformation/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']/*]"
- mandatory="false"
- dependency="getDeploymentInfo">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:template match="/">
- <xts:sequence>
- <xts:delete select="/root/archiveInformation/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption'][@name='preserveStoreIDs']"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- ===============================================================================================
- getArchiveSourcePackageInfo - get the searchPath from the original source packages/folders to create a map of storeIDs and searchPaths.
- ===============================================================================================
- -->
- <xts:block id="getArchiveSourcePackageInfo"
- processor="XSLT"
- type="exec"
- nodelist="env, http, credential, cookies, header, user, system, archiveInformation"
- condition=".[/root/archiveInformation/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']/*]"
- mandatory="false"
- dependency="getDeploymentInfo processArchiveOptions">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
-
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <archiveSourcePackageInfo>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <!-- older archives have an invalid cm:archiveSearchPath, therefore the bad searchPath error needs to be ignored -->
- <send:request provider="cm" faultBlock="eatFault">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:requests>
- <xsl:for-each select="/root/archiveInformation/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']/*[local-name()='packageDeploymentInfo']">
- <cm:query>
- <cm:search>
- <xsl:value-of select="cm:archiveSearchPath"/>
- </cm:search>
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="storeID"/>
- </cm:properties>
- </cm:query>
- </xsl:for-each>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </archiveSourcePackageInfo>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- getDeploymentRecordOptions
- ===============================================================================================
- -->
- <xts:block id="getDeploymentRecordOptions" processor="XSLT" type="exec" dependency="getArchiveSourcePackageInfo">
- <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- 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:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
- 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/"
- exclude-result-prefixes="xsl xtsext cml send dpl pf cm bus">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <dpl:variables/>
- <dpl:getDefaultPackageName/>
-
- <send:variables/>
- <xsl:variable name="archiveOptions" select="/root/cm:queryResponse/cm:queryReply[4]"/>
- <xsl:variable name="deploymentObjects" select="/root/cm:queryResponse/cm:queryReply[2]"/>
- <xsl:variable name="deploymentMessages" select="/root/cm:queryResponse/cm:queryReply[3]"/>
- <xsl:variable name="defaultName" select="/root/tempDefaultName/cm:queryResponse/*"/>
- <xsl:variable name="objectType" select="/root/objectClass/*"/>
- <xsl:key name="archive-info" match="/root/archiveInformation/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption' and @name='package']/*[local-name()='packageDeploymentInfo']" use="cm:archiveSearchPath"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <xts:transform src="transforms/portal/deploymentOptions/packages_sort.xslt" processor="XSLT">
- <deploymentOptionsUI xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
- <deploymentOption name="message">
- <xsl:for-each select="$deploymentMessages/*[local-name() = 'deploymentDetail']">
- <messageDeployment>
- <xsl:for-each select="child::*[local-name() != 'ancestors' and local-name() != 'message']">
- <xsl:choose>
- <xsl:when test="./cm:value">
- <xsl:element name="{local-name()}" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:value-of select="./cm:value"/>
- </xsl:element>
- </xsl:when>
- <xsl:otherwise>
- <xsl:element name="{local-name()}" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:value-of select="."/>
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:for-each select="cm:message/cm:faultDetail">
- <msg>
- <messageType>
- <xsl:value-of select="cm:severity"/>
- </messageType>
- <code>
- <xsl:value-of select="cm:errorCode"/>
- </code>
- <message>
- <xsl:for-each select="cm:faultDetailMessage">
- <xsl:value-of select="cm:message"/>
- <xsl:value-of select="' '"/>
- </xsl:for-each>
- </message>
- </msg>
- </xsl:for-each>
- <ancestorDefaultNames>
- <xsl:for-each select="cm:ancestors/child::*[local-name() = 'ancestorInfo' and cm:objectClass = 'deploymentDetail']">
- <xsl:value-of select="./cm:title"/>
- <xsl:if test="position() != last()">
- <xsl:text/> > <xsl:text/>
- </xsl:if>
- </xsl:for-each>
- </ancestorDefaultNames>
- </messageDeployment>
- </xsl:for-each>
- <xsl:for-each select="$deploymentMessages/*[local-name() = 'historyDetail']">
- <messageDeployment>
- <msg>
- <messageType>
- <xsl:value-of select="cm:severity"/>
- </messageType>
- <message>
- <xsl:value-of select="cm:detail"/>
- </message>
- </msg>
- <position><xsl:value-of select="cm:position"/></position>
- </messageDeployment>
- </xsl:for-each>
- </deploymentOption>
- <deploymentOption name="deploymentObject">
- <xsl:for-each select="$deploymentObjects/*[local-name() = 'deploymentDetail']">
- <objectDeployment>
- <xsl:variable name="objectClass">
- <xsl:value-of select="cm:deployedObjectClass"/>
- </xsl:variable>
- <xsl:for-each select="child::*[local-name() != 'ancestors']">
- <xsl:choose>
- <xsl:when test="./cm:value">
- <xsl:element name="{local-name()}" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:value-of select="./cm:value"/>
- </xsl:element>
- </xsl:when>
- <xsl:otherwise>
- <xsl:element name="{local-name()}" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:value-of select="."/>
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <ancestorDefaultNames>
- <xsl:for-each select="cm:ancestors/child::*[local-name() = 'ancestorInfo' and cm:objectClass = 'deploymentDetail']">
- <xsl:value-of select="./cm:title"/>
- <xsl:if test="position() != last()">
- <xsl:text/> > <xsl:text/>
- </xsl:if>
- </xsl:for-each>
- </ancestorDefaultNames>
- <objectType>
- <xsl:value-of select="$objectType[@name=$objectClass]"/>
- </objectType>
- </objectDeployment>
- </xsl:for-each>
- </deploymentOption>
- <deploymentOption name="package">
- <xsl:for-each select="$archiveOptions/cm:deploymentReport/cm:deploymentOptions/cm:deploymentOption/*[local-name() = 'packageDeploymentInfo']">
- <packageDeploymentInfo>
- <xsl:variable name="archiveSearchPath"><xsl:value-of select="cm:archiveSearchPath"/></xsl:variable>
-
- <!-- following 2 variables used to convert a storeID to the format storeID('XXXXXXXXX') -->
- <xsl:variable name="storeIDPrefix"><xsl:text>storeID('</xsl:text></xsl:variable>
- <xsl:variable name="storeIDSuffix"><xsl:text>')</xsl:text></xsl:variable>
-
- <!-- get the searchPath from the information retrieved from the deployment object in the getArchiveSourcePackageInfo block -->
- <xsl:variable name="query-pkg" select="/root/archiveSourcePackageInfo/cm:queryResponse/cm:queryReply/*[(local-name() = 'package' or local-name() = 'folder' or local-name() = 'account' or local-name() = 'catalogFolder' or local-name() = 'visualization')][concat($storeIDPrefix,*[local-name()='storeID'],$storeIDSuffix)=$archiveSearchPath or *[local-name()='searchPath']=$archiveSearchPath]"/>
- <xsl:variable name="query-using-searchPath" select="$query-pkg/*[local-name()='searchPath']"/>
- <xsl:variable name="query-using-storeIDSearchPath">
- <xsl:choose>
- <xsl:when test="$query-pkg/*[local-name()='storeID']">
- <xsl:value-of select="concat($storeIDPrefix, $query-pkg/*[local-name()='storeID'] | $archiveSearchPath, $storeIDSuffix)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$archiveSearchPath"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="packageInfoFromArchiveInformation" select="key('archive-info', $query-using-searchPath) | key('archive-info', $query-using-storeIDSearchPath)"/>
- <xsl:if test="$packageInfoFromArchiveInformation">
- <sourceName>
- <xsl:copy-of select="$packageInfoFromArchiveInformation/cm:sourceName/cm:multilingualToken"/>
- </sourceName>
- <objectClass>
- <xsl:value-of select="$packageInfoFromArchiveInformation/cm:objectClass"/>
- </objectClass>
- </xsl:if>
- <defaultSourceName>
- <xsl:choose>
- <xsl:when test="$packageInfoFromArchiveInformation">
- <xsl:value-of select="$packageInfoFromArchiveInformation/cm:defaultName"/>
- </xsl:when>
- <xsl:otherwise><xts:string id="IDS_PROP_ENTRY_NOT_FOUND"/></xsl:otherwise>
- </xsl:choose>
- </defaultSourceName>
- <targetName>
- <xsl:copy-of select="cm:targetName/cm:multilingualToken"/>
- </targetName>
- <defaultTargetName>
- <xsl:call-template name="get-default-package-name">
- <xsl:with-param name="package-name" select="cm:targetName/cm:multilingualToken"/>
- <xsl:with-param name="defaultName">
- <xsl:value-of select="cm:targetName/cm:multilingualToken/self::node()[1]"/>
- </xsl:with-param>
- </xsl:call-template>
- </defaultTargetName>
- <enabled>
- <xsl:value-of select="cm:enabled"/>
- </enabled>
- </packageDeploymentInfo>
- </xsl:for-each>
- </deploymentOption>
- <xsl:if test="$archiveOptions/cm:deploymentReport/cm:deploymentOptions/*[@name='tenants']">
- <deploymentOption name="tenants">
- <xsl:copy-of select="$archiveOptions/cm:deploymentReport/cm:deploymentOptions/*[@name='tenants']/*"/>
- </deploymentOption>
- </xsl:if>
- <xsl:for-each select="$archiveOptions/cm:deploymentReport/cm:deploymentOptions/*[@class != 'cm:deploymentOptionPackageInfo' and @class != 'cm:deploymentOptionStringArray']">
- <deploymentOption>
- <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
- <xsl:variable name="optionValue" select="."/>
- <xsl:attribute name="enabled"><xsl:if test="$optionValue = 'false' "><xsl:text>false</xsl:text></xsl:if><xsl:if test="$optionValue = 'true' "><xsl:text>true</xsl:text></xsl:if></xsl:attribute>
- <xsl:value-of select="$optionValue"/>
- </deploymentOption>
- </xsl:for-each>
- </deploymentOptionsUI>
- </xts:transform>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- Get Number of Packages.
- ===============================================================================================
- -->
- <xts:block id="getNumberOfPackages" processor="XSLT" type="exec" dependency="getDeploymentRecordOptions" mandatory="false">
- <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- add any theme variables -->
- <dpl:getNumberOfPackages/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- Main
- ===============================================================================================
- -->
- <xts:block id="main" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="getRerunList getRelatedHistories getContent getDeploymentRecordOptions getNumberOfPackages formlogic_init" mandatory="false">
-
- <xts:logicsheet path="portal/history/logicsheets/ui-template.xslt"/>
- <!-- deployment packages part -->
- <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
- <!-- get the new theme stuff -->
- <xts:logicsheet path="logicsheets/portal.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/presentation/main/framework.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:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:out="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:rhu="http://developer.cognos.com/schemas/xts/historyui"
- 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:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/1/"
- xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
- xmlns:ctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/controls/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:x="x" exclude-result-prefixes="xsl xsi cm cf cp df dp lyt ctrl cml bus utml xtsext dpl rhu dbg mf mt pf xts">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'history/deployment_details.xts'"/>
- <xsl:variable name="argumentsObject" select="/root/cm:queryResponse/cm:queryReply[4]"/>
- <xsl:variable name="specName">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_p_defaultName']">
- <xsl:value-of select="/root/env/param[@name='m_p_defaultName']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/env/param[@name='m_name']"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- dpl:packagesToInclude template needs this variable. -->
- <xsl:variable name="numberOfPackages">
- <xsl:choose>
- <xsl:when test="/root/numberOfPackages">
- <xsl:value-of select="/root/numberOfPackages"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('session-param', 'linesPerPage')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <rhu:variables/>
- <!-- add any theme variables -->
- <pf:variables/>
- <!-- deployment variables -->
- <dpl:variables/>
- <mf:variables/>
- <xsl:variable name="runStatus">
- <xsl:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:status"/>
- </xsl:variable>
-
- <xsl:variable name="timeUnformated">
- <xsl:value-of select="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='actualExecutionTime']"/>
- </xsl:variable>
- <xsl:variable name="defaultNameTitle">
- <xsl:text/><xsl:value-of select="' '"/><xsl:value-of select="xtsext:formatDateFromUTC( string( $timeUnformated ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/><xsl:text/>
- </xsl:variable>
- <xsl:variable name="browserTitle">
- <xsl:choose>
- <xsl:when test="$deployment-method='export'">
- <xts:string id="IDS_DEPLOYMENT_DETAILED_EXPORT_RECORD_TITLE">
- <xts:param name="SpecTitle">
- <span lang="{$contentLocale}"><xsl:value-of select="$specName"/></span>
- </xts:param>
- <xts:param name="TimeTitle">
- <span lang="{$contentLocale}"><xsl:value-of select="$defaultNameTitle"/></span>
- </xts:param>
- </xts:string>
- </xsl:when>
- <xsl:when test="$deployment-method='import'">
-
- <xts:string id="IDS_DEPLOYMENT_DETAILED_IMPORT_RECORD_TITLE">
- <xts:param name="SpecTitle">
- <span lang="{$contentLocale}"><xsl:value-of select="$specName"/></span>
- </xts:param>
- <xts:param name="TimeTitle">
- <span lang="{$contentLocale}"><xsl:value-of select="$defaultNameTitle"/></span>
- </xts:param>
- </xts:string>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:key name="deploymentOptions" match="/root/cm:deploymentOptionsUI/cm:deploymentOption" use="@name"/>
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/>
- <!-- Standard meta tags -->
- </dp:meta>
- <dp:script>
- <pf:help context="HID_VIEW_RUN_HISTORY"/>
- <!-- Help system -->
- <script language="JavaScript">
-
- function init()
- {
- if (window.document.anchors != null && window.document.anchors.length > 0)
- {
- window.location.hash="entriesTable";
- }
-
- }
-
- function doSort(column)
- {
- var form = document.pform;
- if (form == null)
- return;
-
- sortBy = form.m_s_dep;
-
- <!-- Sorting by type is not currently supported. -->
- if (column == 't')
- {
- if (sortBy.value == 'ta')
- sortBy.value = 'td';
- else
- sortBy.value = 'ta';
- }
- else
- {
- if (sortBy.value == 'na')
- sortBy.value = 'nd';
- else
- sortBy.value = 'na';
- }
-
- form.submit();
- }
- </script>
- </dp:script>
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:read-only>true</utml:read-only>
- <utml:input type="hidden" name="m_s_dep" utml:update="false">
- <utml:value>
- <xsl:value-of select="/root/session/param[@name='s_dep']"/>
- </utml:value>
- </utml:input>
- <utml:input type="hidden" name="m_previousEntriesPage" utml:update="false">
- <utml:value>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_Entriessection'] and /root/env/param[@name='m_Entriessection'] != ''">
- <xsl:value-of select="/root/env/param[@name='m_Entriessection']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'1'"/>
- </xsl:otherwise>
- </xsl:choose>
- </utml:value>
- </utml:input>
-
- <utml:input type="hidden" name="ifrmcmd" value="" utml:update="false"/>
- <!-- Set input for submitting -->
- <xsl:variable name="m" select="concat($app, '/history/view.xts')"/>
- <xsl:call-template name="summary-header">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
-
- <!-- add the js and any divs we'll need for the rerun action -->
- <rhu:rerunFramework/>
-
- <!-- time and status -->
- <rhu:timeAndStatus/>
-
- <xsl:call-template name="messages">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
-
- <!-- deployment file and location -->
- <lyt:layout style="2" title="IDS_DEPLOYMENT_FOLDER" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <!-- if CM threw an archvive not found exception display a warning message -->
- <xsl:if test="/root/archiveInformation/copyFault//messageString[contains(.,'CM-REQ-4136')]">
- <dp:choice>
- <dp:section1 wrap="wrap">
- <img height="16" width="16">
- <xsl:attribute name="src"><xsl:value-of select="$image_root"/>msg_warning_16.gif</xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_STATUS_WARN" encode="html"/></xsl:attribute>
- </img>
- </dp:section1>
- <dp:section2 wrap="wrap">
- <xts:string id="IDS_VRH_DETAILS_ARCHIVE_MISSING"/>
- </dp:section2>
- </dp:choice>
- </xsl:if>
- </dp:section>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_NEW_NAME"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:choose>
- <xsl:when test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='archive'] != ''"><xsl:value-of select="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='archive']"/></xsl:when>
- <xsl:otherwise>
- <dp:section>
- <dp:text>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/>
- </dp:text>
- </dp:section>
- </xsl:otherwise>
- </xsl:choose>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
-
- <xsl:call-template name="summary-options">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
-
- <!-- objects imported/exported -->
- <xsl:call-template name="objects">
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
- </xsl:call-template>
- <rhu:relatedRuns/>
-
- <!-- footer: Close button. -->
- <dp:footer div="div">
- <df:button df:id="IDS_CLOSE" df:style="back-url"/>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- <xsl:template name="summary-header">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dp:header div="div">
- <dp:title>
- <xsl:copy-of select="$browserTitle"/>
- </dp:title>
- <dp:description>
- <xts:string id="IDS_VRH_DETAILS_DESCRIPTION"/>
- </dp:description>
- <dp:close>
- <a href="{string(key('env-param', 'backURL'))}">
- <dp:closeMarker/>
- </a>
- </dp:close>
- </dp:header>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="messages">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_DETAILED_RECORD_MESSAGES" border="yes">
- <lyt:section>
- <xsl:choose>
- <xsl:when test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='message'] != '' ">
- <cf:main-pager-section name="Messages" form="pform" virtualPage="true" deploymentMessage="true">
- <cf:param name="item-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='message']/cm:messageDeployment/cm:msg</cf:param>
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="lines-per-page">
- <xsl:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="pagerSummary"><xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_MESSAGES_SUMMARY"/></cf:param>
- <cf:param name="rows">
- <cp:tableHeader>
- <cp:columnHeader width="16"/>
- <cp:columnHeader width="100%">
- <xts:string id="IDS_DEPLOYMENT_DETAILED_RECORD_MESSAGES_MESSAGE"/>
- </cp:columnHeader>
- <cp:columnHeader width="16"/>
- <cp:columnHeader width="300">
- <xts:string id="IDS_DEPLOYMENT_PACKAGES_NAME"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:columnContent>
- <xsl:call-template name="gen-message-icon">
- <xsl:with-param name="statusPath" select="cm:messageType"/>
- </xsl:call-template>
- </cp:columnContent>
- <cp:columnContent wrap="wrap">
- <xsl:value-of select="cm:message"/>
- </cp:columnContent>
- <cp:columnContent>
- <xsl:if test="../cm:deployedObjectClass">
- <xsl:call-template name="gen-icon">
- <xsl:with-param name="class" select="../cm:deployedObjectClass"/>
- </xsl:call-template>
- </xsl:if>
- </cp:columnContent>
- <cp:columnContent lang="{$contentLocale}">
- <xsl:if test="../cm:ancestorDefaultNames and ../cm:ancestorDefaultNames != ''">
- <img height="16" width="20">
- <xsl:attribute name="alt"><xsl:value-of select="../cm:ancestorDefaultNames"/></xsl:attribute>
- <xsl:attribute name="src"><xsl:value-of select="$skin_images"/>path.gif</xsl:attribute>
- </img>
- <img height="8" width="8">
- <xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif<xsl:text/></xsl:attribute>
- </img>
- </xsl:if>
- <xsl:value-of select="../cm:defaultName"/>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </xsl:when>
- <xsl:otherwise>
- <dp:choice>
- <dp:section1/>
- <dp:section2>
- <xts:string id="IDS_DEPLOYMENT_NO_MESSAGES"/>
- </dp:section2>
- </dp:choice>
- </xsl:otherwise>
- </xsl:choose>
- </lyt:section>
- </lyt:layout>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="objects">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <lyt:layout style="2" title="IDS_DEPLOYMENT_DETAILED_RECORD_ENTRIES" border="yes">
- <lyt:section>
- <xsl:choose>
- <xsl:when test="/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='deploymentObject'] != '' ">
- <xsl:if test="/root/env/param[@name='m_previousEntriesPage'] and /root/env/param[@name='m_Entriessection'] and /root/env/param[@name='m_Entriessection'] != '' and /root/env/param[@name='m_previousEntriesPage'] != /root/env/param[@name='m_Entriessection']">
- <a name="entriesTable"/>
- </xsl:if>
- <dpl:recordEntriesPager/>
- </xsl:when>
- <xsl:otherwise>
- <dp:choice>
- <dp:section1/>
- <dp:section2>
- <xsl:choose>
- <xsl:when test="$deployment-method= 'export' ">
- <xts:string id="IDS_DEPLOYMENT_NO_ENTRIES_EXPORT"/>
- </xsl:when>
- <xsl:when test="$deployment-method= 'import' ">
- <xts:string id="IDS_DEPLOYMENT_NO_ENTRIES_IMPORT"/>
- </xsl:when>
- </xsl:choose>
- </dp:section2>
- </dp:choice>
- </xsl:otherwise>
- </xsl:choose>
- </lyt:section>
- </lyt:layout>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="summary-options">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <xsl:choose>
- <xsl:when test="key('deploymentOptions', 'entireContentStoreSelect')='true'">
- <xsl:call-template name="entireContentStoreOptionsSummary"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="packagesSummary"/>
- <xsl:call-template name="packagesOptionsSummary"/>
- <xsl:call-template name="directoryContentOptionsSummary"/>
- <xsl:call-template name="generalOptionsSummary"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$deployment-method= 'import' ">
- <xsl:call-template name="upgradeOptionsSummary"/>
- </xsl:if>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="entireContentStoreOptionsSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:choose>
- <xsl:when test="$argumentsObject/* != ''">
- <xsl:copy>
- <xsl:choose>
- <xsl:when test="key('deploymentOptions', 'tenants')/*">
- <dpl:tenantsOptionsSummary>
- <dpl:param name="tenant-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='tenants']/*</dpl:param>
- </dpl:tenantsOptionsSummary>
- </xsl:when>
- <xsl:otherwise>
- <dpl:entireContentStoreOptionsSummary/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:copy>
- </xsl:when>
- <xsl:otherwise>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_METHOD_CONTENT_STORE" border="yes">
- <lyt:section>
- <xsl:call-template name="noOptionsAvailable"/>
- </lyt:section>
- </lyt:layout>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="packagesSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_RECORD_SUMMARY_PACKAGE" border="yes">
- <lyt:section>
- <xsl:choose>
- <xsl:when test="$argumentsObject/* != ''">
- <dpl:packagesToInclude>
- <dpl:param name="item-path">/root/cm:deploymentOptionsUI/cm:deploymentOption[@name='package']/*</dpl:param>
- <dpl:param name="summaryId">IDS_DEPLOYMENT_PACKAGES_THAT_WERE_IMPORTED</dpl:param>
- </dpl:packagesToInclude>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="noOptionsAvailable"/>
- </xsl:otherwise>
- </xsl:choose>
- </lyt:section>
- </lyt:layout>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="upgradeOptionsSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_SELECT_UPGRADE_TITLE_DETAILS" border="yes">
- <lyt:section>
- <xsl:choose>
- <xsl:when test="$argumentsObject/* != ''">
- <dp:list>
- <!-- upgrade options summary -->
- <dp:section>
- <dp:text>
- <xsl:choose>
- <xsl:when test="$argumentsObject/*/*[local-name()='deploymentOptions']/child::node()[@name='upgradeClasses']!=''"><xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_UPGRADE"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_DEPLOYMENT_SELECT_UPGRADE_RADIO_KEEP"/></xsl:otherwise>
- </xsl:choose>
- </dp:text>
- </dp:section>
- <!-- preserveStoreIDs option summary -->
- <dp:section>
- <dp:text>
- <xsl:choose>
- <xsl:when test="$argumentsObject/*/*[local-name()='deploymentOptions']/child::node()[@name='preserveStoreIDs']='true'"><xts:string id="IDS_DEPLOYMENT_OPTIONS_INCLUDE_PRESERVE_STOREIDS"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_DEPLOYMENT_OPTIONS_DO_NOT_INCLUDE_PRESERVE_STOREIDS"/></xsl:otherwise>
- </xsl:choose>
- </dp:text>
- </dp:section>
- </dp:list>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="noOptionsAvailable"/>
- </xsl:otherwise>
- </xsl:choose>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template name="packagesOptionsSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:copy>
- <dpl:packagesOptionsSummary/>
- </xsl:copy>
- </xsl:template>
- <xsl:template name="directoryContentOptionsSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:choose>
- <xsl:when test="$argumentsObject/* != ''">
- <xsl:copy>
- <dpl:directoryContentOptionsSummary/>
- </xsl:copy>
- </xsl:when>
- <xsl:otherwise>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_OPTIONS_DIRECTORY_CONTENT" border="yes">
- <lyt:section>
- <xsl:call-template name="noOptionsAvailable"/>
- </lyt:section>
- </lyt:layout>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="generalOptionsSummary">
- <xsl:param name="form-read-only"/>
- <xsl:param name="utml-form-name"/>
- <xsl:choose>
- <xsl:when test="$argumentsObject/* != ''">
- <xsl:copy>
- <dpl:generalOptionsSummary/>
- </xsl:copy>
- </xsl:when>
- <xsl:otherwise>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_GENERAL_OPTIONS" border="yes">
- <lyt:section>
- <xsl:call-template name="noOptionsAvailable"/>
- </lyt:section>
- </lyt:layout>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="noOptionsAvailable">
- <dp:list>
- <dp:section>
- <dp:text>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </xsl:template>
- <pf:gen-icon/>
- <rhu:genMessageIcons/>
- <rhu:genStatus/>
- <mt:actions mode="tools" maintain="true" viewOutputForm="pform"/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- Debug
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="main" 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>
|