jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daglian, Michael \(IT\)" <Michael.Dagl...@morganstanley.com>
Subject Xpath "or queries"
Date Sat, 01 Apr 2006 00:34:56 GMT
Hi everyone,

I was wondering what the proper syntax is for executing or statements
within an xpath query. According to the spec something like the
following should be possible (although totally contrived in this case):

//element(*, nt:file) or //element(*, mix:lockable)

However, this throws a ClassCastException in the XPathQueryBuilder on
line 322 (it appears that in the invocation of the visit method the
SimpleNode id indicates a type of JJTROOTDESCENDANTS at a certain point
but the data is actually an OrQueryNode and hence the cast to a
PathQueryNode fails). I am using the 0.9 release currently. Apologies if
this question was previously discussed or fixed in a post 0.9 candidate.

Best Regards,

-- Mike

NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality
or privilege, and use is prohibited.

View raw message