RSUpgradePolarChart.xsl 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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="polarChartTemplate">
  13. <polarChart>
  14. <xsl:call-template name="chartMarkerTemplate">
  15. <xsl:with-param name="p_chart" select="baltic:polarChart"/>
  16. <xsl:with-param name="p_defaultShape" select="'series'"/>
  17. </xsl:call-template>
  18. <xsl:call-template name="standardChartAttributesTemplate"/>
  19. <xsl:call-template name="pointChartShowValuesTemplate"/>
  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="axisPolarTemplate"/>
  25. <xsl:call-template name="pointsAndPointClustersTemplate"/>
  26. <radialMeasure refDataItem="{baltic:polarChart/baltic:radiusMeasure/@refMember}"/>
  27. <angularMeasure refDataItem="{baltic:polarChart/baltic:arcMeasure/@refMember}"/>
  28. <xsl:call-template name="commonChartTemplate"/>
  29. <xsl:call-template name="pointChartMarkerTemplate"/>
  30. <xsl:call-template name="commonPointChartBaselineTemplate">
  31. <xsl:with-param name="chartType" select="'polarChart'"/>
  32. </xsl:call-template>
  33. </polarChart>
  34. </xsl:template>
  35. <xsl:template name="axisPolarTemplate">
  36. <xsl:for-each select="baltic:axis">
  37. <xsl:variable name="v_axisPosition" select="@axisPosition"/>
  38. <xsl:choose>
  39. <xsl:when test="$v_axisPosition = 'X'">
  40. <numericalAxisAngular>
  41. <xsl:call-template name="copyAxisAttsTemplate"/>
  42. <xsl:call-template name="axisTitleTemplate"/>
  43. <!--can never turn off the gridlines in Baltic, therefore carry over to Bering-->
  44. <xsl:call-template name="gridlinesTemplate">
  45. <xsl:with-param name="p_chart" select=".."/>
  46. <xsl:with-param name="p_mandatory" select="'true'"/>
  47. </xsl:call-template>
  48. <xsl:call-template name="mergeStylesFromAxisAndAxisLabelsTemplate"/>
  49. </numericalAxisAngular>
  50. </xsl:when>
  51. <xsl:when test="$v_axisPosition = 'Y1'">
  52. <numericalAxisRadial>
  53. <xsl:call-template name="copyAxisAttsTemplate"/>
  54. <xsl:call-template name="axisTitleTemplate"/>
  55. <xsl:call-template name="gridlinesTemplate">
  56. <xsl:with-param name="p_chart" select=".."/>
  57. </xsl:call-template>
  58. <xsl:call-template name="mergeStylesFromAxisAndAxisLabelsTemplate"/>
  59. </numericalAxisRadial>
  60. </xsl:when>
  61. </xsl:choose>
  62. </xsl:for-each>
  63. </xsl:template>
  64. </xsl:stylesheet>