Re: [basex-talk] webapps

2012-01-15 Thread Michael Seiferle
Hallo Manuel, Das liegt an der aktuellsten Version von BaseX 7.1 - die verwendet ein neues (rückwärtskompatibles) Format für die Datenbankstatistiken/Indizes. Das Webframework verwendet 7.0x, daher die Inkompatibilität bei dbs die mit neueren BaseX Versionen erstellt wurden. Probier mal die

Re: [basex-talk] Query

2012-03-06 Thread Michael Seiferle
Hallo Carsten, klar: xmlDas was ich will/xml/text() Der Text Step. Freundliche Grüße Michael Am 06.03.2012 um 11:32 schrieb chau...@arcor.de: Hallo! gibt es eine Möglichkeit in der GUI eine Query so zu formulieren, dass als Ergebnis *nicht* so was rauskommt: xmlDas was ich will/xml

Re: [basex-talk] BaseX XQuery vs. python / lxml performance

2012-03-29 Thread Michael Seiferle
Hi Ronny, Hi Johannes Charles, thanks for joining the conversation. In my opinion, and speaking officially for BaseX, I'd suppose that XML processing with BaseX databases should almost always[1] be faster than processing the XML sequentially via lxml. However, performance may vary

Re: [basex-talk] HTTP module

2012-05-03 Thread Michael Seiferle
Hi Erol, Thanks for your reply, mines below:-- Michael Seiferle Sent from my mobile, sorry for the brevity. On Thursday, 3. May 2012 at 20:06, Erol Akarsu wrote: Michael, Thanks for reply. I think that should be easy to enhance current basex HTTP support to other url types like here

Re: [basex-talk] databases and live demo

2012-05-03 Thread Michael Seiferle
Hi Stefan, -- Michael Seiferle Sent from my mobile, sorry for the brevity. On Thursday, 3. May 2012 at 20:07, k...@buit-solutions.com wrote: Hi, I'm currently testing baseX and wondering how one should use databases/collections. Basically databases in BaseX are either

Re: [basex-talk] XML file with xmlns attribute and XPATH

2012-05-24 Thread Michael Seiferle
Hi Philippe, you still have to declare a default element namespace for XQuery (or XPath for that matter) to recognize the element you want to return: declare default element namespace http://example.org;; feed xmlns=http://example.org; xmlns:abc=http://abc.example.org; titleProjects/title

Re: [basex-talk] Webdav not working on Windows 7 and Basex 7.2.1

2012-06-13 Thread Michael Seiferle
Hi Bob, could you perhaps give it a try with the Zip Distribution [1]? It has some startup scripts inside the bin folder, anyways those scripts contain a minor bug: In line 10, somewhere in the middle we try to add milton 1.6.5 to the classpath: milton-api-1.6.5.jar actually

Re: [basex-talk] BaseX with a Booleen Column

2012-07-09 Thread Michael Seiferle
Hi Scott, just for the sake of completeness I'll resend the email I privately sent from supp...@basex.org ;-) BaseX is a database that works schema-oblivious, i.e. for the sake of flexibility BaseX does not respect schema types when creating a database. But: you are still available to use

Re: [basex-talk] recusive subdirectory suggestion

2012-07-13 Thread Michael Seiferle
Dear Kurt, thanks for the Kudos and thanks for your suggestion as well. As a quick solution you could do the following (entirely in XQuery ;-)): Use file:list($dir, false(), *.xml) [1] to retrieve a sequence of files without recursing into a subdirectory. Then either (1) Iterate over

Re: [basex-talk] Counting groups

2012-07-17 Thread Michael Seiferle
Hi Pascal, maybe you already tried that; but: let $somethings := for $varGrp at $pos in local:getVariables($from,$to) group by $name := string($varGrp/@name) return Something/ for $something at $pos in $somethings return... Hope this helps, this is the best I can think of at the moment :)

Re: [basex-talk] BaseX and eXist XML database differences

2012-08-15 Thread Michael Seiferle
Hi Mailbox, obviously we are heavily biased towards BaseX on this list (well at least I am :-)). BaseX can without a doubt be the system powering your website/cms/database. Our RestXQ [1] implementation will allow you to write web applications in XQuery easily and straight-forward. To help

Re: [basex-talk] large number of xml files

