From a8be7f7dde5cf0d51026de0e6bc4d0f59f41c4b6 Mon Sep 17 00:00:00 2001
From: Adrian Kummerlaender
Date: Fri, 27 Jun 2014 21:35:46 +0200
Subject: Updated README.md and added "write-file" test case * slightly
improved FunctionTransform test case utility templates
---
README.md | 4 +++-
test/read_directory/reference.xml | 3 +++
test/transform/transformation.xsl | 14 ++++++--------
test/write_file/reference.xml | 3 +++
test/write_file/transformation.xsl | 26 ++++++++++++++++++++++++++
5 files changed, 41 insertions(+), 9 deletions(-)
create mode 100644 test/write_file/reference.xml
create mode 100644 test/write_file/transformation.xsl
diff --git a/README.md b/README.md
index 513e930..f60b342 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# InputXSLT
-... is a proof-of-concept implementation of external read-only file access functions for XSLT based on Apache [xalan](https://xalan.apache.org/) and [xerces](https://xerces.apache.org/).
+... is a proof-of-concept implementation of external ~~read-only~~ file access functions for XSLT based on Apache [xalan](https://xalan.apache.org/) and [xerces](https://xerces.apache.org/).
## Why?!
@@ -9,6 +9,8 @@ Contrary to popular opinion I actually like XSLT as a content transformation lan
## Current features:
- external `read-file` function for read-only access to both plain and xml files
+- external `write-file` function for writing files
+- external `read-directory` function for read-only directory traversal
- external `read-directory` function for read-only directory traversal
- external `transform` function for executing transformations inside transformations
- external `external-text-formatter` function for executing text formatters and capturing their XML output
diff --git a/test/read_directory/reference.xml b/test/read_directory/reference.xml
index 4c1000b..b2eac35 100644
--- a/test/read_directory/reference.xml
+++ b/test/read_directory/reference.xml
@@ -28,4 +28,7 @@
-
transform
+-
+write_file
+
diff --git a/test/transform/transformation.xsl b/test/transform/transformation.xsl
index 99933ba..ba17981 100644
--- a/test/transform/transformation.xsl
+++ b/test/transform/transformation.xsl
@@ -14,9 +14,7 @@
-
+
@@ -53,15 +51,15 @@
-
+
-
+
@@ -78,13 +76,13 @@
-
+
-
+
diff --git a/test/write_file/reference.xml b/test/write_file/reference.xml
new file mode 100644
index 0000000..ba10cf5
--- /dev/null
+++ b/test/write_file/reference.xml
@@ -0,0 +1,3 @@
+
+Hello world!
+
diff --git a/test/write_file/transformation.xsl b/test/write_file/transformation.xsl
new file mode 100644
index 0000000..f65e62d
--- /dev/null
+++ b/test/write_file/transformation.xsl
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Error during file io
+
+
+
+
+
--
cgit v1.2.3