Why isn’t XInclude supported by any browser?
Asked Answered
S

1

12

I’m wondering why no web browser supports the XInclude standard for XHTML.

This standard exists for almost five years, and I think it would be very useful for the web. For example, you could XInclude the static parts of your web site, such that the browser will only need to download the part which have changed when the user is browsing the site. Moreover (but I may be wrong) this does not seem to be very difficult to support, in comparison to standards like SVG or MathML.

(sorry for this question without real answer, I will not mind if it is closed)

Slag answered 26/6, 2011 at 22:6 Comment(0)
S
6

There is an old open bug on the Mozilla bug tracker asking for XInclude support with a patch in which some problems are discussed:

  • a satisfactory XInclude implementation requires XPath, XPointer, xml:id and other specs to be implemented first,
  • most of the time XInclude can be simulated by the document() XSLT function,
  • loops must be detected and this is hard to do,
  • it is not well understood how the DOM changes made by XInclude's documents should be encapsulated into events and propagated.
Scroggins answered 1/2, 2012 at 13:50 Comment(1)
Detecting loops isn't hard. But the last point (DOM changes) really cuts it. It's maybe not the primary reason, but it would be a major issue.Louque

© 2022 - 2024 — McMap. All rights reserved.