davsclaus opened a new pull request, #3391:
URL: https://github.com/apache/camel-kamelets/pull/3391

   Fixes #3390.
   
   `xpath-filter-action` gets a `namespaces` option for XML with more than one 
namespace, such as `o=urn:example:orders,c=urn:example:customers`. It maps to 
the new `namespaceMappings` option of the xpath language (CAMEL-27486, 
apache/camel#30693). Before this, the description told you to fall back to 
`local-name()` and `namespace-uri()`.
   
   - `namespacePrefix` and `namespaceUri` stay. For the same prefix, they win 
over a mapping in `namespaces`, as Camel defines it.
   - Mappings are separated by commas, and spaces around them are ignored. New 
lines are not documented: a `\n` in a `kamelet:` URI parameter does not reach 
the mapping.
   - A value without `=` fails the integration when it starts, with `Invalid 
namespace mapping: o. Use prefix=uri, ...`. I checked this by running it. It's 
not in the Citrus test, because `camel cli verify` cannot read an integration 
that has already exited.
   - The Kamelet is new in 4.24 (#3375), so no upgrade note is needed.
   
   **Test:** a new `timer:multi` route in `xml/xpath-filter-action-route.yaml`. 
The order and its customer are in two namespaces.
   - The order of Ann is kept (1); the one of Bob (2) and one whose customer is 
in the order's namespace (3) are dropped.
   - Spaces after a comma work (4).
   - `namespacePrefix` overrides a wrong `o=` mapping (5).
   
   `XmlIT` passes (3 tests) against a local Camel build that includes 
CAMEL-27486. The published snapshot of 2026-11-24 14:36 UTC also includes it.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to