2012-08-21 Thread Michael Seiferle
previous mail and tried executing the query,even though after creating the collection also the memory consumption is high(700MB of heap memory) and also it is taking 3 mins of time for processing. Thanks Regards Sateesh.A -Original Message- From: Michael Seiferle [mailto:m

Re: [basex-talk] XSLT import with relative path fails

2012-10-04 Thread Michael Seiferle
Hi Alexandros, thanks for your mail, I will have a look at this. IIRC there is no URI resolution on BaseX’ behalf, but maybe the current working directory for Saxon is not set to what Saxon expects. Out of curiosity, does it work if you use absolute paths in the first place? I guess you are

Re: [basex-talk] Using full Java regular expressions

2012-10-15 Thread Michael Seiferle
Hi Gary, not directly a flag, but you are for sure able to use Java classes from within BaseX like so https://gist.github.com/c72fad2758af668eb0f1 More information on our Java Bindings can be found here: http://docs.basex.org/wiki/Java_Bindings I hope this helps, feel free to ask for more

Re: [basex-talk] Using full Java regular expressions

2012-10-15 Thread Michael Seiferle
Am 15.10.2012 um 15:35 schrieb The Trainspotter wy...@btinternet.com: Is this switch something I could request as an enhancement, Yes if so could I expect it to be implemented any time soon? ...not necessarily as I can not promise that someone will jump on this train anytime soon. BUT it is

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Michael Seiferle
Hi there, just for the sake of completeness, my 2cents: Am 15.10.2012 um 16:53 schrieb Rainer Klute rainer.kl...@itemis.de: As far as I am aware, Sedna is actually ideal for storing huge single file XML documents. I am not sure if Sedna is better suited or not, but this is out of topic anyway

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Michael Seiferle
Hi Rainer, I am in fact not sure if such an API exists; at least to my knowledge it does not. Thanks for the valuable input and fruitful discussion so far :-) Feel free to keep in touch and this thread alive. Feedback and questions are always very welcome! Best Michael Am 15.10.2012 um

Re: [basex-talk] Bug in db:rename()

2012-10-17 Thread Michael Seiferle
Dear Charles, Thank you very much for your report; and sorry for this inconvenience. Someone of our team will have a look and we will get back to you ASAP. Best Michael Von meinem iPad gesendet Am 16.10.2012 um 22:23 schrieb Charles Kowalski alxa...@gmail.com: On 10/16/2012 11:20 PM,

Re: [basex-talk] running xquery scripts in REST server

2012-10-19 Thread Michael Seiferle
Hi Peter, sorry I did not manage to answer you earlier :-) As a quick hint, could you please try the following: * put your query file into the filesystem as described in http://docs.basex.org/wiki/REST * Please note, that in 7.3 the variable WEBPATH has been called HTTPPATH (I hope this does

Re: [basex-talk] id function in BaseX

2012-10-31 Thread Michael Seiferle
Hi Massimo, Hi Ben, BaseX has no direct support for extracting the information, that for a given document the ID is renamed to @key (even with help of a DTD). This is why those example queries fail to function as expected. BaseX will however work if the ID attribute is named @id. Long story

Re: [basex-talk] id function in BaseX

2012-10-31 Thread Michael Seiferle
schrieb Massimo Franceschet massimo.francesc...@uniud.it: Il giorno 31/ott/2012, alle ore 14:39, Michael Seiferle ha scritto: Hi Massimo, Hi Ben, BaseX has no direct support for extracting the information, that for a given document the ID is renamed to @key (even with help of a DTD

Re: [basex-talk] Unable to integrate with oxygen to run xquery

2012-11-22 Thread Michael Seiferle
Hi Alex, I can only help you with two quick guesses at the moment: 1) port 8080 looks like a kind of HTTP Port; the server by default runs on port: 1984 does this change anything? 2) does changing your query to: let $content := //MessageHeader return $content[1]

Re: [basex-talk] Pathname of the current XQuery?

2013-04-04 Thread Michael Seiferle
Thanks Liam, you are right, the shortest way to achieve should be the following: let $path-to-query-file := base-uri(_/) Best from Konstanz Michael Am 02.04.2013 um 05:36 schrieb Liam R E Quin l...@w3.org: On Mon, 2013-04-01 at 13:36 -0400, Graydon Saunders wrote: I'd like to be able

Re: [basex-talk] whitespace around comments

2013-04-05 Thread Michael Seiferle
Michael (other than me :-)) you are obviously right. — Mit freundlichen Grüßen Michael Seiferle On Fri, Apr 5, 2013 at 12:29 PM, Michael Piotrowski m...@cl.uzh.ch wrote: Dirk, On 2013-04-05, Dirk Kirsten d...@basex.org wrote: You are certainly right that with mixed content and the example

Re: [basex-talk] 7.8.2 application on Mac OS X

