I have an xml file I wish to transform using an xsl-document, but I can\'t seem to make it work on even the latest available Android versions.
I tried adding a
I downloaded Opera Mobile Version: 12.00 for my Desire and XSLT finally works on my phone. So a great tip is to download Opera Mobile in Market.
See Android issue 9312 To summarize: Android browser does not support XSLT client-side until 2.1.
Webkit does have XSLT functionality through the use of the included libxslt library. I have successfully done transforms using the stylesheet declaration as well as using the Javascript XSLTProcessor class. This works in most webkit browsers except for Android and iPhone.
It seems that to save space they have purposely disabled the xslt functionality and my guess would be that it was a an optimization done for mobile browsers.
Tested using Android 2.2 on the Galaxy Tablet and the XSLTProcessor class does not exist.
Works fine in Opera mini. I am using Android 1.5 tablet.
The default Android Browser starts supporting xsl transforms in the version that shows up in Android 4.0, Ice Cream Sandwich.
Other mobile browsers that have finally started supporting xsl are Opera Mobile and the Chrome Android Browser, currently in beta.
I just tested an XSLT example with Froyo browser and the result is a totally white page. However I installed Opera mobile browser for Android and it renders my example perfectly.
I cannot test in Opera mini because my test is served in a no internet accesible LAN.