system_upgrade.xslt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cogadmin
  5. (C) Copyright IBM Corp. 2005, 2010
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  13. <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
  14. <xsl:variable name="system_version">
  15. <xsl:choose>
  16. <xsl:when test="string(/system/@version) = ''">
  17. <xsl:text>1.0</xsl:text>
  18. </xsl:when>
  19. <xsl:otherwise>
  20. <xsl:value-of select="/system/@version"/>
  21. </xsl:otherwise>
  22. </xsl:choose>
  23. </xsl:variable>
  24. <!-- Update the system version -->
  25. <!-- =================================================================================== -->
  26. <xsl:template match="/">
  27. <xsl:comment>
  28. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  29. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  30. </xsl:comment>
  31. <system version="3.1">
  32. <xsl:if test="$system_version &lt; 3.1">
  33. <xsl:call-template name="insertNewParams_for_3_1"/>
  34. </xsl:if>
  35. <xsl:apply-templates select="system/child::node()"/>
  36. </system>
  37. </xsl:template>
  38. <!-- New Cognos 8 params introduced in version 3.1 -->
  39. <!-- =================================================================================== -->
  40. <xsl:template name="insertNewParams_for_3_1">
  41. <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>
  42. <param name="dispatcher_filter_dropdown_limit">6</param>
  43. </xsl:template>
  44. <!-- Copy everything else -->
  45. <xsl:template match="*|comment()">
  46. <xsl:copy>
  47. <xsl:copy-of select="@*"/>
  48. <xsl:apply-templates/>
  49. </xsl:copy>
  50. </xsl:template>
  51. </xsl:stylesheet>