objective c - XLST in a UIWebView using iOS SDK 4.2 -


is possible use xslt in uiwebview using ios sdk 4.2? alternatively, possible use xslt in ios sdk 4.2 outside of uiwebview? have seen similar questions this, seem dated , refer pre-4.0 ios sdks.

if possible, link simple ios xslt example great too.

tia.

the answer yes. here's example:

nsstring *path = [[nsbundle mainbundle] bundlepath]; nsurl *baseurl = [nsurl fileurlwithpath:path]; nsstring *xml = @"<?xml version=\"1.0\"?><?xml-stylesheet type=\"text/xsl\" href=\"greeting.xsl\"?><greeting>hello, world!</greeting>"; [self.webview loaddata:[xml datausingencoding:nsutf8stringencoding] mimetype:@"text/xml" textencodingname:@"utf-8" baseurl:baseurl]; 

i having problems because trying load xml using uiwebview's

- (void)loadhtmlstring:(nsstring *)string baseurl:(nsurl *)baseurl 

method.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -