camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Diesler (JIRA)" <>
Subject [jira] [Created] (CAMEL-8314) Cannot select text() using xquery
Date Wed, 04 Feb 2015 13:09:34 GMT
Thomas Diesler created CAMEL-8314:

             Summary: Cannot select text() using xquery 
                 Key: CAMEL-8314
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.14.1
            Reporter: Thomas Diesler

In [XQueryTransformTest|]
we see this

<people><person name='Jonathan'/></people>

the expected result is 

<person name=\"Jonathan\"/>

Note, this is the entire node - not just the value "Jonathan"

When trying to select a node value like this 


I get
Caused by: net.sf.saxon.trans.XPathException: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR:
An attempt was made to insert a node where it is not permitted. 
	at net.sf.saxon.dom.DOMWriter.characters( [Saxon-HE-9.5.1-5.jar:]
	at net.sf.saxon.event.ProxyReceiver.characters( [Saxon-HE-9.5.1-5.jar:]
	at net.sf.saxon.event.TreeReceiver.characters( [Saxon-HE-9.5.1-5.jar:]
	at net.sf.saxon.evpull.EventIteratorToReceiver.copy( [Saxon-HE-9.5.1-5.jar:]
	at net.sf.saxon.query.XQueryExpression.pull( [Saxon-HE-9.5.1-5.jar:]
	at org.apache.camel.component.xquery.XQueryBuilder.evaluateAsDOM(
	at org.apache.camel.component.xquery.XQueryBuilder.evaluate( [camel-saxon-2.14.1.jar:2.14.1]

This message was sent by Atlassian JIRA

View raw message