Re: [basex-talk] Database Path preference doesn't persist across sessions (v8.0.1/v8.0.2)

2015-03-12 Thread Christian Grün
Dear Amanda, Thanks for the observation. I have fixed this in the latest snapshot. The options were only saved if the dialog window was closed with escape, but not by pressing enter.. All the best, Christian On Wed, Mar 11, 2015 at 2:07 PM, Amanda Galtman amanda.galt...@mathworks.com wrote:

Re: [basex-talk] Error?

2015-03-12 Thread Christian Grün
Thanks, new snapshot downloaded, but the errors persist in some way or another (not exactly the same). Does it stil have to with colons? If you find out more about it, feel free to tell me. Takk, Christian

Re: [basex-talk] Error?

2015-03-12 Thread Lars Johnsen
An attempt with a brand new family of colon-infected folders (not databases), works nicely now withthe new snapshot. While the same commands in the old version still generated the FODC0002 error: So both of these worked nicely in the new snapshot (strings refers to files and folders - not

Re: [basex-talk] xml serialisation

2015-03-12 Thread Christian Grün
Hi Menashè, BaseX 8.0 and later uses the adaptive serialization as default [1]; maybe this gives you the freedom you need? If not, please provide us with a little example of how you would like the input to be formatted. Best, Christian [1]

Re: [basex-talk] Facing Problem with Sum()

2015-03-12 Thread Marco Lettere
Hi Ankit, the problem is with float rounding ... sum((a5923.17/a,a5956.29/a,a5989.28/a)) = 17868.7398 gives true() on my machine. As usual with floats you should probably apply a rounding policy to compare for exact equality. Regards, Marco. On 12/03/2015 15:01, ankit kumar wrote:

Re: [basex-talk] Merging baseX indexes

2015-03-12 Thread Christian Grün
One more approach is to store new documents in a separate database, which can then be merged with the main database. The is the key then. Is that possible? Absolutely ;) It can e.g. be realized with the functions in the database module [1] (but this requires some experience with XQuery).

[basex-talk] Facing Problem with Sum()

2015-03-12 Thread ankit kumar
Hi, I am trying to evaluate this expression, it is supposed to give TRUE but, it is giving false. sum((a5923.17/a,a5956.29/a,a5989.28/a)) = a17868.74/a But, for this expression it is giving as expected. sum((a5922.78/a,a-5955.78/a,a5988.74/a)) = a5955.74/a Thanks Ankit

Re: [basex-talk] Facing Problem with Sum()

2015-03-12 Thread Florent Georges
Hi, This looks like a general programming problem to me. It is always dangerous to ask for equality on real numbers. Because of a rounding problem in the calculation (because of the way computers work), the sum is not exactly equal to the number on the right hand-side. The usual

Re: [basex-talk] xml serialisation

2015-03-12 Thread Menashè Eliezer
Great! Now I'm able to create a perfectly clean and customised xml result freely using @codeListValue, /text(), string(), etc. I've also added string handling so I already have the name of the collection: collection name={substring-before(base-uri($x),'/')} Thank you Marco! With kind regards,

Re: [basex-talk] Merging baseX indexes

2015-03-12 Thread Marios Bartzokas
Wont using a function like db:add be the same as reprocessing that piece of xml? ex; gathering statistics, reprocessing the db indexes etc. But we have already processed that piece of xml, during the update on the other copy of the database. Maybe this example will show more what I mean. Suppose

Re: [basex-talk] Deploy Base801.war on Jboss EAP 6.1 throws error

2015-03-12 Thread Christian Grün
Hi Erol (cc to the list), I have added a new option, which now allows you to specify absolute paths for your XQuery modules and command scripts [1]. Hope this helps, Christian [1] http://docs.basex.org/wiki/Options#RESTPATH On Thu, Mar 12, 2015 at 2:01 PM, Christian Grün

[basex-talk] gui folder view delete

2015-03-12 Thread Andy Bunce
Hi, In the GUI folder view I can delete nodes by selecting and using right click. But if I select a top level document name entry the UI prompts for delete confirmation but no delete occurs. /Andy

[basex-talk] DITA project

2015-03-12 Thread France Baril
Hi, I'm working on a new DITA project. The DITA standard is used for technical documentation. It creates XML models with inheritance by using @class=ancestor parent child. If the child should behave like it's ancestor the XSL would say: template match=contains(@class, 'ancestor') ... /template

[basex-talk] Can you prevent database modification via GUI?

2015-03-12 Thread Amanda Galtman
Hi, Is there a way to prevent users of the BaseX GUI from modifying databases? It seems that at least some of the database files need to be writable or else you can't open the database. It also seems that the GUI gives you admin permission[1], making it possible for you to drop a database.

Re: [basex-talk] Merging baseX indexes

2015-03-12 Thread Christian Grün
Hi Marios, The rest of the servers will handle concurrent client write queries on their copy of the index. In the end I would like to merge all the indexes. Hm, I'm not quite sure what you want to achieve: Would you really like to join the internal index structures, or do you talk about the

Re: [basex-talk] RESTXQ

2015-03-12 Thread Christian Grün
Hi Erol, But when I call existing restxq services embedded in this file http://localhost:8080/hello/World Maybe it is supposed to be http://localhost:8080/BaseX801/hello/World ? Best, Christian

Re: [basex-talk] DITA project

2015-03-12 Thread Marc van Grootel
Hi France, Typeswitch is not the right tool for this. From the spec: [74]TypeswitchExpr ::= typeswitch ( Expr ) CaseClause+ default ($ VarName)? return ExprSingle [75]CaseClause ::= case ($ VarName as)? SequenceTypeUnion return ExprSingle [76]

Re: [basex-talk] Error?

2015-03-12 Thread Lars Johnsen
Thanks, new snapshot downloaded, but the errors persist in some way or another (not exactly the same). However, since you mentioned that the problems were caused by colons in filenames, removing those colons did the trick. Now it all works as expected. The colon-free-folders can be referenced

[basex-talk] Merging baseX indexes

2015-03-12 Thread Marios Bartzokas
Hi, I am trying to achieve the following; Have a number of baseX servers each working on a replica of an indexed document. One baseX server will handle concurrent client read queries The rest of the servers will handle concurrent client write queries on their copy of the index. In the end I

[basex-talk] RESTXQ

2015-03-12 Thread Erol Akarsu
I need an urgent help here. I am trying to configure restxqpath web.xml like below and compile war file of basex with command mvn compile war:war context-param param-nameorg.basex.restxqpath/param-name param-value/home/eakarsu/BasexXQ/param-value /context-param I moved dba folder and

[basex-talk] xml serialisation

2015-03-12 Thread Menashè Eliezer
Hello, I need xquery reply which is composed of multiple values. I've chosen the xml format, but I need also the collection name of each record since I'm searching in multiple collections. However for parsing the entire reply as xml I need to add an arbitrary xml tag to base-uri($x). I