Alternative to NSXMLDocument on the iPhone for XSLT purposes

后端 未结 2 534
无人共我
无人共我 2020-12-20 05:48

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 ho

2条回答
  •  清酒与你
    2020-12-20 06:17

    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.

    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. :-)

提交回复
热议问题