是否有任何XSLT到C ++编译器可用? [英] Are there any XSLT to C++ compilers available?

查看:155
本文介绍了是否有任何XSLT到C ++编译器可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现只有一次尝试创建此类编译器 - http://sourceforge.net/projects/xsltc/
但是这个项目已经十年了。还有其他例子吗?开源或商业?



构建此类软件是否存在任何根本的技术困难?有了整个方法编译XSLT本身?



我想有好的用例使用它 - 我们不需要改变XSLT,但仍然想要的地方获得更高的性能(可能需要更低的内存)。



有没有其他原因,这个软件可能没有那么高效的外观? - 解释XSLT处理器的编译效率可能是?

解决方案

从我的理解,XSLT不再受欢迎。一般来说,使用您最喜欢的XML库来选择您的语言,解析您的XML数据,并编写代码以按照您想要的方式格式化输出变得更容易,更强大。



另一方面,你似乎已经取得了一些成功。有些情况下它是有用的。 查看此SO问题了解有关XSLT利弊的更多详情。

无论如何,软件开发人员一般不是XSLT的忠实支持者,这将解释为什么在C ++中编写一个优化的XSLT解析器的原因没有很大的发展。


I found only one attempt to create such compiler - http://sourceforge.net/projects/xsltc/. But this project is dead for decade already. Are there any other examples? Opensource or commercial?

Are there any fundamental technical difficulties with building such software? With the whole approach of compiling XSLT natively?

I suppose there are good use cases for using it - places where we don't need to change XSLT but still would like to get higher performance (and probably, lower memory requirements).

Are there any other reasons this software may be not so efficient as it looks? - Are interpreting XSLT processors as efficient as compiled would probably be?

解决方案

From my understanding, XSLT isn't very popular anymore. Generally, it's easier and more powerful to use your favorite XML library for your language of choice, parse your XML data, and write code to format the output the way you want it.

On the other hand, it seems like you have had some success with it already. There are cases when it's useful. Check this SO question out for more details on the pros and cons of XSLT.

Anyway, software developers in general aren't big fans of XSLT, which would explain why there hasn't been a big movement to write an optimized XSLT parser in C++.

这篇关于是否有任何XSLT到C ++编译器可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