#! /usr/bin/perl
use XML::TemplateSAX;

my $doc = XML::TemplateSAX::process_file_to_buffer('../xml/included.xml', {
	'color' => 'red'
}, 0);
my $master = XML::TemplateSAX::process_file('../xml/master.xml', {
	'title' => 'Main HTML title',
	'h1' => 'Nice heading here',
	'contents' => $doc
});
print $master;
