diff options
author | bdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68> | 2010-06-23 04:03:27 +0000 |
---|---|---|
committer | bdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68> | 2010-06-23 04:03:27 +0000 |
commit | ea1e0402d7f3408bb0747ced4fa481b6efc81bf0 (patch) | |
tree | 55f8b213f821228526eeb1486b6f7b138f9177e8 /sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany | |
parent | 7dafb5576bd9715760139fcf4a769891e3740cf4 (diff) |
Remove NameSpaceContextImpl class reference from assembly-xml
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@957102 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany')
-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"; } |