RSUpgradeChart.xsl 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: rspecupgrade
  5. (C) Copyright IBM Corp. 2005, 2010
  6. US Government Users Restricted Rights - Use, duplication or disclosure
  7. restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <!-- COPYRIGHT_DATA { 'YEAR':[2005, 2009], 'RELEASE':['colorado_wave1'], 'VISIBLE':'YES', 'COMPONENT':'rspecupgrade' }-->
  10. <!--All lines above the COPYRIGHT_DATA line will be replaced when copyright notices are generated. -->
  11. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:baltic="http://developer.cognos.com/schemas/report/1/" xmlns="http://developer.cognos.com/schemas/report/2.0/" xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common" xmlns:xalan="http://xml.apache.org/xalan" xmlns:java="http://xml.apache.org/xalan/java" extension-element-prefixes="xalan date exsl" exclude-result-prefixes="xalan java baltic date exsl">
  12. <xsl:template match="baltic:chart">
  13. <xsl:variable name="v_chart" select="*[contains(local-name(),'Chart')]"/>
  14. <xsl:variable name="v_chartType" select="local-name($v_chart)"/>
  15. <xsl:choose>
  16. <!-- areaChart -->
  17. <xsl:when test="$v_chartType='areaChart'">
  18. <xsl:choose>
  19. <xsl:when test="$v_chart/@standardType='3DAxis'">
  20. <xsl:call-template name="threeDAreaChartTemplate"/>
  21. </xsl:when>
  22. <xsl:otherwise>
  23. <xsl:call-template name="areaChartTemplate"/>
  24. </xsl:otherwise>
  25. </xsl:choose>
  26. </xsl:when>
  27. <!-- barChart -->
  28. <xsl:when test="$v_chartType='barChart'">
  29. <xsl:choose>
  30. <xsl:when test="$v_chart/@standardType='3DAxis'">
  31. <xsl:call-template name="threeDColumnChartTemplate"/>
  32. <!-- bar becomes column in 3d -->
  33. </xsl:when>
  34. <xsl:otherwise>
  35. <xsl:call-template name="barChartTemplate">
  36. <xsl:with-param name="p_chartType" select="'barChart'"/>
  37. </xsl:call-template>
  38. </xsl:otherwise>
  39. </xsl:choose>
  40. </xsl:when>
  41. <!-- columnChart -->
  42. <xsl:when test="$v_chartType='columnChart'">
  43. <xsl:choose>
  44. <xsl:when test="$v_chart/@standardType='3DAxis'">
  45. <xsl:call-template name="threeDColumnChartTemplate"/>
  46. </xsl:when>
  47. <xsl:otherwise>
  48. <xsl:call-template name="barChartTemplate">
  49. <xsl:with-param name="p_chartType" select="'columnChart'"/>
  50. </xsl:call-template>
  51. </xsl:otherwise>
  52. </xsl:choose>
  53. </xsl:when>
  54. <!-- combinationChart -->
  55. <xsl:when test="$v_chartType='combinationChart'">
  56. <xsl:choose>
  57. <xsl:when test="$v_chart/@standardType='3DAxis'">
  58. <xsl:call-template name="combinationThreeDChartTemplate"/>
  59. </xsl:when>
  60. <xsl:otherwise>
  61. <xsl:call-template name="combinationChartTemplate"/>
  62. </xsl:otherwise>
  63. </xsl:choose>
  64. </xsl:when>
  65. <!-- lineChart -->
  66. <xsl:when test="$v_chartType='lineChart'">
  67. <xsl:choose>
  68. <xsl:when test="$v_chart/@standardType='3DAxis'">
  69. <xsl:call-template name="threeDLineChartTemplate"/>
  70. </xsl:when>
  71. <xsl:otherwise>
  72. <xsl:call-template name="lineChartTemplate"/>
  73. </xsl:otherwise>
  74. </xsl:choose>
  75. </xsl:when>
  76. <!-- bubbleChart -->
  77. <xsl:when test="$v_chartType='bubbleChart'">
  78. <xsl:call-template name="bubbleChartTemplate"/>
  79. </xsl:when>
  80. <!-- paretoChart -->
  81. <xsl:when test="$v_chartType='paretoChart'">
  82. <xsl:call-template name="paretoChartTemplate"/>
  83. </xsl:when>
  84. <!-- pieChart -->
  85. <xsl:when test="$v_chartType='pieChart'">
  86. <xsl:call-template name="pieChartTemplate"/>
  87. </xsl:when>
  88. <!-- polarChart -->
  89. <xsl:when test="$v_chartType='polarChart'">
  90. <xsl:call-template name="polarChartTemplate"/>
  91. </xsl:when>
  92. <!-- quadrantChart -->
  93. <xsl:when test="$v_chartType='quadrantChart'">
  94. <xsl:call-template name="quadrantChartTemplate"/>
  95. </xsl:when>
  96. <!-- radarChart -->
  97. <xsl:when test="$v_chartType='radarChart'">
  98. <xsl:call-template name="radarChartTemplate"/>
  99. </xsl:when>
  100. <!-- progressiveChart -->
  101. <xsl:when test="$v_chartType='progressiveChart'">
  102. <xsl:call-template name="progressiveChartTemplate"/>
  103. </xsl:when>
  104. <!-- scatterChart -->
  105. <xsl:when test="$v_chartType='scatterChart'">
  106. <xsl:call-template name="scatterChartTemplate"/>
  107. </xsl:when>
  108. </xsl:choose>
  109. </xsl:template>
  110. </xsl:stylesheet>