Benefits/Disadvantages of using XSL to render entire web pages

后端 未结 7 1418
星月不相逢
星月不相逢 2021-02-13 22:00

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 deali

7条回答
  •  一向
    一向 (楼主)
    2021-02-13 22:14

    XSLT on client side

    • Disables progressive rendering. User won't see anything at all until entire stylesheet and data is loaded completely.
    • Not supported by search engines and other crawlers. They'll see raw XML.
    • Not supported by older/less advanced browsers.

    XSLT in general

    • Unless you carefully design your stylesheets, they may quickly become difficult to maintain:
      • with numerous templates it may be very difficult to figure out which templates are applied.
      • verbosity of XSLT and XML syntax make it hard to understand anything at glance.
      • XPath tricks are tempting, but nightmare to modify later.

提交回复
热议问题