system_upgrade.xslt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: qs
  5. (C) Copyright IBM Corp. 2001, 2017
  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. <!-- Update the system version -->
  15. <!-- =================================================================================== -->
  16. <xsl:template match="/">
  17. <xsl:comment>
  18. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  19. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  20. </xsl:comment>
  21. <system version="3.0">
  22. <xsl:apply-templates select="system/child::node()"/>
  23. </system>
  24. </xsl:template>
  25. <!-- Remove deprecated parameters -->
  26. <!-- =================================================================================== -->
  27. <xsl:template match="param[@name='webcontent']"/>
  28. <xsl:template match="param[@name='contentLocale']"/>
  29. <xsl:template match="param[@name='timeZone']"/>
  30. <xsl:template match="param[@name='timeFormat']"/>
  31. <xsl:template match="param[@name='dateFormatShort']"/>
  32. <xsl:template match="param[@name='dateFormatLong']"/>
  33. <xsl:template match="param[@name='availableRunLocales']"/>
  34. <xsl:template match="param[@name='ui_objects']"/>
  35. <xsl:template match="param[@name='delimiters']"/>
  36. <xsl:template match="param[@name='CCHome']"/>
  37. <xsl:template match="param[@name='OEMmessages']"/>
  38. <!-- Copy everything else -->
  39. <!--
  40. We don't currently have any comments we want to copy over, remove them explicitly
  41. <xsl:template match="*|comment()">
  42. -->
  43. <xsl:template match="*">
  44. <xsl:copy>
  45. <xsl:copy-of select="@*"/>
  46. <xsl:apply-templates/>
  47. </xsl:copy>
  48. </xsl:template>
  49. </xsl:stylesheet>