Hello Abdel, It is really hard for me to imagine that this query would not work: it this what you think is sent to the repository, or did you see it through the proxy? If you look with a proxy, you also see the result, right? I cannot believe it will return more then 1 single result.
But, fortunately, you can easily test it: Go to http://www.hippocms.org/display/CMS/How+to+query+the+Hippo+Repository+fr om+a+Java+class Takes you about 5 minutes and then you can execute a dasl from the command line. Just use your dasl below, and you see the result in the command line. Is it possible that by accident you are doing 2 dasls? Or that instead of <d:nresults>1</d:nresults> It says <d:nresults></d:nresults> or something that is not a number? Regards Ard > > Here is my dasl > <d:searchrequest xmlns:d="DAV:" > xmlns:slide="http://jakarta.apache.org/slide/" > xmlns:h="http://hippo.nl/cms/1.0"> > <d:basicsearch> > <d:select> > <d:prop> > <h:type/> > > </d:prop> > </d:select> > > <d:from> > <d:scope> > <d:href/> > <d:depth>infinity</d:depth> > </d:scope> > </d:from> > > <d:where> > > <d:and> > <d:not-is-collection/> > <d:eq> > <d:prop> > <h:type/> > </d:prop> > <d:literal>ankeiler</d:literal> > </d:eq> > > </d:and> > > </d:where> > > > > <d:limit> > <d:nresults>1</d:nresults> > </d:limit> > > </d:basicsearch> > </d:searchrequest> > > > NB. All documents have the type "ankeiler" > -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Namens Ard Schrijvers > Verzonden: Thursday, June 12, 2008 10:08 AM > Aan: Hippo CMS development public mailinglist > Onderwerp: RE: [HippoCMS-dev] Dasl query: May be is this a bug...?? > > I cannot imagine we wouldn't have noticed a bug like this > before, so I think something is wrong with your dasl. Is it > possible to mail your dasl request? (set a proxy between your > app and the repository, and copy-paste the dasl. I think you > will see the error) > > Ard > > > Hi, > > > > > > > > I have a list of documents, and I want to select only one > document of > > this list. > > > > Thus I have made a dasl-query and I set the limit of the result to > > "1" > > > > <d:limit> > > > > <d:nresults>1</d:nresults> > > > > </d:limit> > > > > > > > > But my dasl select all documents of this list. > > > > > > > > NB when I set the limit of the results to 2 or more, the dasl works > > fine.. > > > > > > > > Can anybody help me with this..? > > > > > > > > Thanks in advande.. > > > > Abdel. > > > > > > Disclaimer > > > > Dit bericht met eventuele bijlagen is vertrouwelijk en uitsluitend > > bestemd voor de geadresseerde. Indien u niet de bedoelde ontvanger > > bent, wordt u verzocht de afzender te waarschuwen en dit > bericht met > > eventuele bijlagen direct te verwijderen en/of te > vernietigen. Het is > > niet toegestaan dit bericht en eventuele bijlagen te > vermenigvuldigen, > > door te sturen, openbaar te maken, op te slaan of op andere > wijze te > > gebruiken. Ordina N.V. en/of haar groepsmaatschappijen > accepteren geen > > verantwoordelijkheid of aansprakelijkheid voor schade die > voortvloeit > > uit de inhoud en/of de verzending van dit bericht. > > > > This e-mail and any attachments are confidential and are solely > > intended for the addressee. If you are not the intended recipient, > > please notify the sender and delete and/or destroy this message and > > any attachments immediately. > > It is prohibited to copy, to distribute, to disclose or to use this > > e-mail and any attachments in any other way. Ordina N.V. and/or its > > group companies do not accept any responsibility nor > liability for any > > damage resulting from the content of and/or the > transmission of this > > message. > > ******************************************** > > Hippocms-dev: Hippo CMS development public mailinglist > > > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > > Disclaimer > > Dit bericht met eventuele bijlagen is vertrouwelijk en > uitsluitend bestemd voor de geadresseerde. Indien u niet de > bedoelde ontvanger bent, wordt u verzocht de afzender te > waarschuwen en dit bericht met eventuele bijlagen direct te > verwijderen en/of te vernietigen. Het is niet toegestaan dit > bericht en eventuele bijlagen te vermenigvuldigen, door te > sturen, openbaar te maken, op te slaan of op andere wijze te > gebruiken. Ordina N.V. en/of haar groepsmaatschappijen > accepteren geen verantwoordelijkheid of aansprakelijkheid > voor schade die voortvloeit uit de inhoud en/of de verzending > van dit bericht. > > This e-mail and any attachments are confidential and are > solely intended for the addressee. If you are not the > intended recipient, please notify the sender and delete > and/or destroy this message and any attachments immediately. > It is prohibited to copy, to distribute, to disclose or to > use this e-mail and any attachments in any other way. Ordina > N.V. and/or its group companies do not accept any > responsibility nor liability for any damage resulting from > the content of and/or the transmission of this message. > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > ******************************************** Hippocms-dev: Hippo CMS development public mailinglist
