diff options
author | Marat Nepomnyashy <marat@vyatta.com> | 2008-01-04 16:37:55 -0800 |
---|---|---|
committer | Marat Nepomnyashy <marat@vyatta.com> | 2008-01-04 16:37:55 -0800 |
commit | f4d3cb9184c68201a1c18be97654df6edbd07369 (patch) | |
tree | 8335410b864044b76b54fba916cac07b87b7ecef /src/render_xml.cc | |
parent | 2f63b8af6d06eb930cff4b13bb0d4c782f47d8b2 (diff) | |
download | vyatta-op-f4d3cb9184c68201a1c18be97654df6edbd07369.tar.gz vyatta-op-f4d3cb9184c68201a1c18be97654df6edbd07369.zip |
The 'render_xml' stuff has been migrated into package 'vyatta-op-xml'.
Diffstat (limited to 'src/render_xml.cc')
-rw-r--r-- | src/render_xml.cc | 31 |
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); -} |