客户端XSLT的当前状态 [英] Current state of client-side XSLT

查看:159
本文介绍了客户端XSLT的当前状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最后我听说,暴雪是少数将客户端XSLT付诸实践的公司之一(2008年)。这仍然是2011年的情况,还是现在有更多的人在生产中探索这种技术?

现在的浏览器(IE9,FF4,Chrome)和客户端处理能力似乎已经准备好利用这个标准来实现服务器CPU功耗和带宽大规模性能的切实节省。我错过了什么?



我知道的负面因素包括


  • 额外的渲染时间

  • 未缓存的页面加载所需的附加资产
  • 额外的复杂层次
  • 开发人员的经验比服务器端模板技术更好



我认为的好处包括:


  • 在客户端上卸载的模板组合

  • 在客户端上卸载常见模板片段的缓存
  • 文档结构的逻辑分隔和数据
  • 所有现代浏览器均支持完善的Web标准



最后,虽然我知道预测未来是不可能的,我很想知道客户端XSLT的日子是否会到来。由于对HTML5的兴趣促使用户升级他们的浏览器和开发人员以探索新技术,所以我非常希望能够看到发展方向。



在此先感谢,



Casey

编辑:

由Google查看,它对搜索引擎优化的影响也是值得赞赏的。

解决方案

我可能会以某种方式迷失在翻译中, SEO问题是主要原因,阻止了很多使用客户端XSLT的人。



我不知道搜索机器人,能够解析application / xml的HTML或甚至闪光。



仍然这是一个很好的做法(mail.yandex.ru确实是一个值得注意的例子)高度加载的web应用程序部分使用XSLT客户端,因为流量大,搜索引擎友好没有必要。

Last I heard, Blizzard was one of the few companies to put client-side XSLT into practice (2008). Is this still the case in 2011, or are more people now exploring this technique in production? 

It seems that modern browsers (IE9, FF4, Chrome) and client processing power are primed to exploit this standard for tangible savings in server CPU power and bandwidth on large scale properties. Am I missing something?

The negative aspects I'm aware of include

  • additional rendering time
  • additional assets required on uncached page load
  • additional layer of complexity
  • noticably less developer experience than server-side template techniques

The benefits I perceive include

  • template composition offloaded on the client
  • caching of common template fragments offloaded on the client
  • logical separation of document structure and data
  • well-documented web standard supported by all modern browsers

Finally, although I know it's impossible to predict the future, I am curious to know opinions on whether or not client-side XSLT's day will come. With interest in HTML5 driving users to upgrade their browsers and developers to explore new techniques, I'm eager to see what develops.

Thanks in advance,

Casey

Edit:

Any insight into how transformed XML is viewed by Google and the ramifications it has on SEO is appreciated too.

解决方案

I may be somehow lost in translation, but I guess SEO issues is the main reason, preventing a lot of people of using client-side XSLT.

I'm not aware of search robots, capable of parsing application/xml instead of plain html or even flash.

Still it's a good practice (mail.yandex.ru is a notable example indeed) for highly loaded web-apps to use XSLT partially on the client, because traffic is large and SEO-friendliness isn't necessary.

这篇关于客户端XSLT的当前状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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