Re: [basex-talk] Export XML from Basexgui no longer allow for options

2019-07-05 Thread Christian Grün
> It used to be that we could specify options when exporting content using 
> basexgui. As the tool no longer allows for this

The feature has not been removed from the GUI. Do you use the Database
» Export dialog?

> I tried adding indent= false and chop=false to the .basexgui file, but it 
> doesn't seem to help.

The .basexgui file only contains GUI-specific options. You’ll need to
add or update the EXPORTER option [1] in .basex.

[1] http://docs.basex.org/wiki/Options#EXPORTER


Re: [basex-talk] server load

2019-07-05 Thread Christian Grün
> I have uploaded about 3700 xml-files (450mb) to db.
> CPU usage at that time was about 100%.
> Is there any way to reduce the server load?
> May be basex has some kind of settings?

Usually the I/O usage should be higher than the CPU usage. How much
RAM do you have, and how many CPUs cores are available on your system
(I guess only 1 of the cores was used)?


Re: [basex-talk] x509

2019-07-05 Thread Christian Grün
Hi Владимир,

Currently no. But maybe this could be included in the latest version
of the the EXPath Cryptography Module [1] (cc @Claudius)?

Best,
Christian

[1] http://expath.org/spec/crypto/editor



On Thu, Jul 4, 2019 at 5:01 PM Ветошкин Владимир  wrote:
>
> Hi!
>
> Does basex have functions to generate or get information from x509certificate?
> (like xdmp:x509-certificate-* in MarkLogic)
>
> --
> С уважением,
> Ветошкин Владимир Владимирович
>


Re: [basex-talk] Adding a file to DB with automatically updated index disables attribute index

2019-07-05 Thread Christian Grün
> Yes, we do.

I did, too, and it works. How did you enable UPDINDEX, and how do you
start the BaseX HTTP server instance?



> On Mon, Jul 1, 2019 at 5:13 PM Christian Grün  
> wrote:
>>
>> Do you have UPDINDEX enabled in your project? See [1] for more information.
>>
>> Best,
>> Christian
>>
>> [1] http://docs.basex.org/wiki/Options#UPDINDEX
>>
>>
>>
>> On Mon, Jul 1, 2019 at 4:52 PM France Baril
>>  wrote:
>> >
>> > Hi,
>> >
>> > Here are the steps to reproduce:
>> >   1. In Oxygen XML, in the data explorer (webDAV connection), create and 
>> > save a new xml file with content 
>> >   2. Run a query with db:attribute
>> >System returns: [db:no-index] Database 'en-us' has no attribute 
>> > index.
>> >
>> > The problem is resolved after a db:optimize(), but it's not practical in 
>> > our case.
>> >
>> > --
>> > France Baril
>> > Architecte documentaire / Documentation architect
>> > france.ba...@architextus.com
>
>
>
> --
> France Baril
> Architecte documentaire / Documentation architect
> france.ba...@architextus.com


[basex-talk] Export XML from Basexgui no longer allow for options

2019-07-05 Thread France Baril
Hi,

It used to be that we could specify options when exporting content using
basexgui. As the tool no longer allows for this, I'm looking for a way to
protect our content integrity. I tried adding indent= false and chop=false
to the .basexgui file, but it doesn't seem to help.

The issue we have is with mixed content, when a block with only inline
elements gets indented, it adds space at the beginning and the end of
paragraphs.

Ex. In fdjjflsdjflkd, adding spaces before and
after the span is an issue. It doesn't matter much when transforming to
HTML, but it does other formats and differences in the spacing of any mixed
content is a change significant enough to trigger retranslation of our
content to other languages.

I'll try writing an .xq to export content, but I thought I should mention
that the current export doesn't protect content integrity.

-- 
France Baril
Architecte documentaire / Documentation architect
france.ba...@architextus.com


[basex-talk] BaseX 9.2.3: Performance Tweaks, Bug Fixes

2019-07-05 Thread Christian Grün
Dear all,

A new BaseX maintenance release is available. Once again, we spent
quite some time in improving rewritings and optimizations of XQuery
core expressions (mostly paths & steps and simple maps):

  http://basex.org/

For in-depth details, feel free to check out our Github issues and our
list of commits [1,2].

All the best,
Christian

[1] https://github.com/BaseXdb/basex/issues?q=is%3Aissue+is%3Aclosed
[2] https://github.com/BaseXdb/basex/commits/master


[basex-talk] [ANN.] JSR223 wrapper

2019-07-05 Thread Marco Lettere
Ok then ... since I haven't got any feedback on this and because 
crawling the web myself hasn't produced any results either, I decided to 
invest a couple of weekends re-studying the the JSR223 (Java Scripting 
Framework) and implementing a wrapper for BaseX by myself.


For those who are not aware, JSR223 is a specification standardizing the 
embedding scripting languages into Java based applications. Was BSF once 
upon a time
As a use case at Nubisware, in particular, we wanted to continue using 
BaseX powered XQuery 3.1 scripts inside BPMN workflow engines for 
ScriptTasks and Event Handlers.


One plan that we have for the future is to create an equivalent engine 
that is able to execute scripts through REST on a remote BaseX server 
... but still reasoning whether this is backed by any real use case.


You can access the code and readme at [1] or download the current v0.1 
jar from [2].


Of course every 2 cents of feedback will be warmly appreciated.

Enjoy,

Marco.

[1] https://github.com/nubisware/basexjsr223
[2] 
https://github.com/nubisware/basexjsr223/releases/download/v0.1/BaseXJSR223.jar


On 11/06/19 13:00, Marco Lettere wrote:

Hi all,

is anyone on the list aware of a JSR223 compliant wrapper for BaseX in 
order to include XQuery scripting "seamlessly" into scriptable 
applications?


Thanks.

Marco.





[basex-talk] server load

2019-07-05 Thread Ветошкин Владимир
Hi BaseX team, I have uploaded about 3700 xml-files (450mb) to db.CPU usage at that time was about 100%.Is there any way to reduce the server load?May be basex has some kind of settings? Thank you  -- С уважением,Ветошкин Владимир Владимирович