From 29a6c1ab8b82491bcd54ad027e45644fde09ef59 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Thu, 1 May 2014 16:22:41 +0200 Subject: Changed namespace for external functions to InputXSLT * "InputXSLT" is defined as "function.inputxslt.application" * functions can now be accessed like "InputXSLT:read-file('../')" * updated test transformation accordingly * the XML standard does not require namespaces to be real, valid HTTP-URIs but treats them as plain strings --- dummy/transform.xsl | 15 +++++++++------ src/transformation_facade.cc | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/dummy/transform.xsl b/dummy/transform.xsl index eab7a81..c955a85 100644 --- a/dummy/transform.xsl +++ b/dummy/transform.xsl @@ -2,15 +2,18 @@ - + indent="yes" +/> @@ -18,7 +21,7 @@
- + Could not read text file. @@ -30,7 +33,7 @@
- + Could not read XML file. @@ -46,7 +49,7 @@
- + Could not read directory. diff --git a/src/transformation_facade.cc b/src/transformation_facade.cc index 38dfe93..846c586 100644 --- a/src/transformation_facade.cc +++ b/src/transformation_facade.cc @@ -17,7 +17,7 @@ TransformationFacade::TransformationFacade(const std::string& transformation): transformation_{}, transformer_() { const xalan::XalanDOMString customNamespace( - "http://ExternalFunction.xalan-c++.xml.apache.org" + "function.inputxslt.application" ); this->transformer_.installExternalFunction( -- cgit v1.2.3