On Sat, Jul 25, 2009 at 7:23 PM, zoorg<[email protected]> wrote: > > Hi, > > I tried to use the XPATH tokenize function in my camel workflow, but it does > not work. > > Here is a piece of the code : > > from("direct:getEquipmentsState") > .splitter(new EquipmentStateAgregator(), true).xpath("//equipment") > > .setProperty("equipmentIp").xpath("tokenize(equipment/equipmentID/text(),'_')[1]", > String.class) > .to("log:body?showProperties=true") > .end() > .to("bean:diagnosticBean?method=buildResponse"); > > > And when sending my xml message to this endpoint I have the following error > : > > javax.xml.transform.TransformerException: Cannot find the function : > tokenize > > Is there a way to use it inside a camel xpath function?
Sorry for late reply. Another Camel user is asking this as well. Did you get anything working? A sample using JDK only would help to see what / if anything is missing in Camel to support functions. > > Thanks for your help > > Regards > > William > -- > View this message in context: > http://www.nabble.com/using-xpath-tokenize-function-inside-camel-tp24659816p24659816.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
