+++ /dev/null
-#include <stdio.h>
-
-#include "xml-template.h"
-
-using namespace std;
-
-int main(int argc, char **argv)
-{
- Substitute doc_directive = {
- make_pair("color", new Replace("red")),
- };
- xmlDocPtr doc = process_file("../xml/included.xml", &doc_directive, false);
-
- Substitute master_directive = {
- make_pair("title", new Replace("Main HTML title")),
- make_pair("h1", new Replace("Nice heading here")),
- make_pair("contents", new ReplaceInclude(doc)),
- };
-
- xmlDocPtr master = process_file("../xml/master.xml", &master_directive);
- output_to_fd_and_free(master, 1);
- return(0);
-}