Hi Michael, Is it possible that you may have mixed up two event types, that's why you are not getting the header set right? pay:PartInventoryLow vs. pay:PartInventoryShortage. Previous examples you posted use the PartInventoryShortage, but your XPath uses PartInventoryLow.
Ahhh, I see now that your Type element is of type String. I thought you were looking to resolve the local name of its child element if there was one. That's why I suggested the local-name function which operates on a nodeset, not a String. I think that the {namespace}local-part notation is specific to the Java world rather than belonging to the XML space. So there's probably no standard functions to parse such strings in the XPath spec. You may want to create a custom XPath function to parse the input as a regex and return a sequence of (NamespaceURI, Local part). Hope that helps. Regards, Raúl. On 7 December 2011 15:55, MichaelAtSAG <mebevilac...@gmail.com> wrote: > @Raul > > Here is the XML for the message: > > > <?xml version="1.0" encoding="UTF-8"?> > <evt:Event xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:evt="http://namespaces.softwareag.com/EDA/Event" > > xmlns:pay=" > http://namespaces.softwareag.com/EDA/WebM/Sample/InventoryMgmt/1.0"> > <evt:Header> > > <evt:Type>{ > http://namespaces.softwareag.com/EDA/WebM/Sample/InventoryMgmt/1.0}PartInventoryShortage > </evt:Type> > <evt:Start>2011-01-30T16:53:47.918-06:00</evt:Start> > <evt:End>2011-01-30T16:53:48.918-06:00</evt:End> > <evt:Kind>Event</evt:Kind> > <evt:Version>1.0</evt:Version> > <evt:CorrelationID></evt:CorrelationID> > </evt:Header> > <evt:Body> > <pay:PartInventoryShortage> > <pay:Part> > <pay:ItemID>ABC123</pay:ItemID> > <pay:ItemName>Widget for thingy</pay:ItemName> > <pay:Model>ACME </pay:Model> > <pay:Color>Grey</pay:Color> > <pay:Shape>Oval</pay:Shape> > </pay:Part> > <pay:InventoryLevel>5</pay:InventoryLevel> > <pay:DesiredInventoryLevel>45</pay:DesiredInventoryLevel> > <pay:SupplierInventoryLevel>28</pay:SupplierInventoryLevel> > </pay:PartInventoryShortage> > </evt:Body> > </evt:Event> > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Velocity-without-java-tp5042885p5056082.html > Sent from the Camel - Users mailing list archive at Nabble.com. >