Project

Profile

Help

Passing node parameter from java into XQuery

Added by Anonymous over 19 years ago

Legacy ID: #2943840 Legacy Poster: vguiraud (vguiraud)

I am trying to pass an argument whose type is org.w3c.dom.Node into Xquery. As you notify, I declare an external variable in the query and then supply its value using setParameter() method. The request doesn’t work because Saxon seems to convert the node to its string value. How can I pass node parameter into the query ? Thanks for your help.


Replies (1)

RE: Passing node parameter from java into XQu - Added by Anonymous over 19 years ago

Legacy ID: #2947459 Legacy Poster: Michael Kay (mhkay)

I believe that passing a DOM Node to the setParameter() method should work. Can you please provide more detail of how the parameter is declared and used in your query, and how the value is supplied in your Java application. Michael Kay

    (1-1/1)

    Please register to reply