From: Michael B. <mbe...@mb...> - 2007-01-29 17:56:05
|
Bill Beck wrote: > Thanks, and I was hopeful that correcting the typo would help, but even > with: > > http://10.1.1.41:8080/exist/rest/db/dja?_query=//div1 > > no results, and there are many div1 elements in the xml file. Namespaces? If your document contains namespaced data (TEI P5 for example) you must bind a namespace prefix to the relevant items in order to get the matches you expect. And that prefix (which can be anything) *does* have to be properly bound to the namespace identifier as used in your document. Just using the same prefix as in your document in your query without binding it to right identifier won't work. Doing the binding via a REST GET might be tricky, so I'd suggest submitting via a PUT instead. > > You mean that you aren't getting all STAGEDIR nodes in all documents in the > > Shakespeare collection? I do on my now somewhat out-of-date installation. So > > if it isn't happening for you, that may be a regression. > > Could you explain what you mean by a regression? I mean it's just possible that recent modifications to the REST i/f, made after my current build, broke something. > BTW: this server is > online, so if you have the time to quickly try that URL, it might > illustrate the behavior. Running on Mac OS X 10.4.x. I sincerely hope that a server with an RFC 1918 address like 10.1.1.41 isn't "on-line" outside your LAN, at least not on that interface, otherwise the Internet is in even a worse state than the pundits at Davos have been saying over the past few days. You could try running that same query against the eXist demo server on the main site and comparing the results against your installation. Michael Beddow |