[ 
https://issues.apache.org/jira/browse/CAMEL-27486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on CAMEL-27486 started by Claus Ibsen.
-------------------------------------------
> camel-core-model - xpath, xquery and xtokenize get a namespaceMappings 
> option, for several namespaces inline in one string
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27486
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27486
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-yaml-dsl
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.24.0
>
>
> The XML namespaces of an xpath, xquery or xtokenize expression are a list of 
> prefix/uri entries ({{namespace}}), or a reference to a {{Namespaces}} bean 
> ({{namespacesRef}}). To configure several namespaces from one value, such as 
> a Kamelet option, a route must declare a Namespaces bean (CAMEL-27485) and 
> refer to it, which is cumbersome when it is used once.
> Add a string option {{namespaceMappings}} to these expressions, inline in the 
> DSL:
> {noformat}
> - filter:
>     xpath:
>       expression: "/c:order/w:wine = 'Rioja'"
>       namespaceMappings: "c=http://acme.com/cheese,w=http://acme.com/wine";
> {noformat}
> * The value is parsed when the route is created, after property placeholders 
> are resolved, so a Kamelet can use {{namespaceMappings: "{{namespaces}}"}}.
> * Same syntax as {{Namespaces(String)}} of CAMEL-27485: mappings separated by 
> commas or new lines, prefix and URI split at the first {{=}}.
> * XML, YAML and Java DSL, plus the route dump writers.
> * It cannot be named {{namespaces}}: that name is the Map setter of the 
> {{NamespaceAware}} SPI.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to