XSL 将 SVG 转换为 VML
我对 VML 一无所知,只知道 Internet Explorer 和其他 Microsoft 产品使用它并且它是一种矢量图形格式。
可以使用 XSLT 将 SVG 文档转换为 VML 吗?或者他们之间的差异太大而无法实现这一目标?
我知道存在将 SVG 转换为 XAML 的 XSLT 文档。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我还没有使用过它,但是有一个 sourceforge 项目 Vector Converter 似乎正是这样做的。
I haven't used it, but there's a sourceforge project Vector Converter that seems to do exactly that.
作为这个问题的更一般的答案,您可以,VML,因为它看起来是 XML,您可以使用 XSLT 将任何 XML 转换为任何其他 XML,与 CSS 不同,XSLT 是图灵完备的。
任何 XML 标准都可以用它转换为任何其他标准。虽然不一定容易。
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 本质上已被 SVG 淘汰(来源),因此可能不值得您花时间。如果您仍然想要/需要这样做,那么 XSLT 应该能够胜任这项任务,但我个人还没有看到过这样的例子。
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.