I wonder what query actually gets sent. I send you by separate email a version of the XMLDBProcessor with some debug. You should replace these files in orbeon.jar (after backuping orbeon.jar). Also, add the following to your log4j.xml:

<category name="org.orbeon.oxf.processor.xmldb.XMLDBProcessor">
    <priority value="debug"/>
</category>

With this, the actual query sent to eXist should be sent out to the configured logger (by default the console). Maybe that will tell us something.

-Erik

Matthew J. Graham wrote:

Hi,

I am trying to send generic queries to an embedded eXist database. The user can enter an XQuery into a textarea on the form and then this is applied to the db contents. The xpl
I am using is the same as the XMLDB Sandbox.


Now this works with simple XPath type queries: //*[local-name() = 'resource']
but when I try a more complicated XQuery:


declare namespace vr = "http://www.ivoa.net/xml/VOResource/v0.10";;
for $vr in //vr:resource where contains($vr//vr:description, "NULL")
return $vr

I get nothing; however, I have Java code which sends the query straight into eXist and this works:

try {
// Get query service
XPathQueryService service = (XPathQueryService) collection.getService(
"XPathQueryService", "1.0");
// Apply query on collection
ResourceSet resultSet = service.query(queryString);
...


This seems to be exactly the same as the Orbeon code in XMLDBProcessor.

I have tried using a compiled XQuery and changing the eXist jar but it still does not work so I think it must be something in Orbeon or one of the included jars.

Any ideas?

    Cheers,

Matthew



------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to