From a0ddbb0ccba20123fc4e8243d962f86232282612 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sun, 4 May 2014 20:26:29 +0200 Subject: Changed FilesystemContext constructor to accept xalan::Locator* * all instantiations of a FilesystemContext are currently based on information provided by a xalan::Locator instance provided to the external function execute member method * this change hides the stylesheet path extraction from the actual function implementation --- src/function/read_xml_file.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/function/read_xml_file.cc') diff --git a/src/function/read_xml_file.cc b/src/function/read_xml_file.cc index dc98fc7..0fa21fe 100644 --- a/src/function/read_xml_file.cc +++ b/src/function/read_xml_file.cc @@ -40,15 +40,7 @@ xalan::XObjectPtr FunctionReadXmlFile::execute( const xalan::XObjectPtr argument, const xalan::Locator* locator ) const { - const FilesystemContext fs_context( - boost::filesystem::path( - *XercesStringGuard( - xercesc::XMLString::transcode( - locator->getSystemId() + 7 - ) - ) - ).parent_path().string() - ); + const FilesystemContext fs_context(locator); const boost::filesystem::path filePath( fs_context.resolve(argument->str()) -- cgit v1.2.3