[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: SVG charts and graphs from XML input
Jon Smirl >Has anyone tried writing a stylesheet to generate SVG charts >and graphs from >XML input? > >This might make a good class assignment; plus I'd like to see >the results. Yes, I did one for a flowchart. >From XML to svg (poor visually since I didn't attempt text flow).. and braille, clear print, html. Even better as a class assignment, I did a bit of round-tripping this weekend. >From a table, with spanned rows and columns to content only XML, then back to html, to include a toc. Was that fun! Dave Raggetts tidy is indispensible. Grouping was in triples, hence Mike Kays td mod x came into it, needed following-sibling:: tr[n]/td[m] Most of it was within the root template, with odd bits of template match. Pick any regular table as input. It took me 4 passes to do. I'm sure MK, DC would have done it in one or two, but it was really educational. The table came from xfree86, their list of mirrors. Great exercise. Regards, DaveP XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|