2014-04-24 Thread Michael Seiferle
Hi James, my bad! I forgot to fix the 7.8.2 bundle; the „latest“ bundle should already work for you: http://files.basex.org/releases/BaseX-latest.app.zip I’ll try to update the 7.8.2 bundle this evening! I’ll let you know once this happened. Best Michael Am 23.04.2014 um 15:33 schrieb James

Re: [basex-talk] Paged results

2014-08-18 Thread Michael Seiferle
Hi Paul, thanks for this snippet! Have you already seen the built-in min/max functions? max((1,2,3)), min((1,2,3)) Might save both, some bytes and milliseconds, neglectable but nevertheless. :-) Best from Konstanz Michael On 15 Aug 2014, at 22:02, Paul Swennenhuis wrote: Hi all,

Re: [basex-talk] Editor Background Color

2014-12-18 Thread Michael Seiferle
Hi Alex, currently there is no way (at least no way that I am aware of :-)) to customize the background color of the various editor panels from *inside* BaseX, maybe your OS or window manager might do that. I think it might need quite some time to provide a dark-theme, as one would need to

Re: [basex-talk] nilled() not working

2015-01-15 Thread Michael Seiferle
Dear Ankit, BaseX is not a schema aware XQuery processor, hence your results. In BaseX fn:nilled() will always return false. Element nodes in BaseX will always be untyped, see for instance: http://www.w3.org/TR/xpath-datamodel-30/#ElementNode = Property 11 and

Re: [basex-talk] Basex on maven central

2016-05-13 Thread Michael Seiferle
Hello we are currently working on updating maven central as well. Jagrut investigates the options to do this :-) Cheers from Lake Constance Michael Von meinem iPhone gesendet > Am 13.05.2016 um 09:00 schrieb Marc van Grootel : > > Hi Lance, > > Just add

Re: [basex-talk] RESTXQ and xsd validation strangeness

2016-05-18 Thread Michael Seiferle
400 Stopped at /tmp/basex/webapp/restxq.xqm, 12/20: > [bxerr:BXVA0002] Validation could not be started: Resource > "/tmp/basex/POST.xml (No such file or directory)" not found. > > This happens no matter what xml and what xsd is used. If I change $body with &g

Re: [basex-talk] Load 5GB xml using python

2016-05-09 Thread Michael Seiferle
load the 5GB in memory which it cannot handle. > > I read the java client API which takes a stream unlike the python API. Am I > forced to use java? > > What options are there to solve this problem gracefully? Any options that > involve Python? > > Thank you fo

Re: [basex-talk] Cannot access basex instance with latest basex/dba image

2017-02-08 Thread Michael Seiferle
s. DBA is still part of BaseX, but it doesn’t provide >> means to connect remotely. >> >>> b) What is the difference between the basex/basexhttp and basex/dba images? >>> (I think the documentation at https://hub.docker.com/r/basex/basexhttp/ is >>> now mislea

Re: [basex-talk] Cross-Origin Resource Sharing ( CORS) not available in jetty version 8

2017-02-25 Thread Michael Seiferle
Hi Rob, in addition to Christian’s mail, one more thought: Great, angular2, haven’t had more than a brief look at it so far :-) I guess you are using that NodeJS-application to serve and generate your AngularJS-files, right? Or are there any other reasons you need NodeJS for? If you only

[basex-talk] Docker run basexhttp and permission issues

2016-08-25 Thread Michael Seiferle
oposed a fix but I’d like someone with docker-expertise have a look, maybe s/o might want to add her or his 5cts ;-) https://github.com/BaseXdb/basex/pull/1346 <https://github.com/BaseXdb/basex/pull/1346> Best Michael -- Michael Seiferle, BaseX GmbH, http://www.basexgmbh.de |-- Firmensitz

Re: [basex-talk] Donation link does not work.

2017-03-17 Thread Michael Seiferle
Hi Tomasz, thanks for the kudos and thanks even more for your hint, we clearly overlooked that one! The donate link has now been fixed, it will lead you to: https://www.paypal.me/BaseXGmbH Thanks again! Michael > Am 16.03.2017 um 18:51 schrieb Tomasz

Re: [basex-talk] Simple query

2017-03-09 Thread Michael Seiferle
in XQuery? > > Obviously just a test query, but I need to start somewhere. :-) > > Thanks for any help! > -- > AJ -- Michael Seiferle, BaseX GmbH, http://www.basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführ

Re: [basex-talk] Fwd: Re: using apply-function within an updating function

