From 32c65970263c65022f5278b568c07b63c3d5d64b Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 15 Jun 2014 15:14:46 +0200 Subject: Merged "read-xml-file" and "read-file" into "read-file" * FunctionReadFile is now able to distinguish between XML files and plain text files ** it selects the appropriate course of action automatically ** reading the file as XML into the DOM or reading it as a string * the current selection criteria is the file extension ** I am thinking about trying to import every file into the DOM and using the result state of that action as selection criteria * Updated README.md and test cases accordingly --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 6e8b4fa..513e930 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,7 @@ Contrary to popular opinion I actually like XSLT as a content transformation lan ## Current features: -- external `read-file` function for read-only access to text files -- external `read-xml-file` function for read-only access to XML files +- external `read-file` function for read-only access to both plain and xml files - 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 @@ -18,8 +17,8 @@ Contrary to popular opinion I actually like XSLT as a content transformation lan The `test` directory contains black-box test cases for every external function provided by this application which may be used as basic usage examples. -- [`InputXSLT:read-file`](test/read_file/transformation.xsl) -- [`InputXSLT:read-xml-file`](test/read_xml_file/transformation.xsl) +- [`InputXSLT:read-file` (plain)](test/read_file/transformation.xsl) +- [`InputXSLT:read-file` (xml)](test/read_xml_file/transformation.xsl) - [`InputXSLT:read-directory`](test/read_directory/transformation.xsl) - [`InputXSLT:transform`](test/transform/transformation.xsl) - [`InputXSLT:external-text-formatter`](test/external_text_formatter/transformation.xsl) (requires [markdown.pl](http://daringfireball.net/projects/markdown/)) -- cgit v1.2.3