XSL Transform SVG to VML

本小妞迷上赌 提交于 2019-12-07 07:47:56

问题


I don't know anything about VML except that Internet Explorer and other Microsoft products use it and that it is a vector graphics format.

Can one use XSLT to transform an SVG document to VML? Or are they too different from one another to make this possible?

I know that there exist XSLT documents to transform SVG to XAML.


回答1:


I haven't used it, but there's a sourceforge project Vector Converter that seems to do exactly that.




回答2:


As a more general answer to this question, you can, VML as it looks is XML, you can transform any XML into any other XML with XSLT, XSLT unlike CSS is Turing Complete.

Any XML standard can be transformed into any other with it. Though not necessarily easily.




回答3:


VML was essentially obsoleted by SVG (source), so it might not be worth your while. If you still want/need to do this, then XSLT should be up to the task, but I haven't personally seen an example in the wild.



来源:https://stackoverflow.com/questions/2836579/xsl-transform-svg-to-vml

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