<join host="p5B20DDFD.dip.t-dialin.net" login="n=wolf" nick="wolf77" time="08:54:39.014+01:00"/>
<join host="dslb-084-056-024-092.pools.arcor-ip.net" login="n=ml" nick="rendermani" time="13:14:24.163+01:00"/>
<message nick="rendermani" time="13:14:34.397+01:00">hi!</message>
<message nick="rendermani" time="13:14:52.181+01:00">can it be that document-uri doesm</message>
<message nick="rendermani" time="13:15:02.455+01:00">doesn't work on exist 1.3</message>
<message nick="rendermani" time="13:15:11.357+01:00">trunk/eXist ...</message>
<message nick="rendermani" time="13:15:16.223+01:00">?</message>
<part host="81-232-110-188-no16.tbcn.telia.com" login="n=ljo" nick="ljo" reason="Remote closed the connection" time="14:26:54.081+01:00"/>
<message nick="wolf77" time="14:27:19.515+01:00">it definitely does work</message>
<message nick="wolf77" time="14:27:35.847+01:00">but it does now work exactly as required by the specs</message>
<message nick="rendermani" time="14:35:07.32+01:00">ok, i will try</message>
<message nick="rendermani" time="14:35:12.768+01:00">mom</message>
<message nick="wolf77" time="14:37:21.733+01:00">Hint: "Returns the empty sequence if the node is not a document node."</message>
<message nick="rendermani" time="14:38:21.584+01:00">let $n := document("/db/webrender/de/Home.xml")/* return document-uri($n)</message>
<message nick="rendermani" time="14:38:28.373+01:00">... thanks</message>
<message nick="rendermani" time="14:38:30.637+01:00">that was it</message>
<message nick="rendermani" time="14:39:07.447+01:00">let $n := document("/db/webrender/de/Home.xml")/* return document-uri(root($n))</message>
<message nick="rendermani" time="14:40:24.762+01:00">i did the includes without eval and util:function now. i included all modules staticly, and called the function with if then .. .</message>
<message nick="rendermani" time="14:40:52.209+01:00">thats takes quite long the first time, but when it is precompiled/cached it is really fast </message>
<message nick="wolf77" time="14:41:05.056+01:00">ok, though not a final solution</message>
<message nick="rendermani" time="14:41:13.918+01:00">no</message>
<message nick="wolf77" time="14:41:19.506+01:00">I still wonder why util:eval took so long for you</message>
<message nick="rendermani" time="14:41:34.196+01:00">yes. even util:eval("134")</message>
<message nick="rendermani" time="14:42:05.548+01:00">3.3 sek.. 1.3 sek the second tine</message>
<message nick="wolf77" time="14:42:24.805+01:00">with the newest trunk?</message>
<message nick="rendermani" time="14:42:34.458+01:00">i got it yesterday</message>
<message nick="rendermani" time="14:42:50.82+01:00">you told me the url : trunk/eXist</message>
<message nick="rendermani" time="14:43:46.205+01:00">util:function/util:call is very fast </message>
<message nick="rendermani" time="14:45:11.221+01:00">util:eXist-version() :1.3.0dev</message>
<message nick="rendermani" time="14:46:29.527+01:00">system:get-build():20020111</message>
<message nick="rendermani" time="14:51:10.699+01:00">the thing with the document-uri(), will in work as required by the spec in future ? </message>
<message nick="wolf77" time="14:53:50.967+01:00">it does work as required now</message>
<message nick="wolf77" time="14:54:06.928+01:00">document-uri passes all xquery tests</message>
<message nick="rendermani" time="14:57:39.587+01:00">ok...</message>
<message nick="rendermani" time="14:59:36.876+01:00">i think the best would to do it with util:import / util:function </message>
<message nick="rendermani" time="14:59:53.609+01:00">is it difficult to to make them work together?</message>
<message nick="wolf77" time="15:01:02.973+01:00">I already tried it once, but I gave it up for some reason. If I remember well, I had problems to execute util:function fully dynamically.</message>
<message nick="rendermani" time="15:02:53.944+01:00">so the solution with including all, i described before is the best at the moment</message>
<message nick="wolf77" time="15:03:08.774+01:00">for now, yes</message>
<message nick="wolf77" time="15:03:17.606+01:00">but I have to check this again</message>
<message nick="rendermani" time="15:03:19.679+01:00">i can change it to eval, or function when one of them works perfectly</message>
<message nick="wolf77" time="15:03:29.152+01:00">I'll look into util:eval performance later</message>
<message nick="rendermani" time="15:03:51.833+01:00">ok, tell me when i can help reproducing it.</message>
<message nick="wolf77" time="15:04:07.954+01:00">ok</message>
<message nick="rendermani" time="15:04:41.26+01:00">thank, i really love exist, but i only come when i have problems i can't solve!:)</message>
<message nick="wolf77" time="15:05:06.434+01:00">hehe, well, that's what we all do most of the time</message>
<message nick="rendermani" time="15:05:54.079+01:00"> :)</message>
<message nick="rendermani" time="15:29:40.906+01:00">is it allready in the svn trunk?</message>
<message nick="rendermani" time="15:29:45.252+01:00">the document-uri </message>
<message nick="wolf77" time="15:30:05.28+01:00">yes, document-uri(root($node)) should work as expected</message>
<message nick="wolf77" time="15:30:42.22+01:00">I don't like it really, but that's how the spec defines it</message>
<message nick="rendermani" time="15:30:57.48+01:00">oh. build failed, mom</message>
<message nick="wolf77" time="16:02:38.773+01:00">ok, I'm going out into the sun for a while.</message>
<part host="dslb-084-056-024-092.pools.arcor-ip.net" login="n=ml" nick="rendermani" reason="" time="19:00:17.499+01:00"/>
<join host="p5B20DDFD.dip.t-dialin.net" login="n=wolf" nick="wolf77" time="20:42:22.248+01:00"/>
<join host="81-232-110-188-no16.tbcn.telia.com" login="n=ljo" nick="ljo" time="21:01:27.254+01:00"/>
<join host="81-196-83-67.bucuresti.cablelink.ro" login="n=thor" nick="rebelThor" time="21:13:35.583+01:00"/>
<message nick="rebelThor" time="21:19:55.8+01:00">hey guys, got a sec?</message>
<message nick="wolf77" time="21:40:36.024+01:00">Hi</message>
<message nick="rebelThor" time="21:42:53.721+01:00">hi wolf77, i'm trying to make a backup using the RpcApi, and i'm having issues understanding the backup function</message>
-<message nick="rebelThor" time="21:43:36.79+01:00">
<a href="http://exist.sourceforge.net/api/org/exist/xmlrpc/RpcAPI.html#backup">http://exist.sourceforge.net/api/org/exist/xmlrpc/RpcAPI.html#backup</a>
(org.exist.security.User,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)
</message>
<message nick="rebelThor" time="21:44:02.114+01:00">this basically backups a collection in another one? i want to backup the collection into a zip file, any clues?</message>
<message nick="wolf77" time="21:44:23.143+01:00">let me check ...</message>
<message nick="wolf77" time="21:46:04.16+01:00">ah, looks like you can't backup into a zip using this function</message>
<message nick="wolf77" time="21:46:54.578+01:00">it would be possible basically, but the implementation of this function is too restrictive</message>
<message nick="wolf77" time="21:47:04.722+01:00">we could change that, but not now</message>
<message nick="rebelThor" time="21:47:12.933+01:00">any clues on how to do this in another way?</message>
<message nick="wolf77" time="21:47:33.301+01:00">yes, you could do it via XQuery</message>
<message nick="wolf77" time="21:47:39.009+01:00">moment ...</message>
<message nick="wolf77" time="21:50:06.259+01:00">ok, there's a system task you can use:</message>
-<message nick="wolf77" time="21:50:07.941+01:00">
<a href="http://www.exist-db.org/backup.html#backuptask">http://www.exist-db.org/backup.html#backuptask</a>
</message>
<message nick="wolf77" time="21:50:27.938+01:00">the documentation sets it up as an automatic job</message>
<message nick="wolf77" time="21:50:46.594+01:00">but you can also call it once via XQuery function system:trigger-system-task</message>
<message nick="rebelThor" time="21:51:08.543+01:00">so i would set a system task, call it, then remove it?</message>
<message nick="wolf77" time="21:52:10.517+01:00">no, you can fire it off just once using trigger-system-task</message>
<message nick="rebelThor" time="21:52:36.923+01:00">i see, thanks a lot</message>
<message nick="rebelThor" time="21:55:38.64+01:00">one more issue :( if i use this, the backup will be created on the system with the eXist server. I somehow need to get the file through eXist via RPC, because i'm doing an application that resides on some other server, talking to the database via RPC only</message>
<message nick="wolf77" time="21:56:58.729+01:00">I see. Another possibility: use eXist's own Backup class. It can do remote backups.</message>
<message nick="rebelThor" time="21:57:00.672+01:00">i've found the "file-read" function, seems to do the trick</message>
<message nick="rebelThor" time="21:57:19.047+01:00">hm, how exactly do you use that class?</message>
<message nick="wolf77" time="21:57:26.146+01:00">it's simple:</message>
<message nick="wolf77" time="21:57:59.231+01:00">Backup backup = new Backup(username, password, destination, XmldbURI.create(uri));</message>
<message nick="wolf77" time="21:58:10.356+01:00">backup.backup(false, null);</message>
<message nick="rebelThor" time="21:58:22.062+01:00">that would go if my application was in java :)</message>
<message nick="rebelThor" time="21:58:25.066+01:00">i'm coding in php</message>
<message nick="wolf77" time="21:58:48.188+01:00">ouch, yeah, that won't help then ;-)</message>
<message nick="rebelThor" time="21:59:34.621+01:00">i think i'm only limited to RPC calls, and XQuery functions</message>
<message nick="wolf77" time="22:06:43.113+01:00">changing the backup RPC function should be rather easy</message>
<message nick="wolf77" time="22:07:47.049+01:00">nope, you will run into the same problem: getting the created backup to the client</message>
<message nick="rebelThor" time="22:10:13.719+01:00">i think i'm able to use the f</message>
<message nick="rebelThor" time="22:10:22.35+01:00">*file-read function</message>
<message nick="rebelThor" time="22:10:40.926+01:00">but i don't know how to get the name of the generated backup, it contains the current time</message>
<message nick="rebelThor" time="22:11:06.55+01:00">but on high server load, that time may change from the generation to the handing of the file</message>
<message nick="wolf77" time="22:14:22.767+01:00">yes, that's a problem</message>
<message nick="wolf77" time="22:42:58.417+01:00">anyway, I need to leave. good night.</message>
<part host="d51A40105.access.telenet.be" login="n=Mephisto" nick="Mephisto" reason="Nick collision from services." time="23:49:21.236+01:00"/>
<join host="d51A40105.access.telenet.be" login="n=Mephisto" nick="Mephisto" time="23:49:40.052+01:00"/>
</xlog>