RSUpgradeBubbleChart.xsl 3.6 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="bubbleChartTemplate">
  13. <bubbleChart showBorders="true">
  14. <xsl:call-template name="chartMarkerTemplate">
  15. <xsl:with-param name="p_chart" select="baltic:bubbleChart"/>
  16. <xsl:with-param name="p_addDataPointSize" select="'false'"/>
  17. </xsl:call-template>
  18. <xsl:call-template name="standardChartAttributesTemplate"/>
  19. <xsl:call-template name="bubbleChartShowValuesTemplate"/>
  20. <xsl:call-template name="generateMasterDetailLinks2">
  21. <xsl:with-param name="p_frame" select="."/>
  22. </xsl:call-template>
  23. <xsl:call-template name="legendTemplate"/>
  24. <xsl:call-template name="axisBubbleScatterTemplate"/>
  25. <xsl:call-template name="pointsAndPointClustersTemplate"/>
  26. <bubbleMeasure refDataItem="{baltic:bubbleChart/baltic:sizeMeasure/@refMember}"/>
  27. <pointXMeasure refDataItem="{baltic:bubbleChart/baltic:xMeasure/@refMember}"/>
  28. <pointYMeasure refDataItem="{baltic:bubbleChart/baltic:yMeasure/@refMember}"/>
  29. <xsl:call-template name="commonChartTemplate"/>
  30. <xsl:call-template name="pointChartMarkerTemplate"/>
  31. <xsl:call-template name="commonPointChartBaselineTemplate">
  32. <xsl:with-param name="chartType" select="'bubbleChart'"/>
  33. </xsl:call-template>
  34. </bubbleChart>
  35. </xsl:template>
  36. <xsl:template name="axisBubbleScatterTemplate">
  37. <xsl:for-each select="baltic:axis">
  38. <xsl:variable name="v_axisPosition" select="@axisPosition"/>
  39. <xsl:choose>
  40. <xsl:when test="$v_axisPosition = 'X'">
  41. <numericalAxisX>
  42. <xsl:call-template name="copyAxisAttsTemplate"/>
  43. <xsl:call-template name="axisTitleTemplate"/>
  44. <xsl:call-template name="gridlinesTemplate">
  45. <xsl:with-param name="p_chart" select=".."/>
  46. </xsl:call-template>
  47. <xsl:call-template name="mergeStylesFromAxisAndAxisLabelsTemplate"/>
  48. </numericalAxisX>
  49. </xsl:when>
  50. <xsl:when test="$v_axisPosition = 'Y1'">
  51. <numericalAxisY>
  52. <xsl:call-template name="copyAxisAttsTemplate"/>
  53. <xsl:call-template name="axisTitleTemplate"/>
  54. <xsl:call-template name="gridlinesTemplate">
  55. <xsl:with-param name="p_chart" select=".."/>
  56. </xsl:call-template>
  57. <xsl:call-template name="mergeStylesFromAxisAndAxisLabelsTemplate"/>
  58. </numericalAxisY>
  59. </xsl:when>
  60. </xsl:choose>
  61. </xsl:for-each>
  62. </xsl:template>
  63. <xsl:template name="bubbleChartShowValuesTemplate">
  64. <xsl:if test="*[contains(local-name(),'Chart')]/@showValues">
  65. <xsl:attribute name="showBubblePointValues">valuesAndLabels</xsl:attribute>
  66. </xsl:if>
  67. <xsl:if test="*[contains(local-name(),'Chart')]/@showLabels">
  68. <xsl:attribute name="showPointValuesForPoints">valuesOnly</xsl:attribute>
  69. </xsl:if>
  70. </xsl:template>
  71. </xsl:stylesheet>