RSUpgradeBarChart.xsl 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 name="barChartTemplate">
  13. <xsl:param name="p_chartType"/>
  14. <combinationChart>
  15. <xsl:attribute name="orientation">
  16. <xsl:choose>
  17. <xsl:when test="$p_chartType = 'columnChart'">vertical</xsl:when>
  18. <xsl:when test="$p_chartType = 'barChart'">horizontal</xsl:when>
  19. </xsl:choose>
  20. </xsl:attribute>
  21. <xsl:call-template name="depthTemplate"/>
  22. <xsl:call-template name="standardChartAttributesTemplate"/>
  23. <xsl:call-template name="generateMasterDetailLinks2">
  24. <xsl:with-param name="p_frame" select="."/>
  25. </xsl:call-template>
  26. <xsl:call-template name="legendTemplate"/>
  27. <xsl:call-template name="axisTemplate"/>
  28. <combinationChartTypes>
  29. <bar>
  30. <xsl:choose>
  31. <xsl:when test="$p_chartType = 'columnChart'">
  32. <xsl:apply-templates select="baltic:columnChart"/>
  33. </xsl:when>
  34. <xsl:when test="$p_chartType = 'barChart'">
  35. <xsl:apply-templates select="baltic:barChart"/>
  36. </xsl:when>
  37. </xsl:choose>
  38. <xsl:call-template name="chartLevelTemplate">
  39. <xsl:with-param name="p_mode" select="'rowEdge'"/>
  40. </xsl:call-template>
  41. </bar>
  42. </combinationChartTypes>
  43. <xsl:call-template name="commonClustersTemplateWithMeasureOnColEdgeCheck"/>
  44. <xsl:call-template name="defaultMeasureTemplate">
  45. <xsl:with-param name="p_testByCount" select="'no'"/>
  46. </xsl:call-template>
  47. <xsl:call-template name="commonChartTemplate"/>
  48. <xsl:call-template name="commonChartMarkerTemplate"/>
  49. <xsl:call-template name="commonChartBaselineTemplate">
  50. <xsl:with-param name="chartType" select="$p_chartType"/>
  51. <xsl:with-param name="standardType">
  52. <xsl:choose>
  53. <xsl:when test="$p_chartType = 'columnChart'"><xsl:value-of select="baltic:columnChart/@standardType"/></xsl:when>
  54. <xsl:when test="$p_chartType = 'barChart'"><xsl:value-of select="baltic:barChart/@standardType"/></xsl:when>
  55. </xsl:choose>
  56. </xsl:with-param>
  57. </xsl:call-template>
  58. </combinationChart>
  59. </xsl:template>
  60. <xsl:template match="*[local-name() = 'columnChart' or local-name() = 'barChart']">
  61. <xsl:call-template name="processAttsTemplate">
  62. <xsl:with-param name="p_cur" select="."/>
  63. </xsl:call-template>
  64. <xsl:call-template name="valueTypeTemplate">
  65. <xsl:with-param name="p_chart" select="."/>
  66. </xsl:call-template>
  67. <xsl:if test="@connectLines = 'true'">
  68. <connectLines/>
  69. </xsl:if>
  70. </xsl:template>
  71. </xsl:stylesheet>