3 #include "xml-template.h"
7 int main(int argc, char **argv)
9 Substitute doc_directive = {
10 make_pair("color", new Replace("red")),
12 xmlDocPtr doc = process_file("../xml/included.xml", &doc_directive, false);
14 Substitute master_directive = {
15 make_pair("title", new Replace("Main HTML title")),
16 make_pair("h1", new Replace("Nice heading here")),
17 make_pair("contents", new ReplaceInclude(doc)),
20 xmlDocPtr master = process_file("../xml/master.xml", &master_directive);
21 output_to_fd_and_free(master, 1);