This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 3dca99dfccfc CAMEL-27486: camel-xpath - the namespaceMappings YAML 
example is a full route (#30718)
3dca99dfccfc is described below

commit 3dca99dfccfcd09af9e333b8110cf918105915c3
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 24 12:35:56 2026 +0100

    CAMEL-27486: camel-xpath - the namespaceMappings YAML example is a full 
route (#30718)
    
    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"
 ----
 ====
 

Reply via email to