转型XSL / XML在Android中 [英] Transformation XSL/XML in Android

查看:208
本文介绍了转型XSL / XML在Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XSLTProcessor中WebKit中不起作用(Android版):在XSL include元素不管理

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

所以,我用撒克逊人做出转型XSL / XML。
问题是,它这么慢:转型持续约一分钟。

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?

感谢您

推荐答案

大样式表可以是一个有点性能问题与撒克逊-CE,因为需要从服务器获取的所有模块和编译他们之前什么都可以执行。同时它更难获得良好的仪表,看看究竟在何处的时候是怎么回事。

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.

一种方法来解决,这是看到多少范围有用于切割样式向下尺寸或减少模块的数量。另一种方法是做一些在服务器端的处理的,所以变换的需要被在浏览器端进行的量减少。此外,这些天有,可以用CSS做了很多;不使用XSLT做一些事情,可以用CSS来实现。

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.

这篇关于转型XSL / XML在Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