用于 XSLT 目的的 iPhone 上 NSXMLDocument 的替代方案 [英] Alternative to NSXMLDocument on the iPhone for XSLT purposes

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

问题描述

我知道之前有人问过这个问题(像这里),但有没有办法在 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 文档转换为另一个进行处理,那么 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. :-)

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

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