XInclude is a generic mechanism for merging
XML documents, by writing inclusion tags in the "main" document to automatically include other documents or parts thereof. The resulting document becomes a single composite
XML Information Set. The XInclude mechanism can be used to incorporate content from either XML files or non-XML text files.
Example
For example, including the text file
license.txt
:
This document is published under GNU Free Documentation License
in an
XHTML document:
...
...
gives:
...
...
This document is published under GNU Free Documentation License
The mechanism is similar to
HTML's
<object>
tag (which is specific to the HTML
markup language
Markup language refers to a text-encoding system consisting of a set of symbols inserted in a text document to control its structure, formatting, or the relationship between its parts. Markup is often used to control the display of the document ...
), but the XInclude mechanism works with any XML format, such as
SVG and
XHTML.
Web browser support
* Not natively.
* Partially using some extra
JavaScript code
[
]
See also
*
XPath
References
External links
XInclude Standardarticle by Elliotte Rusty Harold
{{DEFAULTSORT:Xinclude
XML-based standards