[basex-talk] empty() behaves differently on 7.8.2

2014-05-08 Thread Marco Lettere
Hello all, I'm pretty puzzled by the following fact. On version 7.8 the following code returns true() (which btw is what I expect to be right) let $a := () return empty($a) whereas in 7.8.2 it returns false(). Any advice? Thanks, M.

[basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread a.bouchet
Hello, Thanks to the developers for the excellent database software. I love basex having used it on windows desktop for some little database-driven projects, but now, I'd like to deploy it in the context of a web application, if possible. So I read everything I could find about the topic

[basex-talk] is this a bug?

2014-05-08 Thread Rob Stapper
Hi, I can't figure out why the attached xquery-program triggers an error. Am I doing naughty things or is it a bug? Regards, Rob --- Dit e-mailbericht bevat geen virussen en malware omdat avast! Antivirus-bescherming actief is. http://www.avast.com nested_returnfunctions.xq

Re: [basex-talk] is this a bug?

2014-05-08 Thread Christian Grün
Hi Rob, I'm pretty sure the raised error is correct. But I have a hard time to understand what you are trying to do? ;) Christian On Thu, May 8, 2014 at 1:01 PM, Rob Stapper r.stap...@lijbrandt.nl wrote: Hi, I can't figure out why the attached xquery-program triggers an error. Am I

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread Dirk Kirsten
Hello Aurelien, how to deploy a WAR file heavily depends on the container you are using, so there is no general guidance from us. It might be more advisable to ask on the actual container mailing list (i.e. tomcat, jetty, whatever) or consult their documentation. Having said that, some time ago

Re: [basex-talk] empty() behaves differently on 7.8.2

2014-05-08 Thread Marco Lettere
Just to augment the issue ... declare function local:a($i){ empty($i) }; declare function local:b($i as node()?){ (: or any other type except item() :) empty($i) }; declare function local:c($i as item()?){ empty($i) }; let $ii := () return (local:a(()), empty($ii), local:a($ii),

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread Andy Bunce
Hi Aurelien, If you do try the BaseXHTTP server route on OpenShift, rather than the WAR packaging, this repo may help https://github.com/Quodatum/openshift-basex-quick-start. By default just RESTXQ is enabled but it is easy to re-able REST and or Webdav. This uses the OpenShift data directory to

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread Christian Grün
Andy, thanks for the interesting link! Christian On Thu, May 8, 2014 at 2:10 PM, Andy Bunce bunce.a...@gmail.com wrote: Hi Aurelien, If you do try the BaseXHTTP server route on OpenShift, rather than the WAR packaging, this repo may help

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread a . bouchet
Andy, Dirk, Christian, many thanks for the indications. However I still have no luck with openshift as whatever I'm doing, the ssh connection does not want to work. I tried everything including switching from windows 8 to a windows 7 machine, using git BASH, etc, and even using SFTP via

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread Andy Bunce
I use windows8. Getting all the ssh keys right can be challenging. Are you able to create just a simple DIY app? and then ssh into it. see https://www.openshift.com/blogs/access-your-application-gear-using-ssh-with-putty . Beyond that which of approaches above are you trying? If it is

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread a . bouchet
I mean, if anyone has a working workflow for installing a Basex Web Application on a server via a windows machine, it would be really cool. I'd just like to use BaseX as a REST Database in a web application but it seems quite complicated to set up. Might eventually try with a mac if it works

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread a . bouchet
Ah, thanks Andy. Yes, I tried your basex quick start as it seems quite handy. The application gets correctly created in Openshift, but it is not cloned on the local machine. The first time I tried it cloned it, but then the git pull did not work. I'm going to retry with Putty following the link

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread a . bouchet
Well, I followed step by step the provided guide with Putty, but it ended up with: Server refused our key and still the message Disconnected: No supported authentification methods available etc. Still no luck with Openshift. It looked like a nice hosting solution though... I use windows8.

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread Dirk Kirsten
Hi Aurelien, seems like your ssh authentication is not working. Based on the error message I would say there are two possible options: Either your client does not support the authentication protocol (highly unlikely if you use putty; I guess they support everything which is at least common) or