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 --- src/plattform_guard.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/plattform_guard.cc') 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" @@ -29,12 +28,6 @@ PlattformGuard::PlattformGuard(const std::vector& path): InputXSLT::FunctionReadFile(&this->include_resolver_) ); - xalan::XalanTransformer::installExternalFunctionGlobal( - customNamespace, - xalan::XalanDOMString("read-xml-file"), - InputXSLT::FunctionReadXmlFile(&this->include_resolver_) - ); - xalan::XalanTransformer::installExternalFunctionGlobal( customNamespace, xalan::XalanDOMString("read-directory"), -- cgit v1.2.3