next up previous
Next: Slices
Up: The WOM language
Previous: Paths

Included instances

It is sometimes useful to include the same instance in several different pages. This can be done with the <Include> element, whose only argument is a path to the instance.

One can use this element together with <Class> and detached instances. For example, you could define a standard footer:

<Class Footer>
This page written by <A HREF="index.html">Jocelyn Ireson-Paine</A>
</Class>
then create a detached instance of it, say in the root of an application:
<Instance><Footer footer></Instance>
and then include that at the bottom of every page:
<Include footer>



Jocelyn Ireson-Paine
Fri May 30 14:03:06 BST 1997