<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig" time="08:07:16.949+01:00"/>
<join host="81-208-83-237.fastres.net" login="n=[giulio]" nick="[giulio]" time="08:25:45.177+01:00"/>
<join host="p5B20C8AE.dip.t-dialin.net" login="n=wolf" nick="wolf77" time="09:01:57.167+01:00"/>
<part host="p5B20C8AE.dip.t-dialin.net" login="n=wolf" nick="wolf77" reason="Read error: 104 (Connection reset by peer)" time="09:15:00.661+01:00"/>
<join host="81-232-110-188-no16.tbcn.telia.com" login="n=ljo" nick="ljo" time="09:23:39.065+01:00"/>
<join host="p5B20C8AE.dip.t-dialin.net" login="n=wolf" nick="wolf77" time="09:40:43.206+01:00"/>
<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig_" time="10:15:29.399+01:00"/>
<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig__" time="10:19:57.003+01:00"/>
<part host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig_" reason="Read error: 104 (Connection reset by peer)" time="10:19:57.273+01:00"/>
<join host="smtp.jacaranda.co.uk" login="n=robinwyl" nick="robinwyles" time="10:25:14.033+01:00"/>
<message nick="robinwyles" time="10:25:49.301+01:00">hi... any xquery experts here?</message>
<message nick="MoBy" time="10:26:45.297+01:00">not me</message>
<message nick="MoBy" time="10:26:53.999+01:00"><- beginner</message>
<message nick="robinwyles" time="10:27:56.684+01:00">likewise, I'll post anyway... just in case there's one lurking :)</message>
<message nick="robinwyles" time="10:28:28.497+01:00">I am trying to do something like the following:</message>
<message nick="robinwyles" time="10:28:31.091+01:00">let $entries := util:eval(local:build-query())</message>
<message nick="robinwyles" time="10:28:31.982+01:00">for $entry in $entries</message>
<message nick="robinwyles" time="10:28:32.002+01:00">order by $entry/local:some-function-to-get-order-by()</message>
<message nick="robinwyles" time="10:28:32.022+01:00">return $entry</message>
<message nick="wolf77" time="10:29:12.837+01:00">looks ok so far</message>
<message nick="robinwyles" time="10:29:14.4+01:00">all works, except for the dynamic building of the "order by" clause</message>
<message nick="robinwyles" time="10:29:47.034+01:00">that is what I am stuck on, how to get the order by from a function</message>
<message nick="wolf77" time="10:29:58.299+01:00">oh, yes, why aren't you passing $entry as a function parameter?</message>
<message nick="wolf77" time="10:30:13.73+01:00">passing it in the context won't work</message>
<message nick="robinwyles" time="10:30:33.487+01:00">my function to get order-by simply returns the required xpath as a string </message>
<message nick="robinwyles" time="10:30:38.704+01:00">is this wrong?</message>
<message nick="wolf77" time="10:31:30.665+01:00">the order by clause has to return an atomic value which will be used to sort the current $entry into the result set</message>
<message nick="wolf77" time="10:32:00.145+01:00">i.e. it has to return a simple value like a string, a number or whatever</message>
<part host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig" reason="Read error: 110 (Connection timed out)" time="10:32:17.709+01:00"/>
<message nick="robinwyles" time="10:33:08.067+01:00">hmmm.... then how can I use that atomic value to determine on which xpath to sort?</message>
<message nick="wolf77" time="10:33:45.288+01:00">I don't understand what you mean by that</message>
<message nick="wolf77" time="10:34:15.358+01:00">you need a function which returns a value. that function will probably contain some xpath.</message>
<message nick="perig__" time="10:34:47.582+01:00">if ("1" then "oderby 1")else if ("2" then "orderby2")... I guess</message>
<message nick="robinwyles" time="10:36:10.304+01:00">but the value it should return would be what? the value of the xpath I need to sort on, or the xpath itself?</message>
<message nick="wolf77" time="10:36:28.499+01:00">the value of the xpath</message>
<message nick="robinwyles" time="10:36:31.874+01:00">i.e. "/title" or "this is some title"</message>
<message nick="robinwyles" time="10:36:49.948+01:00">aha, okay</message>
<message nick="wolf77" time="10:36:51.991+01:00">both are just treated as strings</message>
<message nick="wolf77" time="10:37:12.739+01:00">that's why you were using the util:eval() function to dynamically evaluate your main query expression ;-)</message>
<message nick="robinwyles" time="10:37:18.898+01:00">yes</message>
<message nick="robinwyles" time="10:37:31.385+01:00">and I tried that for the dynamic evaluation of the orderby too</message>
<message nick="wolf77" time="10:37:37.984+01:00">you can do the same in the order by, yes</message>
<message nick="robinwyles" time="10:37:55.918+01:00">but it didn't work... I think because I was doing $entry/util:eval(local:some-function-to-get-order-by())</message>
<message nick="wolf77" time="10:38:00.424+01:00">though you need to be aware that order by is called once for every entry in your result</message>
<message nick="robinwyles" time="10:38:19.991+01:00">okay, understood... let me go try this out</message>
<message nick="robinwyles" time="10:38:30.635+01:00">thanks a lot for your help!</message>
<message nick="wolf77" time="10:38:38.005+01:00">welcome</message>
<message nick="perig__" time="10:38:59.765+01:00">wolf77 : is $entry/util:eval("foo") suppose to work ? I'm not sure</message>
<message nick="perig__" time="10:39:04.922+01:00">supposed</message>
<message nick="wolf77" time="10:39:17.959+01:00">no, the context item is not passed</message>
<message nick="robinwyles" time="10:39:24.528+01:00">I don't think it does work</message>
<message nick="perig__" time="10:39:28.213+01:00">Ah OK :-)</message>
<message nick="robinwyles" time="10:39:58.354+01:00">I think it would need to be local:some-function-to-get-order-by($entry)</message>
<message nick="robinwyles" time="10:40:13.355+01:00">if I understand wolf correctly</message>
<message nick="perig__" time="10:40:14.716+01:00">Well, I have a pending patch for that which roughly does what eval-inline does</message>
<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig___" time="10:40:50.455+01:00"/>
<part host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig__" reason="Read error: 104 (Connection reset by peer)" time="10:40:50.795+01:00"/>
<message nick="wolf77" time="10:41:01.991+01:00">Do we really need to pass the context sequence? After all, local variables are visible within the util:eval.</message>
<message nick="robinwyles" time="10:41:15.759+01:00">what exactly does eval-inline do? I was looking at that yesterday, it wasn't clear to me...</message>
<message nick="wolf77" time="10:41:45.74+01:00">that's the question... I'm not sure we need the distinction between eval-inline and eval anymore.</message>
<message nick="perig" time="10:41:54.963+01:00">wolf77 : Well, I think yes. This is standard XPath IMHO, each steps is passed to the following one</message>
<message nick="perig" time="10:42:02.713+01:00">hehe ;-)</message>
<message nick="wolf77" time="10:42:28.879+01:00">Yeah, that's right</message>
<message nick="perig" time="10:45:45.365+01:00">pretty easy : Eval, line 242</message>
<message nick="perig" time="10:46:04.181+01:00">... repalce nullby contextSEquence</message>
<message nick="wolf77" time="10:46:10.99+01:00">ah yes</message>
<message nick="perig" time="10:46:25.65+01:00">eval-inline could be easily deprecated</message>
<message nick="wolf77" time="10:46:42.353+01:00">yups, we should do that</message>
<message nick="robinwyles" time="10:47:36.396+01:00">got it working! thank you so much...</message>
<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig___" time="10:48:49.115+01:00"/>
<part host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig___" reason="Read error: 104 (Connection reset by peer)" time="10:51:53.385+01:00"/>
<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig____" time="10:51:53.756+01:00"/>
<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig_____" time="10:56:40.856+01:00"/>
<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig______" time="11:02:16.982+01:00"/>
<part host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig" reason="Read error: 110 (Connection timed out)" time="11:06:44.265+01:00"/>
<part host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig____" reason="Read error: 110 (Connection timed out)" time="11:13:15.056+01:00"/>
<part host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig_____" reason="Read error: 110 (Connection timed out)" time="11:20:26.812+01:00"/>
<part host="192.100.104.170" login="n=ros" nick="betito" reason="Read error: 110 (Connection timed out)" time="11:38:22.263+01:00"/>
<message nick="robinwyles" time="11:48:19.314+01:00">me again... wondering how I can also dynamically select the order by direction... this is what I have so far</message>
<message nick="robinwyles" time="11:48:26.804+01:00">let $entries := util:eval(local:build-query())</message>
<message nick="robinwyles" time="11:48:26.914+01:00">for $entry in $entries</message>
<message nick="robinwyles" time="11:48:27.285+01:00">order by util:eval(james:get-order-by())</message>
<message nick="robinwyles" time="11:48:27.585+01:00">return $entry </message>
<message nick="robinwyles" time="11:48:58.577+01:00">returning it from james:get-order-by() doesn't seem to work</message>
<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig______" time="12:01:15.869+01:00"/>
<part host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig" reason="Read error: 110 (Connection timed out)" time="12:13:35.723+01:00"/>
<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig_______" time="12:15:16.851+01:00"/>
<part host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig" reason="Read error: 104 (Connection reset by peer)" time="12:20:55.751+01:00"/>
<part host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig______" reason="Read error: 110 (Connection timed out)" time="12:30:04.296+01:00"/>
<join host="192.100.104.170" login="n=ros" nick="betito" time="12:30:41.126+01:00"/>
<join host="dslb-084-056-034-053.pools.arcor-ip.net" login="n=ml" nick="rendermani" time="13:24:29.551+01:00"/>
<message nick="rendermani" time="13:24:35.058+01:00">hi</message>
<part host="dslb-084-056-034-053.pools.arcor-ip.net" login="n=ml" nick="rendermani" reason="Read error: 104 (Connection reset by peer)" time="13:27:35.153+01:00"/>
<join host="dslb-084-056-034-053.pools.arcor-ip.net" login="n=ml" nick="rendermani" time="13:30:03.685+01:00"/>
<message nick="rendermani" time="13:30:09.853+01:00">hi again !</message>
<message nick="rendermani" time="13:31:18.166+01:00">a have a small question, does somebody know how util:import-module works? I get the error, that the namespace is not defined...</message>
<message nick="rendermani" time="13:31:57.639+01:00">... when i want to use a function with util:function after</message>
<message nick="rendermani" time="13:32:24.836+01:00">util:import ... util:function doesnt know the ns</message>
<message nick="rendermani" time="13:32:52.254+01:00">tried 1.2, 1.3 latest release</message>
<part host="81-232-110-188-no16.tbcn.telia.com" login="n=ljo" nick="ljo" reason="Remote closed the connection" time="13:43:35.097+01:00"/>
<message nick="wolf77" time="14:15:09.56+01:00">what if you call declare-namespace after the import-module? maybe this is a bug and the module namespace is not declared automatically</message>
<message nick="rendermani" time="14:19:16.495+01:00">i tried declaring the ns with declare namespace... i'll try it with declare-namespace...</message>
<part host="192.100.104.170" login="n=ros" nick="betito" reason="Read error: 104 (Connection reset by peer)" time="14:19:55.167+01:00"/>
<message nick="wolf77" time="14:20:53.647+01:00">ah, one possible problem: util:function needs to resolve the function call at compile time</message>
<message nick="wolf77" time="14:22:24.24+01:00">but import-module will declare the namespace at runtime only</message>
<message nick="wolf77" time="14:22:49.324+01:00">so both won't work together</message>
<message nick="rendermani" time="14:25:25.456+01:00">ok</message>
<message nick="rendermani" time="14:25:37.302+01:00">i just tried with declaring the ns</message>
<message nick="rendermani" time="14:25:47.256+01:00">with declare-namespace but didnt work</message>
<message nick="wolf77" time="14:26:46.817+01:00">we would need to make util:function fully dynamic. right now, it is somewhere between an ordinary function call and a dynamic invocation via util:eval</message>
<message nick="rendermani" time="14:27:35.463+01:00">i allready tried it with util:eval but i couldnt get it working with newer version </message>
<message nick="rendermani" time="14:29:44.248+01:00">i will have to do this later, because i have to do some customer things right know, are you online later?</message>
<message nick="wolf77" time="14:37:54.333+01:00">at least in the evening, yes</message>
<message nick="robinwyles" time="14:43:00.559+01:00">Hi again... we are using the REST server functionality of eXist - in particular posting xqueries to eXist for execution... now we would also like to define some common functions in a xquery module. Ideally we would like to keep this module outside of eXist itself, with this in mind where is the best place to put it, and how to import it?</message>
-<message nick="robinwyles" time="14:43:18.363+01:00">
I have tried importing like so "import module namespace james = "
<a href="http://jacaranda.co.uk/xquery/james">http://jacaranda.co.uk/xquery/james</a>
" at "resource:com/jac/james/api/james.xq";" but this doesn't seem to work...
</message>
<message nick="wolf77" time="14:52:28.5+01:00">you want to load it via the Java classloader?</message>
<message nick="robinwyles" time="14:53:41.259+01:00">well, it doesn't matter so much how we load it, just that we would like to keep it with the xqueries which we are posting to eXist</message>
<message nick="wolf77" time="14:53:47.548+01:00">"resource:..." means the xq is stored in the Java classpath</message>
<message nick="robinwyles" time="14:53:51.533+01:00">yes</message>
<message nick="robinwyles" time="14:53:58.603+01:00">which it is</message>
<message nick="wolf77" time="14:54:14.935+01:00">then it should be found if your package is</message>
<message nick="robinwyles" time="14:54:37.215+01:00">hmmm, that\s what I had assumed... </message>
<message nick="wolf77" time="14:54:48.491+01:00">ok, but note: the query is executed on the server</message>
<message nick="wolf77" time="14:55:03.461+01:00">so the query has to be in the server's classpath</message>
<message nick="robinwyles" time="14:56:09.751+01:00">okay... the application has an embedded version of eXist (in fact it is eXist mounted as a Cocoon 2.2 block), and we have another block containing the xqueries, which we post to the eXist block... so they should both have the same class path</message>
<message nick="robinwyles" time="15:12:30.783+01:00">ok... from the logs I see it seems to be finding and loading the module:</message>
<message nick="robinwyles" time="15:12:42.99+01:00">2008-05-09 15:12:02,350 SocketListener0-1 DEBUG http.ContextLoader - try getResource com/jac/james/api/james.xq from sun.misc.Launcher$AppClassLoader@a9c85c</message>
<message nick="robinwyles" time="15:12:43.42+01:00">2008-05-09 15:12:02,350 SocketListener0-1 DEBUG http.ContextLoader - found file:/Users/robinwyles/Work/james/james-api/target/classes/com/jac/james/api/james.xq</message>
<message nick="robinwyles" time="15:12:43.751+01:00">2008-05-09 15:12:02,350 SocketListener0-1 DEBUG xquery.XQueryContext - Loading module from resource:com/jac/james/api/james.xq</message>
<message nick="robinwyles" time="15:12:43.781+01:00"/>
<message nick="robinwyles" time="15:13:22.383+01:00">but, xquery using functions defined in the module are still not working</message>
<message nick="wolf77" time="15:19:47.366+01:00">so what's the error message?</message>
<join host="p5B20C8AE.dip.t-dialin.net" login="n=wolf" nick="wolf77_" time="15:26:09.185+01:00"/>
<part host="smtp.jacaranda.co.uk" login="n=robinwyl" nick="robinwyles" time="16:10:03.763+01:00"/>
<join host="smtp.jacaranda.co.uk" login="n=robinwyl" nick="robinwyles" time="16:10:38.73+01:00"/>
<message nick="robinwyles" time="16:11:32.774+01:00">I can't see any error message</message>
<message nick="robinwyles" time="16:15:11.18+01:00">I do have this in the log though:</message>
<message nick="robinwyles" time="16:15:12.062+01:00">2008-05-09 16:14:01,334 SocketListener0-1 DEBUG http.RESTServer - stylesheet = null</message>
<message nick="robinwyles" time="16:15:12.432+01:00">2008-05-09 16:14:01,334 SocketListener0-1 DEBUG http.RESTServer - query = null</message>
<message nick="robinwyles" time="16:15:39.329+01:00">if I move the functions in the loaded module back into the original xquery itself it works</message>
<part host="81-208-83-237.fastres.net" login="n=[giulio]" nick="[giulio]" reason="Read error: 104 (Connection reset by peer)" time="17:00:34.059+01:00"/>
<part host="smtp.jacaranda.co.uk" login="n=robinwyl" nick="robinwyles" reason="" time="17:26:13.49+01:00"/>
<join host="81-232-110-188-no16.tbcn.telia.com" login="n=ljo" nick="ljo" time="18:44:23.07+01:00"/>
<part host="dslb-084-056-034-053.pools.arcor-ip.net" login="n=ml" nick="rendermani" reason="Read error: 104 (Connection reset by peer)" time="19:33:34.528+01:00"/>
<join host="209.183.19.174" login="n=Snak" nick="polvo" time="19:58:35.967+01:00"/>
<message nick="wolf77" time="20:31:04.003+01:00">..</message>
<join host="209.183.19.174" login="n=Snak" nick="polvo" time="21:04:10.08+01:00"/>
<join host="62.232.6.162" login="n=XIRCProx" nick="betatester" time="21:22:02.096+01:00"/>
<message nick="betatester" time="21:22:44.144+01:00">hi</message>
<message nick="betatester" time="21:22:48.139+01:00">the new generated SVN log feature is very nice!</message>
<join host="h171235.upc-h.chello.nl" login="n=DiZzZz" nick="DiZzZz" time="21:23:05.132+01:00"/>
<message nick="DiZzZz" time="21:24:06.676+01:00">heho</message>
<join host="c-68-61-98-13.hsd1.mi.comcast.net" login="n=duck1123" nick="duck1123" time="21:27:21.33+01:00"/>
<join host="79.112.45.49" login="i=adrian" nick="adi112358" time="21:27:56.147+01:00"/>
<message nick="adi112358" time="21:30:16.838+01:00">I was looking at the eXist developer guide</message>
-<message nick="adi112358" time="21:30:24.349+01:00">
<a href="http://exist-db.org/devguide_xmldb.html">http://exist-db.org/devguide_xmldb.html</a>
</message>
<message nick="adi112358" time="21:30:39.329+01:00">I'm sure I'm missing something silly, but I can't make the examples work</message>
<part host="62.232.6.162" login="n=XIRCProx" nick="betatester" time="21:30:56.542+01:00"/>
<message nick="adi112358" time="21:31:21.787+01:00">take the first example, I tried to modify it so that it works without command line arguments</message>
-<message nick="adi112358" time="21:31:24.4+01:00">
<a href="http://pastebin.com/m1833c5b9">http://pastebin.com/m1833c5b9</a>
</message>
<message nick="adi112358" time="21:31:45.719+01:00">however, I get this exception: "Exception in thread "main" java.lang.ClassNotFoundException: org.exist.xmldb.DatabaseImpl"</message>
<message nick="adi112358" time="21:31:56.564+01:00">the lib jars aren't missing</message>
<part host="c-68-61-98-13.hsd1.mi.comcast.net" login="n=duck1123" nick="duck1123" time="21:34:19.888+01:00"/>
<message nick="adi112358" time="21:35:32.587+01:00">hm... I am missing the xmldb jar</message>
<message nick="adi112358" time="21:37:57.224+01:00">no, it's in the library</message>
<message nick="adi112358" time="21:38:16.139+01:00">"org.exist.xmldb.DatabaseImpl" that's wrong</message>
<message nick="DiZzZz" time="21:40:30.993+01:00">you could check the 'samples' directory</message>
<message nick="DiZzZz" time="21:40:44.511+01:00">these have been verified recently</message>
<message nick="DiZzZz" time="21:40:56.207+01:00">version 1.2</message>
<join host="dslb-084-056-034-053.pools.arcor-ip.net" login="n=ml" nick="rendermani" time="21:44:30.678+01:00"/>
<message nick="rendermani" time="21:44:38.889+01:00">hi</message>
<message nick="adi112358" time="21:44:47.591+01:00">package org.exist.storage.serializers does not exist</message>
<message nick="adi112358" time="21:45:06.687+01:00">package org.exist.xmldb does not exist</message>
<message nick="adi112358" time="21:47:30.082+01:00">a lot of these org.exist packages seem to be missing, or I'm not finding them o.O</message>
<message nick="adi112358" time="21:49:02.337+01:00">ah, they are not packaged into jars</message>
<message nick="adi112358" time="21:49:16.086+01:00">the examples are not standalone?</message>
<message nick="rendermani" time="21:49:55.8+01:00">wolf77, i was playing around a little with eval now. but it was very slow. a small test with util:eval took 8sek, with util:function 0sek</message>
<message nick="rendermani" time="21:50:57.173+01:00">i can paste the 7 lines here, its really weired that this takes so long</message>
<message nick="rendermani" time="21:52:32.042+01:00">ok, afk, i will paste it:</message>
<message nick="rendermani" time="21:52:42.276+01:00">declare function local:testme ($val as xs:string) {</message>
<message nick="rendermani" time="21:52:42.556+01:00"> $val</message>
<message nick="rendermani" time="21:52:42.576+01:00">};</message>
<message nick="rendermani" time="21:52:42.596+01:00">declare function local:callTestme($c) {</message>
<message nick="rendermani" time="21:52:42.616+01:00"> util:eval('local:testme($c)')</message>
<message nick="rendermani" time="21:52:43.167+01:00">};</message>
<message nick="rendermani" time="21:52:45.33+01:00">local:callTestme("c2")</message>
<message nick="rendermani" time="21:53:11.976+01:00">8 seconds...</message>
<part host="h171235.upc-h.chello.nl" login="n=DiZzZz" nick="DiZzZz" time="22:01:02.725+01:00"/>
<join host="209.183.19.174" login="n=Snak" nick="polvo" time="22:03:13.153+01:00"/>
<message nick="wolf77" time="22:05:50.006+01:00">rendermani: sure, compiling the expression can often take a long time</message>
<message nick="adi112358" time="22:06:03.304+01:00">I don't understand how to resolve java imports for packages that begin with "org.exist"</message>
<message nick="adi112358" time="22:06:20.016+01:00">none of the samples work because most of the references are dead</message>
<message nick="adi112358" time="22:06:57.607+01:00">package org.exist.Namespaces does not exist (one example)</message>
<message nick="adi112358" time="22:07:23.533+01:00">I'm doing something silly, I know...</message>
<message nick="wolf77" time="22:12:01.27+01:00">is exist.jar in your classpath?</message>
<message nick="rendermani" time="22:13:01.702+01:00">yes, but that is extreme slow compared to previous versions</message>
<message nick="rendermani" time="22:13:55.104+01:00">on other versions it takes 0 seconds</message>
<message nick="rendermani" time="22:14:03.516+01:00">1.2, 1.1</message>
<message nick="wolf77" time="22:14:05.729+01:00">aha, what is the other version?</message>
<message nick="wolf77" time="22:14:11.497+01:00">mmmh, ok</message>
<message nick="rendermani" time="22:14:15.342+01:00">on 1.3 8 seconds</message>
<message nick="adi112358" time="22:14:26.617+01:00">wolf: ah, yes. I only added the jars from the lib folder</message>
<message nick="adi112358" time="22:14:35.079+01:00">I said it was something silly :p</message>
<message nick="adi112358" time="22:14:44.091+01:00">seems to work now</message>
<message nick="wolf77" time="22:14:49.478+01:00">well, the new version copies a lot of stuff from the outer context. I have to test this myself ...</message>
<message nick="rendermani" time="22:15:10.367+01:00">wolf77: i just wanted to say that, perhaps you test it</message>
<message nick="wolf77" time="22:16:34.311+01:00">mmmh, running your simple query above on trunk takes less than 200ms here</message>
<message nick="rendermani" time="22:17:01.027+01:00">hmm... i got the mem... version from svn</message>
<message nick="wolf77" time="22:17:18.891+01:00">the in-memory branch?</message>
<message nick="wolf77" time="22:17:26.221+01:00">eXist-memproc</message>
<message nick="rendermani" time="22:17:30.807+01:00">yes</message>
<message nick="rendermani" time="22:17:32.57+01:00">that was it</message>
<message nick="wolf77" time="22:17:43.975+01:00">ok, that's a discontinued one</message>
<message nick="wolf77" time="22:17:49.913+01:00">it has been merged into trunk</message>
<message nick="rendermani" time="22:17:52.307+01:00">ok</message>
<message nick="rendermani" time="22:18:00.708+01:00">which one is the right 1.3 ?</message>
<message nick="wolf77" time="22:18:10.381+01:00">trunk/eXist</message>
<message nick="rendermani" time="22:18:27.364+01:00">ok, then i will get that </message>
<message nick="rendermani" time="22:18:31.38+01:00">and test again </message>
<message nick="wolf77" time="22:19:13.337+01:00">I have the old memproc branch as well, but query times are the same</message>
<message nick="rendermani" time="22:19:49.746+01:00">with previous versions, some things didnt work: util:eval('$c') didn't work, because $c wasn't in the context, allthough declared before.. i will try the new one now</message>
<message nick="adi112358" time="22:24:10.921+01:00">so xqueries on an existdb can be made as if all component documents were part of a larger dataset</message>
<message nick="adi112358" time="22:24:24.329+01:00">neat</message>
<message nick="wolf77" time="22:24:30.467+01:00">yes</message>
<message nick="adi112358" time="22:25:17.071+01:00">is it desireable to go even further and treat the DB as a virtual, large XML file?</message>
<message nick="adi112358" time="22:25:34.194+01:00">as if all docs were merged, with /db as root</message>
<message nick="adi112358" time="22:26:18.935+01:00">someDoc.xml to be understood as xml elements of the sort <someDoc> ...</message>
<message nick="wolf77" time="22:26:51.609+01:00">well, this has been proposed by some users already, but it would not align well with the specs and I doubt it would be useful in all cases</message>
<message nick="wolf77" time="22:27:14.52+01:00">selecting the root of your expression with fn:collection() is quite convenient</message>
<message nick="adi112358" time="22:43:56.661+01:00">ok, do DB collections need to adhere to a schema?</message>
<message nick="adi112358" time="22:44:16.608+01:00">or can they just hold heterogeneous documents</message>
<message nick="wolf77" time="22:45:20.044+01:00">you do not even need to reference a schema or DTD</message>
<message nick="wolf77" time="22:46:49.576+01:00">and you can have non-XML documents in a collection as well</message>
<message nick="adi112358" time="22:47:56.978+01:00">aha</message>
<message nick="wolf77" time="22:48:05.029+01:00">right, I need to leave. Good night!</message>
<message nick="adi112358" time="22:48:10.937+01:00">thanks!</message>
<part host="dslb-084-056-034-053.pools.arcor-ip.net" login="n=ml" nick="rendermani" reason="" time="22:48:52.082+01:00"/>
</xlog>