XML Extensions - Pie Chart

A pie chart is more involved than the bar chart, since trigonometry is involved. From the data side, though, there is little difference between a pie chart and a simple bar graph, so the COBOL program (piechart.cbl) is similar to the Bar Chart example. The XSLT stylesheet, piechart.xsl, is adapted from several examples found on the web.

Note: For this stylesheet to work, you need trignm.xsl which can be found at http://fxsl.sourceforge.net. This example was tested with the version of trignm.xsl found in fxsl-MS-1.1.zip (see the download area of the referenced site). FXSL has an accumulation of XSLT knowledge.