aboutsummaryrefslogtreecommitdiff
path: root/src/plattform_guard.cc
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-22 19:58:15 +0200
committerAdrian Kummerländer2014-05-22 19:58:15 +0200
commit4d0569669e01434b3bb9f689cd176f590344bea8 (patch)
tree131ea5f48f34bafd01ffa133971739f68e551556 /src/plattform_guard.cc
parentbbe16940e7a6f97128e99ad7642b964e48ecde2e (diff)
downloadInputXSLT-4d0569669e01434b3bb9f689cd176f590344bea8.tar
InputXSLT-4d0569669e01434b3bb9f689cd176f590344bea8.tar.gz
InputXSLT-4d0569669e01434b3bb9f689cd176f590344bea8.tar.bz2
InputXSLT-4d0569669e01434b3bb9f689cd176f590344bea8.tar.lz
InputXSLT-4d0569669e01434b3bb9f689cd176f590344bea8.tar.xz
InputXSLT-4d0569669e01434b3bb9f689cd176f590344bea8.tar.zst
InputXSLT-4d0569669e01434b3bb9f689cd176f590344bea8.zip
Added include path resolution to external file access functions
* if a given file can not be located relative to the transformation's location both "read-file" and "read-xml-file" will now try to resolve the path using the IncludeEntityResolver * all external functions based on the FunctionBase template are now provided with a pointer to a IncludeEntityResolver instance * it is determined by the external function implementation whether include path resolution will be used
Diffstat (limited to 'src/plattform_guard.cc')
-rw-r--r--src/plattform_guard.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plattform_guard.cc b/src/plattform_guard.cc
index 8ffbbb9..d66c8b5 100644
--- a/src/plattform_guard.cc
+++ b/src/plattform_guard.cc
@@ -25,19 +25,19 @@ PlattformGuard::PlattformGuard(const std::vector<std::string>& path):
xalan::XalanTransformer::installExternalFunctionGlobal(
customNamespace,
xalan::XalanDOMString("read-file"),
- InputXSLT::FunctionReadFile()
+ InputXSLT::FunctionReadFile(&this->include_resolver_)
);
xalan::XalanTransformer::installExternalFunctionGlobal(
customNamespace,
xalan::XalanDOMString("read-xml-file"),
- InputXSLT::FunctionReadXmlFile()
+ InputXSLT::FunctionReadXmlFile(&this->include_resolver_)
);
xalan::XalanTransformer::installExternalFunctionGlobal(
customNamespace,
xalan::XalanDOMString("read-directory"),
- InputXSLT::FunctionReadDirectory()
+ InputXSLT::FunctionReadDirectory(&this->include_resolver_)
);
xalan::XalanTransformer::installExternalFunctionGlobal(