2017-08-29 Thread Michael Seiferle
within an updating function, my webservices do work correctly. Just added >> the MIXUPDATES-option in the web.xml file. >> >> Best Rob. >> >> Oorspronkelijke bericht >> Onderwerp: Re: [basex-talk] using apply-function within an updat

Re: [basex-talk] Issue with Full Text Retrieval

2017-09-11 Thread Michael Seiferle
) use the xml:space="preserve“ attribute to tell the parser not to chop child nodes of when creating a database: > > > > ClinicalTrials.gov processed this data on August 31, > 2017 > Link to the current ClinicalTrials.gov record. > Hope this helped shed some light :-) Best from K

Re: [basex-talk] A few general questions about BaseX

2017-09-12 Thread Michael Seiferle
Hi Anastasiou, :-) > Am 12.09.2017 um 10:54 schrieb Anastasiou A. : > > Hello everyone > > I am trying to load BaseX with a large number of XML files (~500), each one a > few hundreds of MBs big. > BaseX fails with a message along the lines “This is too big for

Re: [basex-talk] using apply-function within an updating function

2017-08-28 Thread Michael Seiferle
Hi Rob, may I ask what you intented to do? Looks like you expect $dataRec to contain exactly one value, right? At least I think so because you called `db:create#1` in `fn:apply` which implies you expect the array to contain a single value. To create a single database use: > ``` >

Re: [basex-talk] XML import issue (header related)

2017-09-04 Thread Michael Seiferle
Hi Ron, Adding another opinion the board (I meant to write this already on Saturday) ;-) I don’t think there is much to optimize w.r.t. to the XQuery update solution, as your whole database will be held in memory during the update… YET: if you do not care for the namespaces you could still

Re: [basex-talk] New basex-version -> broken paths

2017-09-04 Thread Michael Seiferle
Hi Gunter, Hi Kendall, With more recent versions of BaseX I use the db:open() and fetch:xml() functions in order to open databases and files. We introduced those functions because the `doc` function’s omnipotence lead to some confusion :-) The `fetch:xml` function always resolves relative to

Re: [basex-talk] Simple Map Operator in oXygen XML (XQJ)

2017-09-04 Thread Michael Seiferle
Hi Omar, Looks like that error message is generated by oXygen; you might want to crosspost to their list. Best Michael > Am 04.09.2017 um 14:31 schrieb Omar Siam : > > Hi! > > I just tried to use ther Simple Map Operator while writing an XQuery in > oXygen XML and

Re: [basex-talk] New basex-version -> broken paths

2017-09-04 Thread Michael Seiferle
Hi Günter, sorry for my blatant ignorance, I am using RESTXQ over REST so regularly, that I almost forgot about the actual REST-Servlet! Still I encourage you to go with fetch:xml(); so if you changed it from: > let $tokens := fetch:xml("tokens.xml")//entry To: > let $tokens :=

Re: [basex-talk] XML + HTML to JSON

2017-12-14 Thread Michael Seiferle
this kind of helps ;) Michael -- Michael Seiferle, BaseX GmbH, http://www.basexgmbh.de |-- Firmensitz: Obere Laube 73, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Tel: +49 7531 916 82 77 >

Re: [basex-talk] Loading data

2017-11-19 Thread Michael Seiferle
Dear Wray, I tried to come up with a sketch of what–I think–might help you: https://gist.github.com/micheee/8a8734a1713a7121cab15eb3dfb389d9 Basically it boils down to: 1. Fetch the JSON 2. Convert that JSON to an XQuery item 3. Iterate over each array entry and explicitly construct the XML

Re: [basex-talk] Nugets?

2018-06-08 Thread Michael Seiferle
Hi Radim, hi Dirk, hi Peter, in my opinion offering nuget packages might at least be worth investigating, if we were able to automate their creation I sure don’t have any objections! After (briefly) reading the documentation at https://docs.microsoft.com/en-us/nuget/what-is-nuget

Re: [basex-talk] Big Surprise from outputs in version 7.3.1 and 8.6.7 ?

2018-02-02 Thread Michael Seiferle
Hi Bang, If you export a database its contents will be written to the folder given as an argument to the EXPORT command: EXPORT [path] > Exports all documents in the database to the specified file path The `basex.*`-files you are seeing in your data folder are database files. This is what

Re: [basex-talk] xml element beginning and end space loss

2018-01-29 Thread Michael Seiferle
Hi & thanks Gerrit, Hi Stefania, You may even decide to chop-or-not on a per-element basis: > db:create('test', > " > stefy > stefy > ", > "doc.xml" > ) Will preserve whitespace in the second -Element while chopping in the first one. => http://docs.basex.org/wiki/Options#CHOP

Re: [basex-talk] xml element beginning and end space loss

2018-02-01 Thread Michael Seiferle
in 7.29 ms. > > get chop > CHOP: true) > > db:create('test', > " > stefy > stefy > stefy > ", > "doc.xml" > ) > >>>>> >stefystefy > stefy > > > > > db:replace("tes

Re: [basex-talk] Strategies for using BaseX & friends as XML CMS?

2018-08-14 Thread Michael Seiferle
Hi Andreas, I don’t think there are many out of the box solutions to this, despite document-level locking in our webdav-implementation. We have however worked on an oxygen-based solution, together with axxepta GmbH, called Argon Author: http://argon-author.com There

Re: [basex-talk] Special Character Search - @, $,#

2018-01-24 Thread Michael Seiferle
https://www.w3.org/TR/xpath-full-text-10/ <https://www.w3.org/TR/xpath-full-text-10/> -- Michael Seiferle, BaseX GmbH, http://www.basexgmbh.de |-- Firmensitz: Obere Laube 73, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander

Re: [basex-talk] Strange response from Docker BaseXDBA

2018-12-07 Thread Michael Seiferle
Hi Huib, Thanks for the pointer to stackoverflow, I missed that one! I added an answer over there: https://stackoverflow.com/questions/53462688/docker-basex-dba/53667345#53667345 — his problem somehow unrelated

Re: [basex-talk] geo:distance() return units

2019-02-26 Thread Michael Seiferle
Hi Jacob, I’ve never really used the geo:module but according to the documentation: > in the units of the spatial reference system of geometry1 If I understand it correctly, you would have to convert your coordinates to map them to miles or kilometers for example. Maybe you can provide an

Re: [basex-talk] following-sibling axis

2019-02-26 Thread Michael Seiferle
Hi Mark, Hi Martin, yes Martin is right, the whitespace will be chopped by default leading to the observed behavior. If you wanted to preserve whitespace globally, you can do that when creating your database. If you only want to preserve whitespace for a given element you may do this as

Re: [basex-talk] geo:distance() return units

2019-02-26 Thread Michael Seiferle
-0.12766 > > return geo:distance($berlin, $london) > > And the result is 13.57281797796 > > Also I had trying to change srsName attribute of gml:Point's to > different values like "3857", "EPSG:3857" (it's uses meter units as > mentioned here https://ep

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-02-27 Thread Michael Seiferle
Dear Liam, Thanks a lot for this Patch, this issue has been open for quite some time ;-) As Christian is currently on holidays and will only return next week, I added a Pull Request on GitHub https://github.com/BaseXdb/basex/pull/1667 so the patch

Re: [basex-talk] Activating gzip compression

2019-02-27 Thread Michael Seiferle
Hi Omar, I can not get it to work either, yet: >> * No content-encoding is specified by the resource >> >> I found no way to not specify an encoding for whatever I return in RESTXQ. >> If I don't specify anything it's UTF-8. it shows up as "; >> character-set=UTF-8"I did not find a way to

Re: [basex-talk] following-sibling axis

2019-02-27 Thread Michael Seiferle
Hi Mark, as Martin already stated, the '-w‘-Option has to be active at import time, otherwise the whitespace will be chopped. If I were to do it, I’d reindex all data and explicitly mark all elements that should preserve whitespace, if this is not an option I’d reindex all data with

Re: [basex-talk] Stack Overflow: Try tail recursion

2019-02-19 Thread Michael Seiferle
Hi Guiseppe, unfortunately the example won’t be tail-call optimized as your last statement is not the function call itself but a sequence construction that happens to contain the function call. Your function must be of the form: > f(x) => s(x)if your termination condition is met (i.e.

Re: [basex-talk] Docker Volumes Permission denied

2019-02-19 Thread Michael Seiferle
Hi Marie, thanks a lot for the follow up. Happy to hear it’s working! Best Michael

Re: [basex-talk] Class 'BaseXHTTP' missing?

2019-02-28 Thread Michael Seiferle
Hi Jan, I think it would be best to use the ZIP distribution, if you check out the sources you have to make sure to compile all maven projects (BaseXHTTP is part of the bases-api package). The ZIP distribution will contain a script to call basexhttp that will load both BaseX & basex-api in

Re: [basex-talk] Write functions in sequence

2019-03-12 Thread Michael Seiferle
Hi Guiseppe, The following pattern is supposed to / does work: > file:write("1.txt", "Written to 1.txt"), > file:write("2.txt", file:read-text("1.txt")), > "Read from 2.txt: " || file:read-text('2.txt') Could you maybe elaborate a bit more on your code? Best from Konstanz Michael > Am

Re: [basex-talk] Write functions in sequence

2019-03-12 Thread Michael Seiferle
3 > 04109 Leipzig > Deutschland > > E-mail: cel...@informatik.uni-leipzig.de > <mailto:cel...@informatik.uni-leipzig.de> > Web site 1: http://asv.informatik.uni-leipzig.de/en/staff/Giuseppe_Celano > <http://asv.informatik.uni-leipzig.de/en/staff/Giuseppe_C

Re: [basex-talk] Docker Volumes Permission denied

2019-02-14 Thread Michael Seiferle
Hi Marie, thanks for your observations! The explanation for this behavior is, that the `basexhttp` Process inside the container runs as non-privileged user `basex` with an UID of 1984 & GID 0. Usually processes inside docker containers will run as root and as such will be able to read & write

Re: [basex-talk] ubuntu 18.04 (bionic)

2019-01-31 Thread Michael Seiferle
ex/+packages > <https://launchpad.net/basex/+packages)> > Is there 9 version for that Ubuntu ? > > Thx > > -- > С уважением, > Ветошкин Владимир Владимирович > > -- -- Michael Seiferle, BaseX GmbH, http://basex.org |-- Firmensitz: Obere Laube 73, 78462 Ko

Re: [basex-talk] Improper Use? Potential bug?

2019-06-04 Thread Michael Seiferle
Hi Buddy, that looks like a bug. Would you mind sharing your XQuery or a SSCE? I think this is definitely something we might want to have a look at :-) Best from Konstanz Michael > Am 03.06.2019 um 13:12 schrieb Buddy Kresge : > > I am all of a sudden getting the below error (and things

Re: [basex-talk] Update of arbitrarily selected elements?

2019-06-03 Thread Michael Seiferle
Hi Josh, I think the most widely used approach would be addressing items via ID — just as you would in a traditional database approach — this might involve adding IDs to all elements. >> (as in, not selectable with a query) With XPath you can select arbitrary parts of your document, maybe

Re: [basex-talk] XML in HTTP request body

2019-06-03 Thread Michael Seiferle
Hi Jerome, If I understand correctly, you want to create a hash value for the string serialization of the document you sent to restxq right? Currently inside RESTXQ your document is treated as an XML Document, hence: $body will be of type document-node(): > > > Hello > World >

Re: [basex-talk] Docker basex/basexhttp 9.2.2?

2019-06-12 Thread Michael Seiferle
Great! :-) Von meinem iPhone gesendet > Am 12.06.2019 um 10:16 schrieb Jörn Willhöft : > > Hi Michael, > > it became available on docker hub tonight. Thanks! > > Cheers, > Jörn > > > >> Michael Seiferle hat am 11. Juni 2019 um 12:14 geschr

Re: [basex-talk] Health Analyzer registration issue

2019-06-11 Thread Michael Seiferle
Hi Ganesh, Sorry, but seems your email somehow got misdirected to us? We’ll be glad to support your colleagues at VMware however I am not sure what caused this bug by just looking at your screenshot ;) Best Michael > Am 11.06.2019 um 08:02 schrieb Ganesh Joshi Regmi (c) > : > > Hi Team, >

Re: [basex-talk] Use of xs:hexBinary() comes with strange results

2019-06-11 Thread Michael Seiferle
Hi Andreas, I think what you are observing is the following: UTF-8 encoded stings can optionally denote a multi-byte sequence, with the number of leading 1-s defining the multibyte pattern length. c.f. https://en.wikipedia.org/wiki/UTF-8 In your example,

Re: [basex-talk] Using the attribute index to get attribute values

2019-06-12 Thread Michael Seiferle
Hi France, that’s just a wild guess, but maybe the index:facets() might be of help here? It works directly on the index information, so the queries should be sufficiently fast if the results of index:facets() fulfill your needs. http://docs.basex.org/wiki/Index_Module#index:facets The idea

Re: [basex-talk] Using the attribute index to get attribute values

2019-06-12 Thread Michael Seiferle
:48 schrieb France Baril : > > But facets would return @type values for all @type and I need only those on > . > > On Wed, Jun 12, 2019 at 4:34 PM Michael Seiferle <mailto:m...@basex.org>> wrote: > Hi France, > > that’s just a wild guess, but maybe the index:facets(

Re: [basex-talk] Database lock during RESTXQ operation

2019-05-13 Thread Michael Seiferle
Hi Martin, This error may happen if (1) two different instances of basex try to open/update the very same database. As BaseX uses standard JVM functionality to acquire the Lock it is very likely that indeed to different processes tried to access the very same file. Maybe there is some kind of

Re: [basex-talk] Database lock during RESTXQ operation

2019-05-15 Thread Michael Seiferle
Hi Martin, hard to tell what went wrong then without looking at your setup. Did it happen again or has it been a one-time issue? Best Michael -- Michael Seiferle, BaseX GmbH, http://www.basexgmbh.de |-- Firmensitz: Obere Laube 73, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285

Re: [basex-talk] my first baseX db

2019-04-18 Thread Michael Seiferle
Hi Robert, are you sure your XML file is valid? Does it work if you move that particular file out of your google drive temporarily? Best Michael Von meinem iPhone gesendet > Am 18.04.2019 um 21:36 schrieb Robert Kirkpatrick : > > Hello, > > Novice, newbie request: GUI snapshot: > > Command:

Re: [basex-talk] A Tail Call, that runs (not) if different numeric values are being used as parameter

2019-05-02 Thread Michael Seiferle
Hi Andreas, maybe you might want to share your `string`-Module with us? I don’t think the swapped version is end-recursive either (due to the concat) but it would be interesting to see what happens either way! Best from Konstanz Michael

Re: [basex-talk] inspect:functions#1 on XPath funcs errors out with [XPST0003] and returns an XHTML file

2019-05-06 Thread Michael Seiferle
Hi Andreas, I think you are calling the inspect function function on the following HTML Page: https://www.w3.org/2005/xpath-functions/ Per documentation, the function does the following: > If a $uri is specified, the addressed module will be

Re: [basex-talk] HTTP POST as xml

2019-05-06 Thread Michael Seiferle
Hi Robert, Yeah, that’s not necessarily obvious, but the type of the document you post is „document-node()“ not element() — so simply change the function & argument types to document-node() and you will be fine. Usually the the in-browser debugging > Network view helps with identifying such

Re: [basex-talk] Connecting the BaseX AppChecker to Visual Studio

2019-07-08 Thread Michael Seiferle
Hi Matt, Sorry I can’t be of more help, but we at BaseX don’t know too much about the AppChecker-Project. I know we’ve been contacted by Microsoft’s Peter Villadsen and asked whether he may use / pre-install BaseX for an X++ project at Microsoft, but since confirming that our license would

Re: [basex-talk] Binary module

2019-08-14 Thread Michael Seiferle
Hi Guiseppe, 1) You are right, it’s not too obvious what’s happening here: In BaseX the default serialization mode is „basex“ which tries to return items in a more readable way, hence internally your string is represented as xs:base64Binary — but when it is output to the query results panel

Re: [basex-talk] BaseX Docker logs

2019-08-30 Thread Michael Seiferle
Hi Marie, I think the log files should be located inside your container at: > /srv/basex/data/.logs # for current basex versions Or for your version: > /srv/BaseXData/.logs # for BaseX 8.6.4 Maybe you can check your output for: > docker run basex/basexhttp:8.6.4 > a6e… => > docker exec

Re: [basex-talk] Test if basexserver is running?

2019-08-30 Thread Michael Seiferle
Hi Ben, I maybe don’t fully get your question right (and I admin I do not know much about R), but I’d simply open the socket on the port I expect BaseX to be listening on and see whether or not I receive a `BaseX:123456789` response and close the connection immediately after. Best Michael

Re: [basex-talk] Flat XML fods database

2020-02-14 Thread Michael Seiferle
Hi Thufir, I think you might look up the namespaces from the Libre Office File like so: > ( > for $node in $doc//(@*,*) > let $nn := node-name($node) > let $ns-uri := namespace-uri-from-QName($nn) > let $prefix := prefix-from-QName($nn) > where $ns-uri > return ``[declare namespace

Re: [basex-talk] missing web.xml from docker image

2020-09-15 Thread Michael Seiferle
Hi Nicholas, I think this might be indeed a good chance to re-engineer our docker image. We had one user that maintained the image long time ago, but maybe it would be good to have it updated. We don’t tend to use docker that often, as you might have noticed ;-) best Michael > Am

Re: [basex-talk] RESTXQ path resolution

2020-07-31 Thread Michael Seiferle
Hi Ben, > Am 30.07.2020 um 22:23 schrieb Ben Pracht : > > * From testing, it appears that the basexhttp server also starts the database > server. From the options available in .basex, I was under the impression I > had to start basexserver separately, but when I tried to run basexserver

Re: [basex-talk] Change static directory for html pages

2020-07-03 Thread Michael Seiferle
Hi Ben, Glad you enjoy setting up a restxq project, we use it as a primary driver of our Web-applications  I set up a small project (in response to a related question last week), that serves static content from /webapp at „http://localhost/“ and maps all restxq endpoints to

Re: [basex-talk] Handling saving errors

2020-07-06 Thread Michael Seiferle
Hi Ramzi, I am not sure whether your are using RestXQ, however if you do, the implementation should take care of this by itself. XQuery update in general either applies the whole updating query, or cancels all updates: Take the following example db containing 5 documents. >

Re: [basex-talk] RESTXQ path resolution

2020-07-13 Thread Michael Seiferle
Hi Ben, Make sure to first read my previous mail, because you need a working restxq-Setup ;-) Theres the „rest:wadl()“ function, that generates a representation of all available endpoints. I added it to my example project, feel free to check it out here: >

Re: [basex-talk] Change static directory for html pages

2020-07-13 Thread Michael Seiferle
Hi Ben, Sorry for the belated response — maybe you forgot to update the web.xml file? RestXQ-Resolution works as follows: The .basex file configures **where on disk** the RestXQ-Servlet looks für XQuery modules: The following options can be set: * WEBPATH > Points to the directory in

Re: [basex-talk] Autocomplete with RESTXQ

2020-06-26 Thread Michael Seiferle
Hi Gerrit, I came up with the following example — https://git.basex.io/basex-public/mailinglist-autocomplete Hope this helps — feel free to ask for more. I simply chose the first autocomplete library that showed up when asking google for "autocomplete lightweight“ ;-) Probably the most

Re: [basex-talk] Autocomplete with RESTXQ

2020-06-28 Thread Michael Seiferle
You’re welcome. Glad I could help save some time, I agree it looks simple, yet wrapping ones head around those small details can be a real showstopper sometimes :-) Feel free to ask for more details anytime. Looking forward to seeing said search portal! Best from Konstanz Michael Von meinem

Re: [basex-talk] Docker Image fails on initialization

2020-10-22 Thread Michael Seiferle
Hi Moishy, I think you simply mixed up the arguments. Arguments that come after the container name will be passet to the running container, arguments that come before will be passed to the docker daemon. For example: >> https://docs.docker.com/engine/reference/run/ You want to pass your

Re: [basex-talk] Versioning in BaseX

2020-11-05 Thread Michael Seiferle
Hi Flurb, This won’t work without some extra effort from your side; I am not sure what part of the https://docs.basex.org/wiki/Database_Module you are referring to. XQuery however is a full-fledged programming language, so you might implement a

Re: [basex-talk] docker, creating and deploying the dba docker-image

2021-11-29 Thread Michael Seiferle
ht consider updating our official image. Best Michael > > Cheers, > Rob > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows > > From: Michael Seiferle <mailto:m...@basex.org> > Sent: Friday, November 26, 2021 6:04 PM >

Re: [basex-talk] docker, creating and deploying the dba docker-image

2021-11-26 Thread Michael Seiferle
Hi Rob, this answer contains two parts, but tldr: if you mount nothing to /srv/basex/webapp the DBA should already be present. Now the slightly longer part: > But I’m confused what directories to mount on: ‘/srv/basex/repo’ and > ‘/srv/basex/webapp’? > I can’t find the docker-run example

Re: [basex-talk] Crash when starting basexgui

2023-10-25 Thread Michael Seiferle
annoying issue to say the least. All the best :-) Michael Am 25.10.2023 um 14:21 schrieb Michael Seiferle : Hi Johan, it works (well worked… see below) on my machine with the very same setup (basex@10.7 & openjdk@21 via brew, see my previous email), so I am sure it is an issue for cer

Re: [basex-talk] Access denied using client

2023-10-20 Thread Michael Seiferle
Hey Csaba, Feel free to post your Dockerfile, I’ll have a look at it tomorrow :-) Maybe I’ll spot something :-) Best Michael Von meinem iPhone gesendet Am 20.10.2023 um 22:15 schrieb Csaba Fekete :  Sorry, please ignore, it still doesn't work. It works on my local machine, but not in the

Re: [basex-talk] Access denied using client

2023-10-21 Thread Michael Seiferle
, whenever I restarted the container, data - along with the new password I guess - was lost. Adding this to docker-compose.yml solved it: volumes: - "./docker/basex/data:/opt/basex/data" Thank you guys! Cheers On Fri, 20 Oct 2023 at 23:35, Michael Seiferle mailto:m...@basex.org>

  1   2   >