From 947a8389728ff7d052fa820f598da3c17802f3d1 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sun, 27 Apr 2014 17:24:30 +0200 Subject: Added status information to external read-xml-file function * XML tree is contained below the _content_ node if read was successful ** status is set to error otherwise * updated test transformation accordingly --- src/function/read_xml_file.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/function/read_xml_file.h') diff --git a/src/function/read_xml_file.h b/src/function/read_xml_file.h index 775ec96..1df48fb 100644 --- a/src/function/read_xml_file.h +++ b/src/function/read_xml_file.h @@ -5,19 +5,19 @@ #include #include #include -#include #include +#include #include "common.h" #include "support/filesystem_context.h" +#include "support/dom/document_cache.h" namespace InputXSLT { class FunctionReadXmlFile : public xalan::Function { public: FunctionReadXmlFile(const FilesystemContext&); - FunctionReadXmlFile(const FunctionReadXmlFile&); virtual xalan::XObjectPtr execute( xalan::XPathExecutionContext&, @@ -33,7 +33,7 @@ class FunctionReadXmlFile : public xalan::Function { private: const FilesystemContext& fs_context_; - mutable xalan::XercesParserLiaison parser_; + std::shared_ptr document_cache_; const xalan::XalanDOMString& getError(xalan::XalanDOMString& result) const; -- cgit v1.2.3