diff options
author | Adrian Kummerlaender | 2014-06-15 15:14:46 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-06-15 15:14:46 +0200 |
commit | 32c65970263c65022f5278b568c07b63c3d5d64b (patch) | |
tree | 2efa72b5bc2288daec5d8a5c7ec0e8f7fcaa1365 /src/plattform_guard.cc | |
parent | 58d3e1b8d03a10594e13658b50545fd714c04f6d (diff) | |
download | InputXSLT-32c65970263c65022f5278b568c07b63c3d5d64b.tar InputXSLT-32c65970263c65022f5278b568c07b63c3d5d64b.tar.gz InputXSLT-32c65970263c65022f5278b568c07b63c3d5d64b.tar.bz2 InputXSLT-32c65970263c65022f5278b568c07b63c3d5d64b.tar.lz InputXSLT-32c65970263c65022f5278b568c07b63c3d5d64b.tar.xz InputXSLT-32c65970263c65022f5278b568c07b63c3d5d64b.tar.zst InputXSLT-32c65970263c65022f5278b568c07b63c3d5d64b.zip |
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
Diffstat (limited to 'src/plattform_guard.cc')
-rw-r--r-- | src/plattform_guard.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/plattform_guard.cc b/src/plattform_guard.cc index d787adf..e232d2b 100644 --- a/src/plattform_guard.cc +++ b/src/plattform_guard.cc @@ -7,7 +7,6 @@ #include "common.h" #include "function/read_file.h" -#include "function/read_xml_file.h" #include "function/read_directory.h" #include "function/transform.h" #include "function/external_text_formatter.h" @@ -31,12 +30,6 @@ PlattformGuard::PlattformGuard(const std::vector<std::string>& path): xalan::XalanTransformer::installExternalFunctionGlobal( customNamespace, - xalan::XalanDOMString("read-xml-file"), - InputXSLT::FunctionReadXmlFile(&this->include_resolver_) - ); - - xalan::XalanTransformer::installExternalFunctionGlobal( - customNamespace, xalan::XalanDOMString("read-directory"), InputXSLT::FunctionReadDirectory(&this->include_resolver_) ); |