[basex-talk] importing namespace declarations into the main module

2019-08-09 Thread Graydon Saunders
Hi --

I'm pretty sure this isn't a thing, but I thought I'd ask.

I have a raft of namespace declarations because I'm pulling information out
of Open Document documents.  I'd like to put all thirty-odd of these
declarations in their own file and import that, but I'm pretty sure I can't
because that imported module would need its own namespace and this would
keep its internal namespace declarations from being in scope for the main
module, where I actually want them declared.

Is there a way to do this?  It's not critical, it's an outbreak of
neatness, but it would be a nice neatness.

Thanks!
Graydon


Re: [basex-talk] Declaring namespaces in xquery:eval call

2019-08-09 Thread Martin Honnen

On 09.08.2019 20:50, Buddy Kresge wrote:

I am trying to do something like xquery:eval(“some:function()”), and
when I go to execute I get “[XPST0081] No namespace declared for
‘some:function’


Can't you just declare the proper namespace in a prolog of the code you
pass to eval e.g.

 xquery:eval("declare namespace some = 'http://example.com';
some:function()")

?



[basex-talk] Declaring namespaces in xquery:eval call

2019-08-09 Thread Buddy Kresge
I am trying to do something like xquery:eval("some:function()"), and when I go 
to execute I get "[XPST0081] No namespace declared for 'some:function'

I did read the reference that was sited in your documentation for how to 
declare a namespace binding (http://www.jclark.com/xml/xmlns.htm),  but am 
still having no luck

Can you help me with what the map should look like given the following attempt:


   like xquery:eval("some:function()", map { ?  }  )


Thanks in advance.

Buddy Kresge



Re: [basex-talk] Reg : ArrayIndexOutOfBoundsException

2019-08-09 Thread ETANCHAUD Fabrice
Hi Chandrasekhar, BaseX 7.9 is more than five years old,
what prevents you from upgrading to the latest version ?

BaseX is far more stable now, I can't remember the last time I faced this issue.

Best regards,
Fabrice


De : BaseX-Talk  de la part de 
chandra Sekhar 
Envoyé : vendredi 9 août 2019 09:26
À : basex-talk@mailman.uni-konstanz.de 
Objet : [basex-talk] Reg : ArrayIndexOutOfBoundsException

Dear basex team,

We are getting the below error while accessing the collection.

Exception ::org.basex.core.BaseXException: Improper use? Potential bug? Your 
feedback is welcome:
Contact: 
basex-talk@mailman.uni-konstanz.de
Version: BaseX 7.9
Java: Oracle Corporation, 1.7.0_151
OS: Linux, amd64
Stack Trace:
java.lang.ArrayIndexOutOfBoundsException

Collection size : 37 GB

And did INSPECT command on the collection,It is showing success.

Regards,
Chandrasekhar


[basex-talk] Reg : ArrayIndexOutOfBoundsException

2019-08-09 Thread chandra Sekhar
Dear basex team,

We are getting the below error while accessing the collection.

Exception ::org.basex.core.BaseXException: Improper use? Potential bug?
Your feedback is welcome:
Contact: basex-talk@mailman.uni-konstanz.de
Version: BaseX 7.9
Java: Oracle Corporation, 1.7.0_151
OS: Linux, amd64
Stack Trace:
java.lang.ArrayIndexOutOfBoundsException

Collection size : 37 GB

And did INSPECT command on the collection,It is showing success.

Regards,
Chandrasekhar