[EMAIL PROTECTED] wrote:

Vadim,

Thank you for your quick reply. I reviewed the references and modified the
query to include the -s for both name spaces.
The result is essentially the same. With the -s the additional error
"mismatched namespace prefixes and uris" is also generated.



I've seen this error before, can't remember where...


I can understand the original error in that the query is generating a
xq:Query element and inserting into it the search attribute. I expect that
the namespace declaration is not being added to the xq:Query element
resulting in the error. Is there a way to log or trace the construction of
the xq:Query element during the query?



See xml-xindice\java\src\org\apache\xindice\core\query\QueryUtil.java


Also, XPath queries return different results based upon the query string:
the document, document element, xq:Query, or null.


Yes.


My uneducated
expectation would be that all querys would return a xq:Query wrapping the
results, if any.



That's not currently the case, API is different. See http://xml.apache.org/xindice/guide-xpath.html

Support for non-element results was added later, by adding xq:query wrapper around results. Document and element results behave same as before, without wrapper, for backward compatibility.

Vadim



Reply via email to