Benefits/Disadvantages of using XSL to render entire web pages

后端 未结 7 1387
星月不相逢
星月不相逢 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:30

    Server-side:

    Advantages:
    • Clean, concise templates
    • An easy way to process XML data into HTML
    • Reasonably fast
    Disadvantages:
    • 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)

    Client-side:

    Advantages:
    • A convenient way to off-load processing onto client code, where scripts can potentially have much better knowledge of how best to format the resulting HTML.
    Disadvantages:
    • Browser support is all over the map.
    • Google won't thank you.

提交回复
热议问题