summaryrefslogtreecommitdiff
path: root/src/render_xml.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/render_xml.cc')
-rw-r--r--src/render_xml.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/render_xml.cc b/src/render_xml.cc
deleted file mode 100644
index a213387..0000000
--- a/src/render_xml.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <stdio.h>
-#include <unistd.h>
-#include <iostream>
-#include <string>
-
-#include "xsl_processor.hh"
-
-using namespace std;
-
-int
-main(int argc, char* argv[])
-{
- if (argc < 2) {
- printf("usage: %s <xsl_file>\n", argv[0]);
- printf(" (takes XML from stdin)\n");
- exit(1);
- }
-
- char buf[2048];
- string xml_str = "";
- while (fgets(buf, 2048, stdin) != NULL) {
- xml_str += buf;
- }
-
- string xsl_file(argv[1]);
- list<pair<string,string> > listParams;
- XSLProcessor xsl_processor(false);
- cout << xsl_processor.transform(xml_str, xsl_file, listParams) << endl;
-
- exit(0);
-}