synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: svn commit: r744814 - in /synapse/trunk/java/modules: core/src/main/java/org/apache/synapse/util/xpath/ extensions/src/main/java/org/apache/synapse/mediators/xquery/
Date Wed, 18 Feb 2009 09:20:48 GMT
> @@ -239,6 +240,11 @@
>             Context context = new Context(contextSupport);
>             context.setNodeSet(new SingletonList(env));
>             return context;
> +        } else if (obj instanceof OMNode) {
> +            ContextSupport baseContextSupport = getContextSupport();
> +            Context context = new Context(baseContextSupport);
> +            context.setNodeSet(new SingletonList(obj));
> +            return context;
>         } else {
>             return super.getContext(obj);
>         }

Indika,

Is the above change in SynapseXPath really required? If it is, can you
please also update the Javadoc of the method to explain in which way
the handling of OMNode objects is different from plain AXIOMXPath?

Regards,

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message