--- /dev/null
+<?php
+include("xml-template.php");
+
+$doc = XML_Template_process_file('../xml/included.xml', array(
+ 'color' => 'red'
+), false);
+$master = XML_Template_process_file('../xml/master.xml', array(
+ 'title' => 'Main HTML title',
+ 'h1' => 'Nice heading here',
+ 'contents' => $doc
+), true);
+print XML_Template_convert_doc_to_string($master, true);
+?>