Author: asankha
Date: Tue May 15 04:52:31 2007
New Revision: 538142

URL: http://svn.apache.org/viewvc?view=rev&rev=538142
Log:
register get-property() XPath extension function in the Synapse NS, the null NS 
and for the prefixes 'synapse' and 'syn'

Modified:
    
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2MessageContext.java

Modified: 
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2MessageContext.java
URL: 
http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2MessageContext.java?view=diff&rev=538142&r1=538141&r2=538142
==============================================================================
--- 
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2MessageContext.java
 (original)
+++ 
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2MessageContext.java
 Tue May 15 04:52:31 2007
@@ -380,10 +380,12 @@
                 // set function context into XPath
                 SimpleFunctionContext fc = new XPathFunctionContext();
                 fc.registerFunction(Constants.SYNAPSE_NAMESPACE, 
"get-property", getPropertyFunc);
+                fc.registerFunction(null, "get-property", getPropertyFunc);
                 xpath.setFunctionContext(fc);
 
                 // register namespace for XPath extension function
                 xpath.addNamespace("synapse", Constants.SYNAPSE_NAMESPACE);
+                xpath.addNamespace("syn", Constants.SYNAPSE_NAMESPACE);
 
             } catch (JaxenException je) {
                 handleException("Error setting up the Synapse XPath " +



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to