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 --- dummy/in.xml | 7 +------ dummy/test.txt | 8 +++++++- dummy/transform.xsl | 15 ++++++++------- 3 files changed, 16 insertions(+), 14 deletions(-) (limited to 'dummy') 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 @@ - - Test1 - Test2 - Test3 - Test4 - + diff --git a/dummy/test.txt b/dummy/test.txt index cd08755..046a6ef 100644 --- a/dummy/test.txt +++ b/dummy/test.txt @@ -1 +1,7 @@ -Hello world! + + + Hello 1 + Hello 2 + Hello 3 + Hello 4 + diff --git a/dummy/transform.xsl b/dummy/transform.xsl index bd7cbc7..08d005b 100644 --- a/dummy/transform.xsl +++ b/dummy/transform.xsl @@ -15,17 +15,18 @@ - +
+ +
+ - -
- -
-
- -- cgit v1.2.3