diff options
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicySetProcessor.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicySetProcessor.java b/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicySetProcessor.java index e35eed338a..1908994578 100644 --- a/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicySetProcessor.java +++ b/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicySetProcessor.java @@ -259,10 +259,11 @@ public class PolicySetProcessor extends BaseStAXArtifactProcessor implements StA if ( !prefix.equals(XMLConstants.DEFAULT_NS_PREFIX)) return prefix; } + // We have to have some prefix here to use before the function name. Otherwise the // XPathFunctionResolver will never be called. - NamespaceContextImpl nsImpl = (NamespaceContextImpl) nsContext; - nsImpl.register("sca_internal", SCA11_NS); + xpathHelper.registerPrefix("sca_internal", SCA11_NS, nsContext); + return "sca_internal"; } |