What are the advantages of creating web pages with XML instead of HTML?

后端 未结 6 975
你的背包
你的背包 2021-02-08 00:46

From time to time, I see web pages whose content is solely written in XML (not HTML or XHTML). These pages usually have some style sheets (either XSLT or CSS) attached to them w

6条回答
  •  野的像风
    2021-02-08 01:12

    There are a lot more web pages that are written solely in XML than you know. You're only seeing the ones that do the XSLT transformation on the client side. Server-side transformation of XML is not at all unusual, because there's a plethora of things that produce data in XML, and transforming XML to HTML in XSLT is straightforward. You'll never know this is happening if you just look at the HTML, which bears no signs of having been generated via XSLT.

提交回复
热议问题