替代iPhone上的NSXMLDocument以实现XSLT目的 [英] Alternative to NSXMLDocument on the iPhone for XSLT purposes

查看:69
本文介绍了替代iPhone上的NSXMLDocument以实现XSLT目的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道以前曾经问过这个问题(就像这里),但有没有办法在iPhone上原生使用XSLT?如果没有,我需要使用 libxslt ,是否有任何关于如何使用它的文档/教程iPhone?

I know it's been asked before (like here), but is there way to natively use XSLT on the iPhone? If not, and I need to use libxslt, is there any documentation/tutorial of how to use it on the iPhone?

编辑:
我决定使用 libxslt 。需要包含哪些文件?我还没有在iPhone上找到任何使用示例的教程,我不确定如何处理它。任何帮助将不胜感激。

I've decided to use libxslt. What files are necessary to include? I haven't found any tutorials of examples of use on the iPhone, and I'm unsure of how to approach it. Any help would be appreciated.

提前致谢。

推荐答案

这取决于你想要如何使用XSLT;不确定你的意思是本地。如果您只是嵌入浏览器,MobileSafari会为您解释XSLT。

It depends how you want to use XSLT; not sure what you mean by "natively". If you're just embedding a browser, MobileSafari will interpret XSLT for you.

如果您只是将一个XML文档转换为另一个XML文档进行处理,那么libxslt也不错选择。在任何其他平台上使用iPhone上的libxslt都没有区别。鉴于Apple没有包含标题,很可能他们不希望您使用捆绑的副本。最好根据提供的libxml2库将副本编译到应用程序中。

If you're just converting one XML document into another for processing, libxslt is not a bad choice. There's no difference using libxslt on the iPhone from any other platform. Given Apple doesn't include headers for it, it is likely they don't want you using the bundled copy. You are better off compiling a copy into your application instead, against the provided libxml2 library.

如果您想要更具体的答案,您可能希望提出更具体的问题。 : - )

If you want a more specific answer you may wish to pose a more specific question. :-)

这篇关于替代iPhone上的NSXMLDocument以实现XSLT目的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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