The <include> tag

<include> includes another file in the XHTML output. It is mostly used for including generic settings and layout elements, such as navigation menus, links to CSS files, javascript code etc.

The included XML file is included at the point where you specify it. This has effect on some tags, while, for other tags, this doesn't matter. Most notably, if you include a navigation menu in the beginning of each file, the resulting XHTML will also contain the navigation menu in the beginning.



Let's say we want to include the file settings/generic.xml that contains a standard header to be shown on each page.

<include src="settings/generic.xml"/>

The resulting file will contain:

Generic header

rest of the content