Getting javax.xml.transform.TransformerException: Unknown nodetype: local-name using XPath functions on Fuse 7

Solution Verified - Updated -

Issue

  • Trying to use the XPath functions the following exception is displayed:
Caused by: javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: Unknown nodetype: local-name

    at org.apache.xpath.jaxp.XPathImpl.compile(XPathImpl.java:408)

    at org.apache.camel.builder.xml.XPathBuilder.createXPathExpression(XPathBuilder.java:1055)

    at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:837)

    ... 19 more

Caused by: javax.xml.transform.TransformerException: Unknown nodetype: local-name

    at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:610)
  • How XPath functions can be used in Fuse 7.

Environment

  • Red Hat Fuse 7.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content