aboutsummaryrefslogtreecommitdiff
path: root/src/transformation_facade.cc
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-04-26 15:17:07 +0200
committerAdrian Kummerländer2014-04-26 15:17:07 +0200
commit7e7b112e6c00bcce0b339652748079cf7c9f1430 (patch)
tree645cab42adbfa79f0a32ed85f00805f73263d9f6 /src/transformation_facade.cc
parent0b611b7bd28851fe8096b3d2c121c68e231ada11 (diff)
downloadInputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar.gz
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar.bz2
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar.lz
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar.xz
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar.zst
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.zip
Moved DomDocumentCache instances back into external function class
* A global DomDocumentCache instance would require key prefixing * switched internal data structure to std::unordered_map for average constant time access
Diffstat (limited to 'src/transformation_facade.cc')
-rw-r--r--src/transformation_facade.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/transformation_facade.cc b/src/transformation_facade.cc
index cb89263..38dfe93 100644
--- a/src/transformation_facade.cc
+++ b/src/transformation_facade.cc
@@ -15,8 +15,7 @@ namespace InputXSLT {
TransformationFacade::TransformationFacade(const std::string& transformation):
fs_context_(boost::filesystem::path(transformation).parent_path().string()),
transformation_{},
- transformer_(),
- document_cache_() {
+ transformer_() {
const xalan::XalanDOMString customNamespace(
"http://ExternalFunction.xalan-c++.xml.apache.org"
);
@@ -36,7 +35,7 @@ TransformationFacade::TransformationFacade(const std::string& transformation):
this->transformer_.installExternalFunction(
customNamespace,
xalan::XalanDOMString("read-directory"),
- InputXSLT::FunctionReadDirectory(this->fs_context_, this->document_cache_)
+ InputXSLT::FunctionReadDirectory(this->fs_context_)
);
this->transformer_.compileStylesheet(