I don't know anything about VML except that Internet Explorer and othe开发者_如何学运维r 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.
I haven't used it, but there's a sourceforge project Vector Converter that seems to do exactly that.
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.
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.
精彩评论