Transformation XSL/XML in Android

帅比萌擦擦* 提交于 2019-12-12 02:46:02

问题


The XSLTProcessor doesn't work in WebKit (Android): the include element in XSL are not managed.

So, I use Saxon to make a transformation XSL/XML. The problem is it so slow: the transformation last about one minute.

Have you an idea to make the transformation faster?

Thank you


回答1:


Large stylesheets can be a bit of a performance problem with Saxon-CE because of the need to fetch all the modules from the server and compile them before anything can be executed. Also it's much harder to get good instrumentation to see where exactly the time is going.

One approach to solving this is to see how much scope there is for cutting the stylesheet down to size or reducing the number of modules. Another approach is to do some of the processing on the server side, so the amount of transformation that needs to be done on the browser side is reduced. Also these days there's a lot that can be done with CSS; don't use XSLT to do something that could be done with CSS.



来源:https://stackoverflow.com/questions/23989918/transformation-xsl-xml-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!