|
Re: Problem with intersect: msg#00183text.xml.exist
Hi, Thank you very much for your reply. I've been trying since this morning to access the Basic Query Interface page on http://exist.sourceforge.net/ and its been saying page cannot be displayed. Any idea what the problem is and when it will be fixed? I am using IE6.0 on Windows XP machine. Hope its not a browser problem... Thanks, Saritha Quoting Wolfgang Meier <wolfgang@xxxxxxxxxxxx>: > Hi, > > > /PLAY/PERSONAE/TITLE[contains(.,'Dramatis')] or > > /PLAY/ACT/TITLE[contains(.,'Act I')] and it returns 185 hits. And if > I > > try /PLAY/PERSONAE/TITLE[contains(.,'Dramatis')] intersect > > /PLAY/ACT/TITLE[contains(.,'Act I')] I get 0 hits. But when I view > > individual files in /db/Shakespeare/play, I did find atleast 2 files > > that satisfied this condition. Can someone explain why intersect > does > > not work in this kind of queries? Is there anything wrong in the > syntax > > that I have used to query? > > /PLAY/PERSONAE/TITLE selects the title elements below > PERSONAE, /PLAY/ACT/TITLE those below ACT. These are different node sets > and > the intersection of both node sets is indeed empty. For the query to > work, > you have to do the intersection on a common node, e.g.: > > /PLAY[PERSONAE/TITLE[contains(., 'Dramatis')]] > intersect > /PLAY[ACT/TITLE[contains., 'Act I')]] > > Wolfgang > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement > on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Exist-open mailing list > Exist-open@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/exist-open > ************************* Saritha Bhandarkar Research Assistant CES, ASU. Tempe AZ-85281 Ph.No:Res.(480)894-2906 Off.(480)965-1514 ************************* ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: New snapshot: 00183, Wolfgang Meier |
|---|---|
| Next by Date: | Re: New snapshot: 00183, Etienne Bernard |
| Previous by Thread: | Re: Problem with intersecti: 00183, Wolfgang Meier |
| Next by Thread: | Problem with complex queries: 00183, Saritha Bhandarkar |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |