在 HTML5 时代使用客户端 XSLT 转换 [英] Using client side XSLT transformations in the HTML5 era

查看:35
本文介绍了在 HTML5 时代使用客户端 XSLT 转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助了解移动 HTML5 浏览器中客户端 XSLT 的可用性吗?caniuse.com 上没有任何内容.

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

XSLT 是否真的在当前的移动浏览器中标准化了?

Is XSLT actually standardized across current mobile browsers?

HTML5 规范在 XSLT 上没有任何内容,这使人们质疑 XML 是否有未来(鉴于有 JSONP 但没有XMLP")

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")

推荐答案

XSLTProcessor API 是 HTML5 脚本规范的一部分:

The XSLTProcessor API is part of the HTML5 scripting spec:

当处理指令触发 XSLT 转换程序并且浏览器实现直接到 DOM 转换时,XSLT 处理器创建的脚本元素需要标记为解析器插入"并按文档顺序运行(模脚本)标记为延迟或异步),立即,因为转换正在发生.

When an XSLT transformation program is triggered by an processing instruction and the browser implements a direct-to-DOM transformation, script elements created by the XSLT processor need to be marked "parser-inserted" and run in document order (modulo scripts marked defer or async), immediately, as the transformation is occurring.

Safari 网络内容指南 说:

iOS 2.0 及更高版本支持 XSLT.

XSLT is supported in iOS 2.0 and later.

Android 2.2.x(Level 8) 添加了 Java API对于 XSLT,可通过 JavaScript 的 XSLTProcessor API 访问客户端.

Android 2.2.x(Level 8) added Java APIs for XSLT, accessible client-side via the XSLTProcessor API of JavaScript.

Android 4.0 支持 XSLT 处理说明,根据对以下问题的回答:

Android 4.0 supports XSLT processing instructions, according to answers to the following question:

这篇关于在 HTML5 时代使用客户端 XSLT 转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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