From 6dd832dd0adb35f63148a0e7bd5bdcfb28516c3b Mon Sep 17 00:00:00 2001
From: Adrian Kummerländer
Date: Fri, 18 Apr 2014 19:51:24 +0200
Subject: Implemented basic XML reading capabilities * command "read-xml-file"
reads a XML file and allows it to be transformed by the calling XSLT * this
will allow workflows like the following: ** a tranformation reads all the
markdown files in a directory ** these markdown files are converted to a xml
representation by a external function calling a appropriate C++ markdown
parser ** the XML representation of each markdown file is converted to XHTML
inside the XSL transformation ** ... and embedded into the output XHTML
document ** => all inside a single XSL tranformation *** i.e. it is provided
with only a empty dummy XML input file and fetches the actual input by itself
* as all current code contained within this repository this is just a quick
and dirty proof-of-concept and not in any way good code
---
CMakeLists.txt | 2 +-
dummy/in.xml | 7 +-----
dummy/test.txt | 8 ++++++-
dummy/transform.xsl | 15 ++++++------
src/read_file_command.h | 8 +++----
src/read_xml_file_command.h | 57 +++++++++++++++++++++++++++++++++++++++++++++
src/utility.h | 5 ++++
test.cc | 9 ++++++-
8 files changed, 91 insertions(+), 20 deletions(-)
create mode 100644 src/read_xml_file_command.h
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e98ef8a..7aadb81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@ project(InputXSLT)
set(
CMAKE_CXX_FLAGS
- "-std=c++11 -W -Wall -Wextra -Winline -pedantic"
+ "-std=c++11 -W -Wall -Wextra -Winline -pedantic -g"
)
include_directories(
diff --git a/dummy/in.xml b/dummy/in.xml
index 7b512bc..6abcacd 100644
--- a/dummy/in.xml
+++ b/dummy/in.xml
@@ -1,7 +1,2 @@
-