On Tue, Nov 10, 2009 at 3:30 PM, bhusted <
brian.husted@...> wrote:
>
> I reviewed that page extensively and found a reference to using the namespace
>
>
http://camel.apache.org/xml/variables/system-properties>
> What I am really looking for is an example that shows if it is possible to
> use a variable in the Xpath expression.
>
> So in Java I do the following: System.setProperty("MY_PROP", "MY_VALUE");
>
> Then I define the system-property namespace and give it a prefix of "sys".
>
> What would the resulting Xpath expression look like? Below are the examples
> I tried with no luck.
>
> <camel:filter>
> <camel:xpath>/myns:SomeTag = ${sys.MY_PROP}</camel:xpath>
> </camel:filter>
>
> AND
>
> <camel:filter>
> <camel:xpath>/myns:SomeTag = sys:MY_PROP</camel:xpath>
> </camel:filter>
>
>
Hi
Do you mind putting together a small camel route that tries to filter
using xpath with that system property.
And provide a XML document that passed and one that does not.
Then we can use that for unit test to see if there is a gap in Camel.
Create a ticket in JIRA about this and attach the files there.
--
Claus Ibsen
Apache Camel Committer
Author of Camel in Action:
http://www.manning.com/ibsen/Open Source Integration:
http://fusesource.comBlog:
http://davsclaus.blogspot.com/Twitter:
http://twitter.com/davsclaus