attribute3: attribute3.o $(LIBS)
$(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+attribute-empty: attribute-empty.o $(LIBS)
+ $(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
+
namespace: namespace.o $(LIBS)
$(CXX) -o $@ $< $(LIBS) $(LDFLAGS)
--- /dev/null
+#include <stdio.h>
+
+#include "xml-template.h"
+
+using namespace std;
+
+int main(int argc, char **argv)
+{
+ Substitute master_directive = {
+ make_pair("color", new Replace("blue")),
+ make_pair("#things", new Clone { }),
+ };
+
+ process_file("../xml/clone.xml", argv[1], &master_directive);
+ return(0);
+}