http://edward/dfti/xmlhits.php?artist=Oasisand save the result as an XML file.
Scalable Vector Graphics (SVG) is an XML based graphics format which uses tags to describe the graphics. For example:
<svg width="200px" height="400px" xmlns="http://www.w3.org/2000/svg">
<style type='text/css'>
rect{fill:red; stroke:blue}
</style>
<rect x="0" y="300" width="50" height="100" />
<rect x="50" y="200" width="50" height="200" />
<rect x="100" y="350" width="50" height="50" />
<rect x="150" y="250" width="50" height="150" />
</svg>
Write an XSLT stylesheet to convert this data to an SVG bar graph:
<?xml version='1.0'?> <?xml-stylesheet type='text/xsl' href='toSVG1.xsl'?> <sales> <sale>1000</sale> <sale>1500</sale> <sale>2000</sale> <sale>5000</sale> </sales>The bar graph should have a width of 200 pixels and height of 400 pixels. The attributes of each bar on the graph should be:
<xsl:value-of select="position()" />within a tag, you'll be able to get the index of the current <sale>tag, which you'll need for the column number.
You'll need to use a browser other than Internet Explorer to test this, as Internet Explorer is the only common browser that does not support SVG!