Re: [basex-talk] Issue with HTTP Server

2018-11-09 Thread Christian Grün
Sound like another problem caused by different versions of BaseX. Please download a fresh version of BaseX and check out if it works out of the box. If no, feel free to tell us how to reproduce the problem. Am Fr., 9. Nov. 2018 21:19 hat Shaun Flynn geschrieben: > Hello there, > > I am using

[basex-talk] Issue with HTTP Server

2018-11-09 Thread Shaun Flynn
Hello there, I am using BaseX 9.1, and Java version 8. When I use the basexhttp command, the server appears to start fine, but when I navigate to http:\\localhost:8984\rest, I get the following response below. What am I doing wrong? HTTP ERROR 500 Problem accessing /rest. Reason: Server Err

Re: [basex-talk] getting the type of an arbitrary node

2018-11-09 Thread Graydon Saunders
Hi Christian -- Thank you! That will be useful. (and might have been what dim memory was trying to recall, too.) -- Graydon On Fri, Nov 9, 2018 at 1:37 PM Christian Grün wrote: > Hi Graydon, > > Bridger has already given you a perfect reference. > > The XQuery Working Group decided it’s a cl

Re: [basex-talk] getting the type of an arbitrary node

2018-11-09 Thread Bridger Dyson-Smith
Graydon - That makes sense. Maybe parsing the output of index:facets() would work? If I'm understanding correctly, it will only work from the database level. Bridger On Fri, Nov 9, 2018 at 1:37 PM Christian Grün wrote: > Hi Graydon, > > Bridger has already given you a perfect reference. > > Th

Re: [basex-talk] getting the type of an arbitrary node

2018-11-09 Thread Christian Grün
Hi Graydon, Bridger has already given you a perfect reference. The XQuery Working Group decided it’s a cleaner solution to do node tests with typeswitch. If you want to do different things based on the node type, it should be a good alternative to the string-based approach: declare function lo

Re: [basex-talk] getting the type of an arbitrary node

2018-11-09 Thread Graydon Saunders
Hi Bridger -- Those are helpful, thanks! I was hoping for a built-in (extenstion!) function on the (possibly mistaken) supposition that BaseX just knows that things are in the internal representation and would nigh-certainly be quicker to have something that returns that value directly. -- Grayd

Re: [basex-talk] getting the type of an arbitrary node

2018-11-09 Thread Bridger Dyson-Smith
HI Graydon - it isn't a builtin function, but maybe the functx:node-kind() and functx:sequence-type() functions are what you want[1,2]? Hope that helps. Best, Bridger [1] http://www.xqueryfunctions.com/xq/functx_node-kind.html [2] http://www.xqueryfunctions.com/xq/functx_sequence-type.html On Fr

[basex-talk] getting the type of an arbitrary node

2018-11-09 Thread Graydon Saunders
Hi! I am overcome with the cabbage-nature today, because I can't find this in the docs. I am convinced there's a way to go: (//some-element/node()) ! fn:node-type(.) and get a sequence of "element(),element(),text()..." but do not know what the actual function is called. (it's not node-type()!

Re: [basex-talk] restxq

2018-11-09 Thread Andy Bunce
Hi Giuseppe, You can use the dba app to see what settings are in use. Goto url /dba/settings and check WEBPATH. /Andy On Fri, 9 Nov 2018 at 13:10, Giuseppe G. A. Celano < cel...@informatik.uni-leipzig.de> wrote: > Hi Marco, > > I think you are right, but I cannot find the webapp folder which i

Re: [basex-talk] restxq

2018-11-09 Thread Giuseppe G. A. Celano
Hi Marco, I think you are right, but I cannot find the webapp folder which is used when I launch basexhttp. I am sure the basexhttp I launch is the one I want to launch, but the webapp folder it checks for .xqm files is not the one within the "basex" folder containing both of them. > On Nov 9

Re: [basex-talk] restxq

2018-11-09 Thread Marco Lettere
It looks like your basexhttp server is pointing to a different directory than the one you expect. This might happen from time to time depending on type of installation env variables and things like that. M. On 09/11/18 13:30, Christian Grün wrote: …difficult to tell. Could you please provide u

Re: [basex-talk] restxq

2018-11-09 Thread Christian Grün
…difficult to tell. Could you please provide us with a minimized version and tell us the exact steps how to proceed (1. download basex91.zip, 2. unzip, etc.)? On Fri, Nov 9, 2018 at 1:03 PM Giuseppe G. A. Celano wrote: > > I am trying to make a RESTXQ webservice I created with BaseX 8.3 available

[basex-talk] restxq

2018-11-09 Thread Giuseppe G. A. Celano
I am trying to make a RESTXQ webservice I created with BaseX 8.3 available in Basex 9.2. I simply copied my "file.xqm" into the webapp folder but, when I type the path of a function contained in it, it does not work ("No function found that matches the request."). Strangely enough, when I minima