charts.xsl 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="2.0"
  3. xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
  4. xmlns:p5gnuplot="http://biuro.biall-net.pl/WPS_Functions/graph_gnuplot"
  5. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  6. <xsl:import href="linechart.xsl" />
  7. <xsl:import href="barchart.xsl" />
  8. <xsl:import href="piechart.xsl" />
  9. <xsl:output indent="yes"/>
  10. <!--<xsl:template mode="barChart" match="barChart">
  11. <!-\-<xsl:copy>-\->
  12. <xsl:apply-templates mode="barChart"/>
  13. <!-\-</xsl:copy>-\->
  14. </xsl:template>-->
  15. <xsl:template mode="barChart" match="row">
  16. <!--<xsl:call-template name="barChart">
  17. <xsl:with-param name="xData" select="xData"/>
  18. <xsl:with-param name="yData" select="yData"/>
  19. </xsl:call-template>-->
  20. </xsl:template>
  21. <xsl:template mode="barChart" match="svg-container">
  22. <xsl:copy>
  23. <xsl:copy-of select="@*"/>
  24. <xsl:apply-templates mode="#current"/>
  25. </xsl:copy>
  26. </xsl:template>
  27. <xsl:template mode="barChart" match="*">
  28. </xsl:template>
  29. <xsl:template mode="barChart" match="barChart">
  30. <xsl:call-template name="p5gnuplot:SvgCharts4Xsl" >
  31. <xsl:with-param name="xData.name" select="*[relation_DateRangeElements]/nazwa"/>
  32. <xsl:with-param name="xData.postition" select="*[relation_DateRangeElements]/position()"/><!-- BI_audit_KRS/position() -->
  33. <!--<xsl:with-param name="yData" select="BI_audit_KRS/relation_DateRangeElements/leadingTimeDate-From"/>
  34. <xsl:with-param name="y2Data" select="BI_audit_KRS/relation_DateRangeElements/leadingTimeDate-To"/>-->
  35. <!--<xsl:with-param name="yData" select="BI_audit_KRS/relation_DateRangeElements"/>-->
  36. <xsl:with-param name="yData.attr" select="*[relation_DateRangeElements]/relation_DateRangeElements/system_cache__dita:year-timestamp-day(@leadingTimeDate-From)"/>
  37. <xsl:with-param name="yData.attr.title" select="*[relation_DateRangeElements]/relation_DateRangeElements/@leadingTimeDate-From"/>
  38. <!--<xsl:with-param name="y2Data" select="BI_audit_KRS/relation_DateRangeElements"/>-->
  39. <xsl:with-param name="y2Data.attr" select="*[relation_DateRangeElements]/relation_DateRangeElements/system_cache__dita:year-timestamp-day(@leadingTimeDate-To)"/>
  40. <xsl:with-param name="y2Data.attr.title" select="*[relation_DateRangeElements]/relation_DateRangeElements/@leadingTimeDate-To"/>
  41. </xsl:call-template>
  42. </xsl:template>
  43. </xsl:stylesheet>