>
> I'm trying to put parts of my template in separate files so that I can
> reuse them in other templates. For instance I'd like to put
> "<table><tr><td>Some navigation elements" in one file and
> "</td></tr><tr><td>Main content</td></tr></table>" in another file.
No, this is impossible!!!
All the elements above (table, tr, td) are not closed (or started) in the
two files you intend to use as XML documents.
Your two files must be well-formed XML documents. By definition, a file,
which contains only one of the pair of (start-tag, end-tag) is not
well-formed.
Stop regarding an XML document as a string of characters, which may be split
anywhere to produce two other XML documents -- this is wrong.
An XML document is a tree of nodes. A node cannot be "split in half" between
two different xml documents.
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL