aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt22
-rw-r--r--dummy/transform.xsl2
-rw-r--r--test.cc6
3 files changed, 26 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..e98ef8a
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,22 @@
+cmake_minimum_required(VERSION 2.8)
+project(InputXSLT)
+
+set(
+ CMAKE_CXX_FLAGS
+ "-std=c++11 -W -Wall -Wextra -Winline -pedantic"
+)
+
+include_directories(
+ src/
+)
+
+add_executable(
+ test
+ test.cc
+)
+
+target_link_libraries(
+ test
+ xalan-c
+ xerces-c
+)
diff --git a/dummy/transform.xsl b/dummy/transform.xsl
index dca15a1..bd7cbc7 100644
--- a/dummy/transform.xsl
+++ b/dummy/transform.xsl
@@ -22,7 +22,7 @@
<xsl:template match="items/item">
<div id="{.}">
- <xsl:value-of select="external:read-file('dummy/test.txt')" />
+ <xsl:value-of select="external:read-file('../dummy/test.txt')" />
</div>
</xsl:template>
diff --git a/test.cc b/test.cc
index 39e591a..28a2cac 100644
--- a/test.cc
+++ b/test.cc
@@ -21,9 +21,9 @@ int main() {
FunctionFileRead()
);
- xalan::XSLTInputSource input("dummy/in.xml");
- xalan::XSLTInputSource tranformation("dummy/transform.xsl");
- xalan::XSLTResultTarget output("dummy/out.xml");
+ xalan::XSLTInputSource input("../dummy/in.xml");
+ xalan::XSLTInputSource tranformation("../dummy/transform.xsl");
+ xalan::XSLTResultTarget output("out.xml");
int result(transformer.transform(
input,