aboutsummaryrefslogtreecommitdiff
path: root/src/function/read_xml_file.h
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-04-27 17:24:30 +0200
committerAdrian Kummerländer2014-04-27 17:24:30 +0200
commit947a8389728ff7d052fa820f598da3c17802f3d1 (patch)
treec24c7f19ea9b7b6fb6999e1c065b38598ebd27df /src/function/read_xml_file.h
parent5fde046561caa11a58abd13cf1f469fdce5c53f1 (diff)
downloadInputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar
InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar.gz
InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar.bz2
InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar.lz
InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar.xz
InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.tar.zst
InputXSLT-947a8389728ff7d052fa820f598da3c17802f3d1.zip
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
Diffstat (limited to 'src/function/read_xml_file.h')
-rw-r--r--src/function/read_xml_file.h6
1 files changed, 3 insertions, 3 deletions
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 <xalanc/XPath/XObjectFactory.hpp>
#include <xalanc/XPath/Function.hpp>
#include <xalanc/XPath/XObject.hpp>
-#include <xalanc/XercesParserLiaison/XercesParserLiaison.hpp>
#include <string>
+#include <memory>
#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<DomDocumentCache> document_cache_;
const xalan::XalanDOMString& getError(xalan::XalanDOMString& result) const;