Camel
  1. Camel
  2. CAMEL-4858

xpath expression with $header with saxon may throw exception if header did not exist

    Details

    • Estimated Complexity:
      Unknown

      Description

      See CAMEL-747

      We should return an empty String instead of a Void.class, as this works with both JDK + Saxon XPathEngine.
      Saxon does not work with the Void.class.

        Activity

        Hide
        Claus Ibsen added a comment -

        The workaround is to not use $headerName but a Camel function, using the Camel function namespace, to use the header function.

        See details at: http://camel.apache.org/xpath

        Show
        Claus Ibsen added a comment - The workaround is to not use $headerName but a Camel function, using the Camel function namespace, to use the header function. See details at: http://camel.apache.org/xpath

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development