04-01-2013 05:21 AM
I am working on a application in which i need to show .xsl file in BrowserField. I tried with .html file and is working fine but when i try to load local .xsl file BrowserField shows complete code of xsl file.
I will be thankful if some guide me on this.
Thanks & Regards
04-01-2013 06:43 AM
Suggests xslt is supported in OS 6.0 Browser however this
for OS 5.0 and earlier suggests it is not supported.
What OS are you testing with?
04-01-2013 06:51 AM
Thanks for Reply
The links you provided suggest that Blackberry Browser supports xsl file but i wanted to know about BB BrowserFiled. Do you think all feature that Browser(BB) supports will be supported by BrowserField as well?
I tried with .html its rendering fine but while using .xsl file complete code is rendered instead...
04-01-2013 08:15 AM
I believe in OS 6.0, the BrowserField was rendered using the OS 5.0 Browser, so I doubt it is supported in OS 6.0. But OS 7.0 should be OK,
Try it in the BrowserField and in the Browser and report what you find.
You should be able to do this testing in the Simulator.
04-01-2013 09:33 AM
I am testing on OS 7.1 simulator but things are same,still BrowserField shows complete code.
I didnt found a way to load local .xsl file on BB simulator browser directlly...
Please let me know if you have any suggestion on same...
04-01-2013 09:51 AM
Since you are testing using 7.1, then I think it should work. But not something I have ever looked seriously at.
Re passing it to a browserField, I suspect you will have to set the MIME type. So you need to use the
displayContent(byte data, String contentType, String baseUrl)
method, and you will need to use the "application/xslt+xml" MIME Type, though "text/xml" or "application/xml" might work also and are worth a try if the official MIME Type doesn't work.
Re testing on BrowserField, start the MDS Simulator, and point the Browser at a page that you know to be XSLT. Make sure the page loads correctly in a Browser first of course.