Is the Android Browser capable of performing an xsl transform?

前端 未结 8 668
后悔当初
后悔当初 2021-01-02 04:09

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

8条回答
  •  再見小時候
    2021-01-02 04:25

    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.

提交回复
热议问题