123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cogadmin
- (C) Copyright IBM Corp. 2005, 2010
- 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>1.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>
- 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="3.1">
- <xsl:if test="$system_version < 3.1">
- <xsl:call-template name="insertNewParams_for_3_1"/>
- </xsl:if>
- <xsl:apply-templates select="system/child::node()"/>
- </system>
- </xsl:template>
- <!-- New Cognos 8 params introduced in version 3.1 -->
- <!-- =================================================================================== -->
- <xsl:template name="insertNewParams_for_3_1">
- <xsl:comment>Maximum number of items that will appear as a drop-down for the dispatcher filter. If there are more dispatchers in the system than this number then a selection dialog will be used instead.</xsl:comment>
- <param name="dispatcher_filter_dropdown_limit">6</param>
- </xsl:template>
- <!-- Copy everything else -->
- <xsl:template match="*|comment()">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|