This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch fix/CAMEL-27486-xpath-doc-yaml-example in repository https://gitbox.apache.org/repos/asf/camel.git
commit e1ef24fc6861c800744e8f9dc4cef67010d4328a Author: Claus Ibsen <[email protected]> AuthorDate: Tue Nov 24 11:25:17 2026 +0100 CAMEL-27486: camel-xpath - the namespaceMappings YAML example is a full route The YAML example of "Several namespaces in one string" was a bare filter step, which EipDocExamplesTest (camel-yaml-dsl-validator) rejects: "property 'filter' is not defined in the schema". Show it inside a route, in the canonical form. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../org/apache/camel/catalog/docs/xpath-language.adoc | 17 +++++++++++------ .../camel-xpath/src/main/docs/xpath-language.adoc | 17 +++++++++++------ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/xpath-language.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/xpath-language.adoc index 7f461a33f068..8e5a55e5a71a 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/xpath-language.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/xpath-language.adoc @@ -129,12 +129,17 @@ YAML:: + [source,yaml] ---- -- filter: - xpath: - expression: "/c:order/w:wine = 'Rioja'" - namespaceMappings: "{{namespaces}}" - steps: - - to: "mock:rioja" +- route: + from: + uri: "direct:start" + steps: + - filter: + expression: + xpath: + expression: "/c:order/w:wine = 'Rioja'" + namespaceMappings: "{{namespaces}}" + steps: + - to: "mock:rioja" ---- ==== diff --git a/components/camel-xpath/src/main/docs/xpath-language.adoc b/components/camel-xpath/src/main/docs/xpath-language.adoc index 7f461a33f068..8e5a55e5a71a 100644 --- a/components/camel-xpath/src/main/docs/xpath-language.adoc +++ b/components/camel-xpath/src/main/docs/xpath-language.adoc @@ -129,12 +129,17 @@ YAML:: + [source,yaml] ---- -- filter: - xpath: - expression: "/c:order/w:wine = 'Rioja'" - namespaceMappings: "{{namespaces}}" - steps: - - to: "mock:rioja" +- route: + from: + uri: "direct:start" + steps: + - filter: + expression: + xpath: + expression: "/c:order/w:wine = 'Rioja'" + namespaceMappings: "{{namespaces}}" + steps: + - to: "mock:rioja" ---- ====
