使用 XSL 呈现整个网页的优点/缺点 [英] Benefits/Disadvantages of using XSL to render entire web pages

查看:32
本文介绍了使用 XSL 呈现整个网页的优点/缺点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正处于与客户一起规划项目以重做其当前网站的初步阶段.我查看了他们当前的站点以查看他们当前正在处理的问题,并且在检查时我注意到每个页面都是完全使用 XSLT 呈现的.我熟悉 XSLT,我用它来呈现需要在客户端经常刷新的自定义控件,但从不呈现整个页面.

I am in the preliminary stages of planning a project with a client to redo their current website. I took a look at their current site to see what issues they are currently dealing with and upon inspection I noticed that every page is being rendered entirely using XSLT. I am familiar with XSLT, I have used it to render custom controls that need to be refreshed often on the client-side, but never to render an entire page.

帮助我变得不那么无知,这背后的原因是什么?这带来了哪些好处或坏处?

Help me become less ignorant, what could be the reasoning behind this? What benefits or disadvantages does this bring to the table?

推荐答案

服务器端:

好处:
  • 干净、简洁的模板
  • 一种将 XML 数据处理为 HTML 的简单方法
  • 相当快
    • 许多过程语言程序员不熟悉和不舒服的编程模型
    • 如果部分或全部源数据不是在 XML 中会很尴尬
    • 如果不小心使用可能会很慢(小的变化会产生很大的影响)
    • Programming model unfamiliar and uncomfortable for many procedural-language programmers
    • Awkward if some or all source data is not in XML
    • Can be very slow when not used carefully (small changes can have large repercussions)
    • 一种将处理卸载到客户端代码上的便捷方法,脚本可以在其中更好地了解如何最好地格式化生成的 HTML.
    • 浏览器支持无处不在.
    • Google 不会感谢您.

    这篇关于使用 XSL 呈现整个网页的优点/缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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