123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646 |
- <?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).
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
- <xsl:variable name="system_version">
- <xsl:choose>
- <xsl:when test="string(/system/@version) = ''">
- <xsl:text>2.0</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/system/@version"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- Update the system version -->
- <!-- =================================================================================== -->
- <xsl:template match="/">
- <xsl:comment>
- 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).
- </xsl:comment>
- <system version="4.4">
- <xsl:if test="$system_version < 2.2">
- <xsl:call-template name="upgrade_from_2_0"/>
- </xsl:if>
- <xsl:apply-templates select="system/child::node()"/>
- </system>
- </xsl:template>
- <!-- Remove deprecated parameters. This is safe to be done unconditionally for all upgrade paths. -->
- <!-- =================================================================================== -->
- <xsl:template match="param[@name='enable-custompages']"/>
- <xsl:template match="param[@name='defaultPortalPreferences']"/>
- <xsl:template match="param[@name='portlets']"/>
- <xsl:template match="param[@name='sessionPath']"/>
- <xsl:template match="param[@name='enable-object-count']"/>
- <xsl:template match="param[@name='OEMmessages']"/>
- <xsl:template match="param[@name='enable-excel-support']"/>
- <xsl:template match="param[@name='enable-csv-support']"/>
- <xsl:template match="param[@name='enable-xml-support']"/>
- <xsl:template match="param[@name='enable-download']"/>
- <xsl:template match="param[@name='enable-SAP-connection']"/>
- <!-- Remove deprecated objects. This is safe to be done unconditionally for all upgrade paths. -->
- <xsl:template match="object[@class='exportDeploymentFolder']" mode="cleanUpUIObjects"/>
- <xsl:template match="object[@class='importDeploymentFolder']" mode="cleanUpUIObjects"/>
- <xsl:template match="object[@class='jobAndScheduleMonitoringService']" mode="cleanUpUIObjects"/>
- <xsl:template match="object[@class='scheduleAndDeliveryService']" mode="cleanUpUIObjects"/>
- <xsl:template match="object[@class='dimensionalDataService']" mode="cleanUpUIObjects"/>
-
- <!-- Remove deprecated element only (keep output) -->
- <xsl:template match="object[@class='output']/type[@name='agentOutputHotList']"/>
- <!-- =================================================================================== -->
- <xsl:template name="upgrade_from_2_0">
- <xsl:if test="not(/system/param[@name='namespace_filter'])">
- <xsl:comment>CM filter added to requests for namespaces</xsl:comment>
- <param name="namespace_filter">[permission("read") or permission("write") or permission("execute") or permission("traverse") or permission("setPolicy")]</param>
- </xsl:if>
- </xsl:template>
- <!-- =================================================================================== -->
- <!-- Add new object definitions for all versions. -->
- <xsl:template match="param[@name='ui_objects']">
- <param name="ui_objects">
- <!-- add new object definitions -->
- <xsl:if test="$system_version < 2.1">
- <!-- Objects added between 2.0 and 2.1 -->
- <!-- Those objects that could exist in 2.0(1) system files will be added conditionally. -->
- <xsl:if test="not(object[@class='mobileService'])">
- <object class="mobileService" icon="service" container="F" service="T"/>
- </xsl:if>
- <xsl:if test="not(object[@class='reportDataService'])">
- <object class="reportDataService" icon="service" container="F" service="T"/>
- </xsl:if>
- <xsl:if test="not(object[@class='indexUpdateTask'])">
- <object class="indexUpdateTask" icon="index_update" container="F" runnable="T"/>
- </xsl:if>
- <xsl:if test="not(object[@class='indexDataService'])">
- <object class="indexDataService" icon="service" container="F" service="T"/>
- </xsl:if>
- <xsl:if test="not(object[@class='indexSearchService'])">
- <object class="indexSearchService" icon="service" container="F" service="T"/>
- </xsl:if>
- <xsl:if test="not(object[@class='indexUpdateService'])">
- <object class="indexUpdateService" icon="service" container="F" service="T"/>
- </xsl:if>
-
- <object class="document" icon="document_coc" container="F"/>
- <object class="output" container="F"/>
- <object class="shortcutAgentRSSTask" icon="newsitem" container="F"/>
- </xsl:if>
- <!-- Params added between 2.2(Blaring) and 3.0 -->
- <xsl:if test="$system_version < 2.2">
- <object class="dataMovementService" icon="service" container="F" service="T"/>
- <object class="dataMovementTask" icon="data_movement" container="F" runnable="T"/>
- <object class="planningMacroTask" icon="planning_macro" container="F" runnable="T"/>
- <object class="planningDataService" icon="service" container="F" service="T"/>
- </xsl:if>
-
- <!-- Params added between 2.2 and 3.0 -->
- <xsl:if test="$system_version < 3.0">
- <object class="archiveLocation" icon="file_system_location" container="F"/>
- <object class="migrationTask" icon="migration" container="F" runnable="T"/>
- <object class="powerPlay8Report" icon="pp8_report" container="F" runnable="T"/>
- <object class="powerPlay8ReportView" icon="pp8_report_sub" container="F" runnable="T"/>
- <object class="portalSkinFolder" icon="folder" container="T"/>
- <object class="reportDataServiceAgentDefinition" icon="subscription" container="F" runnable="T"/>
- <object class="subscriptionFolder" icon="folder" container="T"/>
- <object class="uiProfile" icon="user_interface_profiles" container="F"/>
- <object class="migrationService" icon="service" container="F" service="T"/>
- <object class="powerPlayService" icon="service" container="F" service="T"/>
- </xsl:if>
- <!-- Params added between 3.0 and 3.1 -->
- <xsl:if test="$system_version < 3.1">
- <object class="dashboard" icon="dashboard" container="F"/>
- <object class="metadataService" icon="service" container="F" service="T"/>
- </xsl:if>
-
- <!-- Params added between 3.1 and 4.0 -->
- <xsl:if test="$system_version < 4.0">
- <object class="adaptiveAnalyticsService" icon="service" container="F" service="T"/>
- <object class="annotationService" icon="service" container="F" service="T"/>
- <object class="contentManagerCacheService" icon="service" container="F" service="T"/>
- <object class="dataMovementTaskAlias" icon="data_movement_sub" container="F" runnable="T"/>
- <object class="EVService" icon="service" container="F" service="T"/>
- <object class="graphicsService" icon="service" container="F" service="T"/>
- <object class="humanTask" icon="human_task" container="F"/>
- <object class="humanTaskService" icon="service" container="F" service="T"/>
- <object class="interactiveReport" icon="interactive_report" container="F" runnable="T">
- <uiprofile name="professional" icon="rs_report"/>
- <uiprofile name="default" icon="rs_report"/>
- </object>
- <object class="launchable" container="F"> <xsl:comment> MVC - Content Reference</xsl:comment>
- <launchableType name="application/vnd.ibm.cognos.instance" icon="cognos_content"/>
- <launchableType name="application/vnd.ibm.cognos.ev" icon="launchable_xa_analysis"/>
- <launchableType name="application/vnd.ibm.cognos.cd" icon="launchable_cd"/>
- <!-- added in 4.1, put here for system upgrade from system less than 3.1 -->
- <launchableType name="application/vnd.ibm.cognos.ev.canvas" icon="launchable_xa_canvas"/>
- <launchableType name="" icon="launchable_default"/>
- </object>
- <object class="model" icon="model" container="T"/>
- <object class="relationalMetadataService" icon="service" container="F" service="T"/>
- <object class="statisticsService" icon="service" container="F" service="T"/>
- <object class="queryService" icon="service" container="F" service="T"/>
- <object class="queryServiceTask" icon="queryServiceTask" container="F" runnable="T"/>
-
- </xsl:if>
-
- <xsl:if test="$system_version < 4.1">
- <object class="dataAdvisorService" icon="service" container="F" service="T"/>
- <object class="modelView" icon="model_view" container="F"/>
- <object class="rolapDataSource" icon="rolapDataSource" container="F"/>
- <object class="rolapVirtualDataSource" icon="rolapVirtualDataSource" container="F"/>
- </xsl:if>
-
- <xsl:if test="$system_version < 4.2">
- <object class="idVizService" icon="service" container="F" service="T"/>
- <object class="repositoryService" icon="service" container="F" service="T"/>
- </xsl:if>
-
- <xsl:if test="$system_version < 4.3">
- <object class="catalog" icon="built_in_folder" container="T"/>
- <object class="tenant" icon="tenant" container="F"/>
- <object class="tenants" icon="folder" container="T"/>
- <object class="visualization" icon="visualization" container="F"/>
- <object class="catalogFolder" icon="catalog_folder" container="T"/>
- </xsl:if>
-
- <!-- Copy definitions of existing objects -->
- <xsl:apply-templates mode="cleanUpUIObjects"/>
- </param>
- </xsl:template>
- <!-- ======================================================================================= -->
- <xsl:template match="param[@name='base-object-actions']">
- <param name="base-object-actions">
- <actions>
- <xsl:if test="$system_version < 2.1">
- <!-- Objects added between 2.0 and 2.1 -->
- <!-- Those objects that could exist in 2.0(1) system files will be added conditionally. -->
- <xsl:if test="not(actions/object[@class='indexUpdateTask'])">
- <xsl:call-template name="genRunnableActions">
- <xsl:with-param name="objectName" select="'indexUpdateTask'"/>
- </xsl:call-template>
- </xsl:if>
- <object class="document">
- <action name="shortcut"/>
- <action name="previous_versions"/>
- </object>
- </xsl:if>
-
- <!-- Params added between 2.2(Blaring) and 3.0 -->
- <xsl:if test="$system_version < 2.2">
- <object class="dataMovementTask">
- <action name="run_options"/>
- <action name="schedule"/>
- <action name="previous_versions"/>
- <action name="run_history"/>
- </object>
- <object class="planningMacroTask">
- <action name="run_options"/>
- <action name="schedule"/>
- <action name="run_history"/>
- <action name="run_once"/>
- </object>
- <object class="planningTask">
- <action name="run_options"/>
- <action name="schedule"/>
- <action name="run_history"/>
- <action name="run_once"/>
- </object>
- </xsl:if>
-
- <!-- Update 'report' objects to include new actions and add other objects added between 2.2 and 3.0 -->
- <xsl:if test="$system_version < 3.0">
- <object class="powerPlay8Report">
- <action name="run_once"/>
- <action name="run_options"/>
- <action name="edit"/>
- <action name="schedule"/>
- <action name="shortcut"/>
- <action name="previous_versions"/>
- <action name="run_history"/>
- <action name="customview"/>
- </object>
- <object class="powerPlay8ReportView">
- <action name="run_once"/>
- <action name="run_options"/>
- <action name="edit"/>
- <action name="schedule"/>
- <action name="shortcut"/>
- <action name="previous_versions"/>
- <action name="run_history"/>
- </object>
- <object class="reportDataServiceAgentDefinition">
- <action name="run_history"/>
- </object>
- </xsl:if>
-
- <!-- Params added between 3.0 and 3.1 -->
- <xsl:if test="$system_version < 3.1">
- <object class="migrationTask">
- <action name="run_options"/>
- <action name="schedule"/>
- <action name="run_once"/>
- <action name="run_history"/>
- </object>
- <object class="dashboard">
- <action name="shortcut"/>
- </object>
- </xsl:if>
- <!-- Params added between 3.1 and 4.0 -->
- <xsl:if test="$system_version < 4.0">
- <object class="dataMovementTaskAlias">
- <action name="run_options"/>
- <action name="schedule"/>
- <action name="previous_versions"/>
- <action name="run_history"/>
- </object>
- <object class="interactiveReport">
- <action name="run_options"/>
- <action name="edit"/>
- <action name="schedule"/>
- <action name="run_once"/>
- <action name="previous_versions"/>
- <action name="run_history"/>
- <action name="customview"/>
- <action name="shortcut"/>
- </object>
- <object class="launchable">
- <action name="shortcut"/>
- <launchableType name="application/vnd.ibm.cognos.instance">
- <action name="traverse"/>
- </launchableType>
- </object>
- <object class="queryServiceTask">
- <action name="run_once"/>
- <action name="run_options"/>
- <action name="schedule"/>
- <action name="previous_versions"/>
- <action name="run_history"/>
- </object>
- </xsl:if>
- <!-- Copy everything else as is (except package) -->
- <xsl:apply-templates select="actions/*"/>
- </actions>
- </param>
- </xsl:template>
-
- <!-- ===== update some base-object-actions for different versions ======================================================-->
- <xsl:template match="actions/object[@class='analysis']">
- <object class="analysis">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 3.0">
- <action name="add_alert"/>
- <action name="remove_all_alerts"/>
- </xsl:if>
- </object>
- </xsl:template>
- <xsl:template match="actions/object[@class='analysisView']">
- <object class="analysisView">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 3.0">
- <action name="add_alert"/>
- <action name="remove_all_alerts"/>
- </xsl:if>
- </object>
- </xsl:template>
- <xsl:template match="actions/object[@class='query']">
- <object class="query">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 3.0">
- <action name="add_alert"/>
- <action name="remove_all_alerts"/>
- </xsl:if>
- <!-- copy the custom action example always because if it is there it will not get copied because it will appear in incorrect format for copying-->
- <xsl:comment> Add custom actions here like so ...
-
- <action name="mycustomAction" type="custom">
- <icon>action_myaction.gif</icon>
- <url>http://www.yahoo.com</url>
- <label xml:lang="en">Custom Action English label</label>
- <label xml:lang="de">Custom Action German label</label>
- <tooltip xml:lang="en">Custom Action English tooltip</tooltip>
- <tooltip xml:lang="de">Custom Action German tooltip</tooltip>
- <objProperties encode="shift_jis">
- <property>defaultName</property>
- <property>searchPath</property>
- </objProperties>
- </action>
- </xsl:comment>
-
- </object>
- </xsl:template>
- <xsl:template match="actions/object[@class='report']">
- <object class="report">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 3.0">
- <action name="add_alert"/>
- <action name="remove_all_alerts"/>
- </xsl:if>
- <xsl:if test="$system_version < 4.4">
- <xsl:if test="./action[@name='edit']">
- <action name="edit_cbia"/>
- </xsl:if>
- </xsl:if>
- </object>
- </xsl:template>
- <xsl:template match="actions/object[@class='reportTemplate']">
- <object class="reportTemplate">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 4.4">
- <xsl:if test="./action[@name='edit']">
- <action name="edit_cbia"/>
- </xsl:if>
- </xsl:if>
- </object>
- </xsl:template>
- <xsl:template match="actions/object[@class='reportView']">
- <object class="reportView">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 3.0">
- <action name="add_alert"/>
- <action name="remove_all_alerts"/>
- </xsl:if>
- </object>
- </xsl:template>
- <xsl:template match="actions/object[@class='package']">
- <object class="package">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 3.0">
- <action name="shortcut"/>
- </xsl:if>
- <xsl:if test="$system_version < 4.0">
- <userInterface name="adaptiveAnalytics">
- <action name="traverse"/>
- <action name="launchAnalyticsTOC"/>
- </userInterface>
- <userInterface name="tm1Studio">
- <action name="traverse"/>
- </userInterface>
- </xsl:if>
- </object>
- </xsl:template>
- <xsl:template match="actions/object[@class='powerPlay8Report']">
- <object class="powerPlay8Report">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 3.1">
- <action name="run_once"/>
- <action name="schedule"/>
- </xsl:if>
- <xsl:if test="$system_version < 4.4">
- <xsl:if test="./action[@name='edit']">
- <action name="edit_cbia"/>
- </xsl:if>
- </xsl:if>
- </object>
- </xsl:template>
- <xsl:template match="actions/object[@class='interactiveReport']">
- <object class="interactiveReport">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 4.4">
- <xsl:if test="./action[@name='edit']">
- <action name="edit_cbia"/>
- </xsl:if>
- </xsl:if>
- </object>
- </xsl:template>
- <xsl:template match="actions/object[@class='powerPlay8ReportView']">
- <object class="powerPlay8ReportView">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 3.1">
- <action name="run_once"/>
- <action name="schedule"/>
- </xsl:if>
- </object>
- </xsl:template>
- <xsl:template match="actions/object[@class='dataMovementTask']">
- <object class="dataMovementTask">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 4.0">
- <action name="customview"/>
- </xsl:if>
- </object>
- </xsl:template>
- <!--========== end of update for base-object-actions =======================================================================-->
- <xsl:template match="param[@name='ui_graphics']">
- <!-- This adds new objects that did not exist before -->
- <param name="ui_graphics">
- <!-- Params added between 2.2 and 3.0 -->
- <xsl:if test="$system_version < 3.0">
- <param name="powerPlay8ReportView_suffix">_sub</param>
- <param name="agentHotlist_format">
- <format name="agentOutputHotlist" icon="event_list"/>
- </param>
- </xsl:if>
- <!-- Params added between 3.1 and 4.0 -->
- <xsl:if test="$system_version < 4.0">
- <param name="datamovementtaskalias_suffix">_sub</param>
- </xsl:if>
- <xsl:apply-templates/>
- </param>
- </xsl:template>
-
- <xsl:template match="param[@name='ui_graphics']/param[@name='document_format']">
- <!-- updating existing objects -->
- <param name="document_format">
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 2.1">
- <format name="application/vnd.coc-xl" icon="_excel"/>
- <format name="application/vnd.coc-wd" icon="_word"/>
- <format name="application/vnd.coc-pp" icon="_ppt"/>
- </xsl:if>
- <xsl:if test="$system_version < 3.0">
- <format name="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" icon="_excel_2007"/>
- <format name="application/vnd.openxmlformats-officedocument.wordprocessingml.document" icon="_word_2007"/>
- <format name="application/vnd.openxmlformats-officedocument.presentationml.presentation" icon="_ppt_2007"/>
- </xsl:if>
- <xsl:if test="$system_version < 4.0">
- <format name="application/vnd.coc-xl.2007.macroEnabled" icon="_excel_2007"/>
- <format name="application/vnd.coc-wd.2007.macroEnabled" icon="_word_2007"/>
- <format name="application/vnd.coc-pp.2007.macroEnabled" icon="_ppt_2007"/>
- </xsl:if>
- <xsl:if test="$system_version < 4.1"> <!-- add format for document object 2010, uses same icon as 2007 -->
- <format name="application/vnd.ms-excel.sheet.binary.macroEnabled.12" icon="_excel_2007"/>
- <format name="application/vnd.ms-excel.sheet.macroEnabled.12" icon="_excel_2007"/>
- </xsl:if>
- </param>
- </xsl:template>
-
- <xsl:template match="param[@name='ui_graphics']/param[@name='output_format']">
- <param name='output_format'>
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 4.2">
- <format name="xlsxData" icon="result_excel_2007"/>
- </xsl:if>
- <xsl:if test="$system_version < 3.0">
- <format name="spreadsheetML" icon="result_excel_2007"/>
- </xsl:if>
- </param>
- </xsl:template>
-
- <!-- == Update ui_objects' attributes add/remove/change ========================================= -->
- <!-- Upgrade defintion of packeageConfiguration to remove deprecated attribute icon-->
- <xsl:template match="object[@class='packageConfiguration']" mode="cleanUpUIObjects">
- <object class="packageConfiguration" container="F"/>
- </xsl:template>
-
-
- <xsl:template match="object[@class='pageDefinition']" mode="cleanUpUIObjects">
- <object>
- <xsl:copy-of select="@*"/>
- <xsl:if test="$system_version < 3.0">
- <attribute name="icon">paper_size</attribute>
- </xsl:if>
- </object>
- </xsl:template>
- <!-- Update attribute of 3.0 objects -->
- <xsl:template match="param[@name='ui_objects']/object[@class='archiveLocation']" mode="cleanUpUIObjects">
- <object>
- <xsl:copy-of select="@*"/>
- <xsl:if test="$system_version = 3.0">
- <xsl:attribute name="icon">file_system_location</xsl:attribute>
- </xsl:if>
- </object>
- </xsl:template>
-
- <!-- Update attribute for 4.0 -->
- <xsl:template match="param[@name='ui_objects']/object[@class='report']" mode="cleanUpUIObjects">
- <xsl:choose>
- <xsl:when test="$system_version < 4.0">
- <object class="report" icon="report" container="F" runnable="T"> <!-- updating icon from rs_report to report -->
- <uiprofile name="professional" icon="rs_report"/>
- <uiprofile name="default" icon="rs_report"/>
- </object>
- </xsl:when>
- <xsl:otherwise>
- <object>
- <xsl:copy-of select="@*"/>
- <xsl:copy-of select="*"/>
- </object>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="param[@name='ui_objects']/object[@class='report']" mode="cleanUpUIObjects">
- <xsl:choose>
- <xsl:when test="$system_version < 4.3">
- <object class="interactiveReport" icon="interactive_report" container="F" runnable="T">
- <uiprofile name="bua" icon="rs_report_bua"/>
- <uiprofile name="professional" icon="rs_report"/>
- <uiprofile name="default" icon="rs_report"/>
- </object>
- </xsl:when>
- <xsl:otherwise>
- <object>
- <xsl:copy-of select="@*"/>
- <xsl:copy-of select="*"/>
- </object>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="param[@name='ui_objects']/object[@class='interactiveReport']" mode="cleanUpUIObjects">
- <xsl:choose>
- <xsl:when test="$system_version < 4.3">
- <object class="interactiveReport" icon="interactive_report" container="F" runnable="T">
- <uiprofile name="bua" icon="rs_report_bua"/>
- <uiprofile name="professional" icon="rs_report"/>
- <uiprofile name="default" icon="rs_report"/>
- </object>
- </xsl:when>
- <xsl:otherwise>
- <object>
- <xsl:copy-of select="@*"/>
- <xsl:copy-of select="*"/>
- </object>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="param[@name='ui_objects']/object[@class='package']" mode="cleanUpUIObjects">
- <object>
- <xsl:copy-of select="@*"/>
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 4.0">
- <userInterface name="adaptiveAnalytics" icon="analytic_package"/>
- <userInterface name="tm1Studio" icon="tm1_package"/>
- </xsl:if>
- </object>
- </xsl:template>
- <!-- added new launchableType in 4.1 -->
- <xsl:template match="param[@name='ui_objects']/object[@class='launchable']" mode="cleanUpUIObjects">
- <object>
- <xsl:copy-of select="@*"/>
- <xsl:copy-of select="*"/>
- <xsl:if test="$system_version < 4.1">
- <launchableType name="application/vnd.ibm.cognos.ev.canvas" icon="launchable_xa_canvas"/>
- </xsl:if>
- </object>
- </xsl:template>
-
- <!-- update model attribute container to 'T' if it is false as it is F in 4.0 but T in 4.1 -->
- <xsl:template match="param[@name='ui_objects']/object[@class='model' and @container='F']" mode="cleanUpUIObjects">
- <object>
- <xsl:copy-of select="@*[name()!='container']"/>
- <xsl:attribute name="container">T</xsl:attribute>
- </object>
- </xsl:template>
- <!-- ====================== End of update of ui_objects =============================================== -->
- <xsl:template name="genRunnableActions">
- <xsl:param name="objectName"/>
- <object class="{$objectName}">
- <action name="run_options"/>
- <action name="schedule"/>
- <action name="run_history"/>
- <action name="run_once"/>
- </object>
- </xsl:template>
- <!-- Copy everything else in ui-object-->
- <xsl:template match="*|comment()" mode="cleanUpUIObjects">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- <!-- Copy everything else -->
- <xsl:template match="*|comment()">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|