JFCTransformer acts as a maker of business charts whose description is provided using XML. The output of such a transformation is SVG, which could later be serialized as PNG or JPEG. In addition, ChartTransformer can generate a bitmap image (PNG, JPEG) and save it to a file for later re-use.
<map:transformer name="chart"
src="it.ipzs.charts.JFCTransformer"/>
<map:match name="wildcard" pattern="chart-minimal.svg">
<map:generate type="file" src="minmal.xml"/>
<map:transform type="chart"/>
<map:serialize type="xml"/>
</map:match >
Warning This pipeline generates SVG, hence a plug-in must be installed in your browser to see it properly
The transformation stage can take either 0 or three parameters:
JFCSerializer acts as a maker of business charts whose description is provided using XML. The output of such a transformation is PNG or JPEG.
<map:serializer name="chart-jpeg"
src="it.ipzs.charts.JFCSerializer"
mime-type="image/jpeg"/>
<map:match name="wildcard" pattern="chart-minimal.jpg">
<map:generate type="file" src="minimal.xml"/>
<map:serialize type="chart-jpeg"/>
</map:match >