Re: [basex-talk] running in eclipse

2014-08-08 Thread Jens Erat
@Christian: Remember I’m having similar problems? Under some conditions, the resource path seems to be wrongly set. @Andy: What operating system, Java version etc. are you using? Anyway: I’d not import the zip, but use git to fetch the code. A page in the documentation describes the steps

Re: [basex-talk] running in eclipse

2014-08-08 Thread Andy Bunce
Ok I have tried it on a win7 machine that has a Java6 (as well as Java7) and it works. The machine with the problem is win8.1 and has only Java7 (and Java8) Should it be possible to get it to work without a Java6 install, by setting the compiler compliance? On 8 August 2014 07:47, Jens Erat

Re: [basex-talk] running in eclipse

2014-08-08 Thread Andy Bunce
It is Kepler in both cases, but with different toppings. The working one has: Eclipse IDE for Java EE Developers 2.0.2.20140224- epp.package.jee null Eclipse Platform 4.3.2.M20140221-1700 org.eclipse.platform.ide null Java EE IDE Feature 2.0.2.20140224-

[basex-talk] How to update a XML-file from itself?

2014-08-08 Thread Rob Stapper
Hi, Can anyone help me with this casus? I want to update XML-source: $a, by inserting the content of XML-element: $b, a sub-element of $a, into XML-element: $c, also a sub-element of $a. The relative path from $b to $c is known. See attached example: the problem is that the update

Re: [basex-talk] How to update a XML-file from itself?

2014-08-08 Thread Christian Grün
Hi Rob, I didn't find variable $c in your example, but the following modification might give you the correct result: let $update.processor := function($a, $b) { ($a update replace value of node ./default/text1 with ()) update insert node $b/string into .//default/text1 } ...or

Re: [basex-talk] How to update a XML-file from itself?

2014-08-08 Thread Rob Stapper
Hi Christian, Thanx for the ultra fast response. The problem is that my actual program I don’t know the path from the root of $a to “default/text1” ( $c), in this case: “./”. Element: “default/text1” ( $c), could be located anywhere in $a. I do know the relative path to “default/text1”

Re: [basex-talk] How to update a XML-file from itself?

2014-08-08 Thread Rob Stapper
Hi, Here is another thingy I tried but again: no cigar. The problem would be solved if I could determine the absolute path to an element-variable: $c Rob Van: Christian Grün [mailto:christian.gr...@gmail.com] Verzonden: vrijdag 8 augustus 2014 16:04 Aan: Rob Stapper CC: BaseX

Re: [basex-talk] How to update a XML-file from itself?

2014-08-08 Thread Christian Grün
Any other suggestions? Hm, no easy one. You could pass on a function that does the navigation to the relevant nodes: let $f := function($node) { $node/update1 } return $a update replace value of node $f(.) with bla Christian On Fri, Aug 8, 2014 at 4:26 PM, Rob Stapper

[basex-talk] map:for-each-entry missing from latest 8.0

2014-08-08 Thread Marc van Grootel
Hi, I intended to use the 8.0 documented function map:for-each-entry but it doesn't exist (tried latest snapshot). So I thought I open modules.zip to look at the code. And, indeed it wasn't there. Second thing I noticed was a typo in the namespace.

Re: [basex-talk] map:for-each-entry missing from latest 8.0

2014-08-08 Thread Marc van Grootel
Here are the exact locations: https://github.com/BaseXdb/basex-dist/blob/94962bda4404ed8ddf0a541612e568f04484f4f4/etc/modules/test.xq https://github.com/BaseXdb/basex-dist/blob/94962bda4404ed8ddf0a541612e568f04484f4f4/etc/modules/map.xqm --Marc On Fri, Aug 8, 2014 at 7:26 PM, Christian Grün

Re: [basex-talk] map:for-each-entry missing from latest 8.0

2014-08-08 Thread Christian Grün
I have uploaded a revised zip file [1]. I hope that I'll update these (completely optional) files along with BaseX 8.0. - What did you use them for? [1] https://github.com/BaseXdb/basex-dist/tree/master/etc On Fri, Aug 8, 2014 at 7:33 PM, Marc van Grootel marc.van.groo...@gmail.com wrote: Here

Re: [basex-talk] map:for-each-entry missing from latest 8.0

2014-08-08 Thread Marc van Grootel
Oh I didn't even realize they were just for reference. I only looked at them to confirm that map:for-each-entry wasn't there or maybe was named differently. That's all. --Marc On Fri, Aug 8, 2014 at 7:40 PM, Christian Grün christian.gr...@gmail.com wrote: I have uploaded a revised zip file

[basex-talk] CSV : Content is not allowed in prolog.

2014-08-08 Thread Roman Mishin
Hi, Could you, please, tell what can be wrong here. This query works: db:open(IntersectPhoneNumbers,Data/rent_flats.csv)/csv/record/UserPhone With result: UserPhone2218520/UserPhone UserPhone2219391/UserPhone UserPhone2348039/UserPhone ... I can access the file directly from the query,