Looking for a library of XSLT to create SVG charts [closed]

删除回忆录丶 提交于 2019-12-10 10:44:48

问题


I'm looking for a library of XSLT to create SVG charts. I need pie charts, bar charts, line charts, all the usual suspects. I would hope for a reasonably simple DTD or Schema for the input files.

Edit: I have the raw data for the charts and a mechanism to convert it into what ever XML is necessary for the XSLT library.


回答1:


Try SvgCharts4Xsl. Works with XSLT 1.0.




回答2:


http://www.dpawson.co.uk/graph2svg/ was recently mentioned on the XSL mailing list. Uses XSLT 2.0 however.




回答3:


XSLT transforms between XML representations. So what are you looking to transform from ? It sounds like (perhaps) you need an SVG library such as Batik. Note that using Batik means you can write to a Java graphics component, and then output that as SVG (as opposed to JPG, PNG etc.)




回答4:


You may try FXSL -- while it doesn't directly support SVG, it provides some functions necessary for some transformations -- for example trigonometric functions.

Update: There are a few XSLT stylesheets published by Martin Rowlinson (Marrow) -- the author of XSelerator, back in 2002. You may find them on topxml.com, but be warned that some people have alerted me that this site has a trojan on it -- therefore you should be equipped with good malware protection before clicking on the above link!




回答5:


Found chartSVG.



来源:https://stackoverflow.com/questions/2504130/looking-for-a-library-of-xslt-to-create-svg-charts

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!