aboutsummaryrefslogtreecommitdiff
path: root/src/function/transform.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/function/transform.cc')
-rw-r--r--src/function/transform.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/function/transform.cc b/src/function/transform.cc
index 7e6207c..059260d 100644
--- a/src/function/transform.cc
+++ b/src/function/transform.cc
@@ -34,9 +34,6 @@ xercesc::DOMDocument* FunctionTransform::constructDocument(
std::string targetPath,
xalan::XObjectPtr parameterObject
) {
- transformationPath = fsContext.resolve(transformationPath).string();
- targetPath = fsContext.resolve(targetPath).string();
-
xercesc::DOMDocument* const domDocument(
xercesc::DOMImplementation::getImplementation()->createDocument(
nullptr,
@@ -50,15 +47,22 @@ xercesc::DOMDocument* FunctionTransform::constructDocument(
);
ResultNodeFacade result(domDocument, rootNode, "transformation");
- result.setAttribute("target", targetPath);
+
+ result.setAttribute(
+ "target",
+ boost::filesystem::path(targetPath).filename().string()
+ );
if ( auto transformation = TransformationFacade::try_create(
- transformationPath,
+ fsContext.resolve(transformationPath).string(),
this->include_resolver_,
handleErrors(result)
) ) {
try {
- transformation->generate(targetPath, parameterObject);
+ transformation->generate(
+ fsContext.resolve(targetPath).string(),
+ parameterObject
+ );
result.setAttribute("result", "success");
}