Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
758 views
in Technique[技术] by (71.8m points)

html - Using client side XSLT transformations in the HTML5 era

Can anyone help regarding the availability of client-side XSLT in mobile HTML5 browsers? caniuse.com has nothing on it.

Is XSLT actually standardized across current mobile browsers?

The HTML5 spec has nothing on XSLT which puts into question whether XML has a future (in light of the fact that there is JSONP but there is no "XMLP")

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Availability of XSLT 1.0 client-side is now pretty universal in modern browsers, with the exception of some mobile platforms; and the level of conformance is also quite reasonable (probably rather better than Javascript/DOM). We've been using client-side XSLT for the Saxonica web site for some months and there are very few reports of problems, though we do have a fall-back site that's static HTML, which we redirect to when we detect that XSLT isn't supported.

The recently open-sourced Saxon-CE now delivers XSLT 2.0 on any browser with Javascript support. It does a lot more than upgrade the XSLT support to XSLT 2.0; it also provides a declarative way of handling user input in the browser and creating interactive applications.

It's true of course that the browser vendors have largely lost interest in XML. The same isn't true of content publishers, so it's up to third parties to fill the gap.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...