XInclude
   HOME

TheInfoList



OR:

XInclude is a generic mechanism for merging
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing arbitrary data. It defines a set of rules for encoding documents in a format that is both human-readable and machine-readable ...
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 XML Information Set (XML Infoset) is a W3C recommendation, W3C specification describing an abstract data model of an XML document in terms of a set of ''information items''. The definitions in the XML Information Set specification are meant to be u ...
. 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 Extensible HyperText Markup Language (XHTML) is part of the family of XML markup languages. It mirrors or extends versions of the widely used HyperText Markup Language (HTML), the language in which Web pages are formulated. While HTML, prior ...
document: ... ...

gives: ... ...

This document is published under GNU Free Documentation License

The mechanism is similar to
HTML The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaSc ...
's <object> tag (which is specific to the HTML markup language), but the XInclude mechanism works with any XML format, such as SVG and
XHTML Extensible HyperText Markup Language (XHTML) is part of the family of XML markup languages. It mirrors or extends versions of the widely used HyperText Markup Language (HTML), the language in which Web pages are formulated. While HTML, prior ...
.


Web browser support

* Not natively. * Partially using some extra
JavaScript JavaScript (), often abbreviated as JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS. As of 2022, 98% of websites use JavaScript on the client side for webpage behavior, of ...
code


See also

*
XPath XPath (XML Path Language) is an expression language designed to support the query or transformation of XML documents. It was defined by the World Wide Web Consortium (W3C) and can be used to compute values (e.g., strings, numbers, or Boolean v ...


References


External links


XInclude Standard






article by Elliotte Rusty Harold {{DEFAULTSORT:Xinclude XML-based standards