12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?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).
- -->
- <!--
- ===============================================================================================
- Generated Runtime configuration tool UI file (English).
- ===============================================================================================
- -->
- <xsl:stylesheet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <xsl:variable name="connectionType" select="/root/env/param[@name='m_connection_type']"/>
- <xsl:if test="not($connectionType) or /root/datasources/datasource[value=$connectionType]/supportsCommandBlocks = 'true'">
- <xts:transform src="transforms/portal/dataSource/processCommandBlocks.xslt" processor="XSLT">
- <input>
- <currentCommands>
- <!-- need to find out where cm queryReply is. -->
- <xsl:choose>
- <!-- property connection dialog -->
- <xsl:when test="/root/connection/*[local-name()='queryResponse']/*[local-name()='dataSourceConnection']//*[local-name()='openConnectionCommands' or local-name()='openSessionCommands' or local-name()='closeConnectionCommands' or local-name()='closeSessionCommands' ]">
- <xsl:copy-of select="/root/connection/*[local-name()='queryResponse']/*[local-name()='dataSourceConnection']/*"/>
- </xsl:when>
- <xsl:when test="/root/dataSource/*[local-name()='queryResponse']/*[local-name()='dataSource']//*[local-name()='openConnectionCommands' or local-name()='openSessionCommands' or local-name()='closeConnectionCommands' or local-name()='closeSessionCommands' ]">
- <xsl:copy-of select="/root/dataSource/*[local-name()='queryResponse']/*[local-name()='dataSource']/*"/>
- </xsl:when>
- </xsl:choose>
- </currentCommands>
- <parentCommands>
- <!-- need to find out where cm queryReply is. -->
- <xsl:choose>
- <!-- new dataSource/dataSourceConnection wizard -->
- <xsl:when test="/root/parentDataSource/*[local-name()='queryResponse']/*[local-name()='dataSource']//*[local-name()='openConnectionCommands' or local-name()='openSessionCommands' or local-name()='closeConnectionCommands' or local-name()='closeSessionCommands' ]">
- <xsl:copy-of select="/root/parentDataSource/*[local-name()='queryResponse']/*[local-name()='dataSource']/*"/>
- </xsl:when>
- <!-- property connection dialog -->
- <xsl:when test="/root/connection/*[local-name()='queryResponse']/*[local-name()='dataSourceConnection']/*[local-name()='parent']/*[local-name()='dataSource']//*[local-name()='openConnectionCommands' or local-name()='openSessionCommands' or local-name()='closeConnectionCommands' or local-name()='closeSessionCommands' ]">
- <xsl:copy-of select="/root/connection/*[local-name()='queryResponse']/*[local-name()='dataSourceConnection']/*[local-name()='parent']/*[local-name()='dataSource']/*"/>
- </xsl:when>
- </xsl:choose>
- </parentCommands>
- <env>
- <xsl:copy-of select="/root/env/*"/>
- </env>
- <commandBlocks>
- <command>
- <propertyName>openConnectionCommands</propertyName>
- <displayString><xsl:text><xts:string id="IDS_PROP_CONN_OPEN_CONNECTION_COMMAND"/></xsl:text></displayString>
- </command>
- <command>
- <propertyName>openSessionCommands</propertyName>
- <displayString><xsl:text><xts:string id="IDS_PROP_CONN_OPEN_SESSION_COMMAND"/></xsl:text></displayString>
- </command>
- <command>
- <propertyName>closeSessionCommands</propertyName>
- <displayString><xsl:text><xts:string id="IDS_PROP_CONN_CLOSE_SESSION_COMMAND"/></xsl:text></displayString>
- </command>
- <command>
- <propertyName>closeConnectionCommands</propertyName>
- <displayString><xsl:text><xts:string id="IDS_PROP_CONN_CLOSE_CONNECTION_COMMAND"/></xsl:text></displayString>
- </command>
- </commandBlocks>
- </input>
- </xts:transform>
- </xsl:if>
- </xts:append>
-
- <!-- cleanup the env, should always do this even when we're not dealing with an oracle connection -->
- <xts:delete select="/root/env/param[starts-with(@name,'m_display_cbp_') or starts-with(@name,'m_acquired_') or starts-with(@name,'list_checkbox_') or starts-with(@name,'m_cbp_') or starts-with(@name,'changed_m_cbp_')]"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
|