RSUpgradeLineChart.xsl 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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="lineChartTemplate">
  13. <combinationChart>
  14. <xsl:call-template name="depthTemplate"/>
  15. <xsl:call-template name="standardChartAttributesTemplate"/>
  16. <xsl:call-template name="generateMasterDetailLinks2">
  17. <xsl:with-param name="p_frame" select="."/>
  18. </xsl:call-template>
  19. <xsl:call-template name="legendTemplate"/>
  20. <xsl:call-template name="axisTemplate"/>
  21. <combinationChartTypes>
  22. <line>
  23. <xsl:variable name="v_depth">
  24. <xsl:call-template name="getChartDepth"/>
  25. </xsl:variable>
  26. <xsl:if test="$v_depth = '0' or $v_depth = ''">
  27. <xsl:attribute name="showBorders">true</xsl:attribute>
  28. </xsl:if>
  29. <xsl:call-template name="chartMarkerTemplate">
  30. <xsl:with-param name="p_chart" select="baltic:lineChart"/>
  31. <xsl:with-param name="p_defaultShape" select="'square'"/>
  32. </xsl:call-template>
  33. <xsl:call-template name="processAttsTemplate">
  34. <xsl:with-param name="p_cur" select="baltic:lineChart"/>
  35. </xsl:call-template>
  36. <xsl:call-template name="valueTypeTemplate">
  37. <xsl:with-param name="p_chart" select="baltic:lineChart"/>
  38. </xsl:call-template>
  39. <xsl:call-template name="chartLevelTemplate">
  40. <xsl:with-param name="p_mode" select="'rowEdge'"/>
  41. <xsl:with-param name="p_testMoveMeasureToColEdge" select="'yes'"/>
  42. </xsl:call-template>
  43. </line>
  44. </combinationChartTypes>
  45. <xsl:call-template name="commonClustersTemplateWithMeasureOnColEdgeCheck"/>
  46. <xsl:call-template name="defaultMeasureTemplate">
  47. <xsl:with-param name="p_testByCount" select="'no'"/>
  48. </xsl:call-template>
  49. <xsl:call-template name="commonChartTemplate"/>
  50. <xsl:call-template name="commonChartMarkerTemplate"/>
  51. <xsl:call-template name="commonChartBaselineTemplate">
  52. <xsl:with-param name="chartType" select="'lineChart'"/>
  53. <xsl:with-param name="standardType" select="baltic:lineChart/@standardType"/>
  54. </xsl:call-template>
  55. </combinationChart>
  56. </xsl:template>
  57. </xsl:stylesheet>