问题
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