| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:p5gnuplot="http://biuro.biall-net.pl/WPS_Functions/graph_gnuplot"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
-
-
- <xsl:param name="uuid" required="yes"/>
- <xsl:param name="population.dat" required="yes"/>
- <xsl:param name="barchart.gnuplot" required="yes"/>
- <xsl:param name="barchart.png" required="yes"/>
- <xsl:param name="dstfile" required="yes"/>
- <xsl:param name="ditadir" required="yes"/>
-
- <!-- example input xml
- $graph_to_image.example
- -->
-
- <!-- example output fileindex
-
- <graph x="1" y="1">
- <title>some title</title>
- <file>/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/graph_gnuplot/temp/graph_to_image/{$uuid}/image-1-1.png</file>
- </graph>
- -->
-
- <xsl:variable name="graph_to_image.example">
- <system_cache__appinfo:graph_to_image.population.dat>
- <population.dat rowname="Adelaide">1.277174</population.dat>
- <population.dat rowname="Canberra">Canberra</population.dat>
- <population.dat rowname="Canberra">0.374658</population.dat>
- </system_cache__appinfo:graph_to_image.population.dat>
- </xsl:variable>
-
- <!-- example from web http://timmurphy.org/2014/08/11/creating-bar-charts-with-gnuplot/
-
-
- plot <data_file> using <label_column>:xtic(<value_column>) with boxes
-
- barchart.gnuplot:
- set terminal pngcairo font "arial,10" size 500,500
- set output 'barchart.png'
- set boxwidth 0.75
- set style fill solid
- set title "Population of Australian cities (millions), as of June 2012"
- plot "population.dat" using 2:xtic(1) with boxes
-
- population.dat
- Adelaide 1.277174
- Brisbane 2.189878
- Canberra 0.374658
- Darwin 0.131678
- Hobart 0.216959
- Melbourne 4.246345
- Sydney 4.667283
-
- -->
-
-
- <xsl:template match="system_cache__appinfo:graph_to_image.population.dat">
-
- </xsl:template>
-
-
- </xsl:stylesheet>
|