Hi all,
Does anyone have used the '_start' and '_howmany' parameters with eXist ? When I try this url in the browser: http://MyServer/eXist/rest/db/MyCollection?_query= for $x in collection() where near($x//Label/text(), 'test') return $x&_start=1&_howmany=25 It works. When I try the same with a submission it gives me an error : "error while reading reponse body" Without the 2 parameters It works in the both cases. Marc -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
I use this via an xpl pipleline and in some src= instance initializations (_howmany=-1). Also, to a separate deployment of eXist, not the embedded eXist. Do you need to escape & to & ? --Hank On Dec 16, 2008, at 12:25 AM, Marc wrote: > Hi all, > > Does anyone have used the '_start' and '_howmany' parameters with > eXist ? > > When I try this url in the browser: > http://MyServer/eXist/rest/db/MyCollection?_query= for $x in > collection() where near($x//Label/text(), 'test') return > $x&_start=1&_howmany=25 > It works. > > When I try the same with a submission it gives me an error : "error > while reading reponse body" > > Without the 2 parameters It works in the both cases. > > Marc > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Yes, I have been using those parameters in eXist; and yes you need to
escape the & with & in XML. But I am surprised that if you don't you're not getting an error telling you that the XML is not valid. Alex On Dec 16, 2008, at 11:04 AM, Hank Ratzesberger <[hidden email]> wrote: > > I use this via an xpl pipleline and in some src= instance > initializations (_howmany=-1). Also, to a separate deployment > of eXist, not the embedded eXist. > > Do you need to escape & to & ? > > --Hank > > On Dec 16, 2008, at 12:25 AM, Marc wrote: > >> Hi all, >> >> Does anyone have used the '_start' and '_howmany' parameters with >> eXist ? >> >> When I try this url in the browser: >> http://MyServer/eXist/rest/db/MyCollection?_query= for $x in >> collection() where near($x//Label/text(), 'test') return >> $x&_start=1&_howmany=25 >> It works. >> >> When I try the same with a submission it gives me an error : "error >> while reading reponse body" >> >> Without the 2 parameters It works in the both cases. >> >> Marc >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > Hank Ratzesberger > NEES@UCSB > Institute for Crustal Studies, > University of California, Santa Barbara > 805-893-8042 > > > > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
This is with an eXist separate deployment.
I just try to add that "&_start=21&_howmany=20" at the end of the request. It does not works. Here's the code : The instance query : <xforms:instance id="query-instance"> <exist:query> <exist:text> for $x in collection() where near($x//Libelle/text(),"test?") return $x </exist:text> </exist:query> </xforms:instance> with : for $x in collection() where near($x//Libelle/text(),"test?") return $x&_start=21&_howmany=20 it gives me an error. The submission : <xforms:submission id="query-submission" ref="instance('query-instance')" action="http://marc:8080/eXist/rest/db/myCollection" method="post" replace="instance" instance="response"/> Thanks, Marc Alessandro Vernet a écrit : > Yes, I have been using those parameters in eXist; and yes you need to > escape the & with & in XML. But I am surprised that if you don't > you're not getting an error telling you that the XML is not valid. > > Alex > > On Dec 16, 2008, at 11:04 AM, Hank Ratzesberger > <[hidden email]> wrote: > >> >> I use this via an xpl pipleline and in some src= instance >> initializations (_howmany=-1). Also, to a separate deployment >> of eXist, not the embedded eXist. >> >> Do you need to escape & to & ? >> >> --Hank >> >> On Dec 16, 2008, at 12:25 AM, Marc wrote: >> >>> Hi all, >>> >>> Does anyone have used the '_start' and '_howmany' parameters with >>> eXist ? >>> >>> When I try this url in the browser: >>> http://MyServer/eXist/rest/db/MyCollection?_query= for $x in >>> collection() where near($x//Label/text(), 'test') return >>> $x&_start=1&_howmany=25 >>> It works. >>> >>> When I try the same with a submission it gives me an error : "error >>> while reading reponse body" >>> >>> Without the 2 parameters It works in the both cases. >>> >>> Marc >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> Hank Ratzesberger >> NEES@UCSB >> Institute for Crustal Studies, >> University of California, Santa Barbara >> 805-893-8042 >> >> >> >> >> >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Here I am !
Intead of adding &_start... at the end of the <exist:text> text I add attributes 'start' and 'max' on the <exist:query> element. eg: <xforms:instance id="query-instance"> <exist:query start="1" max="20"> <exist:text> for $x in collection() where near($x//Libelle/text(),"test?") return $x </exist:text> </exist:query> </xforms:instance> And now it works. Thanks for the help, Marc Marc a écrit : > This is with an eXist separate deployment. > I just try to add that "&_start=21&_howmany=20" at the end of > the request. It does not works. > > Here's the code : > > The instance query : > <xforms:instance id="query-instance"> > <exist:query> > <exist:text> > for $x in collection() where > near($x//Libelle/text(),"test?") return $x > </exist:text> > </exist:query> > </xforms:instance> > > with : for $x in collection() where > near($x//Libelle/text(),"test?") return > $x&_start=21&_howmany=20 > it gives me an error. > > The submission : > <xforms:submission id="query-submission" > ref="instance('query-instance')" > > action="http://marc:8080/eXist/rest/db/myCollection" method="post" > replace="instance" instance="response"/> > > Thanks, > Marc > > Alessandro Vernet a écrit : >> Yes, I have been using those parameters in eXist; and yes you need to >> escape the & with & in XML. But I am surprised that if you don't >> you're not getting an error telling you that the XML is not valid. >> >> Alex >> >> On Dec 16, 2008, at 11:04 AM, Hank Ratzesberger >> <[hidden email]> wrote: >> >>> >>> I use this via an xpl pipleline and in some src= instance >>> initializations (_howmany=-1). Also, to a separate deployment >>> of eXist, not the embedded eXist. >>> >>> Do you need to escape & to & ? >>> >>> --Hank >>> >>> On Dec 16, 2008, at 12:25 AM, Marc wrote: >>> >>>> Hi all, >>>> >>>> Does anyone have used the '_start' and '_howmany' parameters with >>>> eXist ? >>>> >>>> When I try this url in the browser: >>>> http://MyServer/eXist/rest/db/MyCollection?_query= for $x in >>>> collection() where near($x//Label/text(), 'test') return >>>> $x&_start=1&_howmany=25 >>>> It works. >>>> >>>> When I try the same with a submission it gives me an error : "error >>>> while reading reponse body" >>>> >>>> Without the 2 parameters It works in the both cases. >>>> >>>> Marc >>>> >>>> -- >>>> You receive this message as a subscriber of the [hidden email] >>>> mailing list. >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >>> Hank Ratzesberger >>> NEES@UCSB >>> Institute for Crustal Studies, >>> University of California, Santa Barbara >>> 805-893-8042 >>> >>> >>> >>> >>> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> >> > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |