From 71a637be86177e82a8fc0c654639c2fa83c13f5d Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 29 Oct 2014 16:11:34 +0100 Subject: Activated namespace comprehension for all `XercesDOMParser` instances * this is possibly a breaking change for all applications built on either `FunctionExternalCommand` or `FunctionReadFile` ** e.g. meta datasource XPath queries in _StaticXSLT_ will have to be changed to accomodate this * the reason for doing this was to fix the behaviour when reading namespaced XML files ** e.g. XSL stylesheets could only be queried with a clunky XPath expression such as `$transformation/self::*[name() = 'xsl:stylesheet']` instead of simply `$transformation/self::xsl:stylesheet` *** this was caused by the now activated namespace comprehension in `xercesc::XercesDOMParser` which is disabled by default *** it caused all local node names to be converted into their namespace prefixed version, e.g. `local-name()` returned `xsl:stylesheet` instead of `stylesheet` --- src/function/base.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/function/base.h') diff --git a/src/function/base.h b/src/function/base.h index 5c2d317..e2239e7 100644 --- a/src/function/base.h +++ b/src/function/base.h @@ -56,7 +56,6 @@ class FunctionBase : public xalan::Function { xalan::XalanDocument* const domDocument( this->callConstructDocument( parameters, - locator, typename IndexSequence::type() ) ); @@ -117,7 +116,6 @@ class FunctionBase : public xalan::Function { template inline xalan::XalanDocument* callConstructDocument( const XObjectArgVectorType& parameters, - const xalan::Locator*, Sequence ) const { const FilesystemContext context; -- cgit v1.2.3