Mik,

XPath expressions in synapse.xml are designed to work exactly the same
way as in an XSL stylesheet. For example:

<xslt source="$body/a:SomeElement" xmlns:a="urn:some.namespace" .../>

Note that (for consistency with XSLT) the default namespace is
explicitly excluded, i.e. the following will NOT work:

<syn:xslt source="$body/SomeElement" xmlns="urn:some.namespace" .../>

For the second part of your question, can you explain a bit more the
problem you are facing?

Andreas

On Thu, Dec 18, 2008 at 10:31,  <[email protected]> wrote:
>
> How can I specify namespaces, including a default namespace,
> for an XPath expression in the xslt mediator 'source' attribute ?
>
> It would be nice if the default source was the root element for POX messages,
> i.e. not a SOAP expression that fails for POX -?but I suppose the default 
> expression?
> could be made to work if the $body variable resolves to '/' for?POX messages.
>
> Mik
>
> ________________________________________________________________________
> AOL Email goes Mobile! You can now read your AOL Emails whilst on the move. 
> Sign up for a free AOL Email account with unlimited storage today.
>

Reply via email to