Re: [basex-talk] Calling a Java function with varargs parameter from XQuery

2023-07-02 Thread Lizzi, Vincent
Do you have any suggestions? Thank you, Vincent _ Vincent M. Lizzi Head of Information Standards | Taylor & Francis Group vincent.li...@taylorandfrancis.com Information Classification: General -Original Message- From: Christian Grün Sent: Saturday, July 1, 2023 2:29

Re: [basex-talk] Calling a Java function with varargs parameter from XQuery

2023-06-30 Thread Lizzi, Vincent
n Standards | Taylor & Francis Group vincent.li...@taylorandfrancis.com<mailto:vincent.li...@taylorandfrancis.com> Information Classification: General From: Lizzi, Vincent Sent: Thursday, June 29, 2023 7:55 PM To: BaseX Subject: Calling a Java function with varargs parameter from XQuery

[basex-talk] Calling a Java function with varargs parameter from XQuery

2023-06-29 Thread Lizzi, Vincent
Hello BaseX people, The Java language bindings in BaseX look like a very good way to use Java libraries from XQuery. I'm currently trying to use Lingua (https://github.com/pemistahl/lingua) with BaseX, and mostly have it working, but I've not been able to figure out how to call a Java function

Re: [basex-talk] Pretty print

2022-11-18 Thread Lizzi, Vincent
Hi Liam, XML's way handling of space characters is understandably an improvement over SGML, but it still causes problems sometimes and seems more complex than it perhaps could be. Although the ship has long since sailed, out of curiosity do you recall if there were any suggestions for a rule

Re: [basex-talk] current-dateTime() function precision

2022-09-09 Thread Lizzi, Vincent
andfrancis.com<mailto:vincent.li...@taylorandfrancis.com> Information Classification: General From: ykhab...@bellsouth.net Sent: Friday, September 9, 2022 1:46 PM To: Lizzi, Vincent ; 'BaseX' Subject: RE: [basex-talk] current-dateTime() function precision Hi Vincent and Martin, Thanks for th

Re: [basex-talk] current-dateTime() function precision

2022-09-09 Thread Lizzi, Vincent
Hello Yitzhak, The current-dateTime() function returns the same value throughout the execution of a single query. The Profiling module has functions that provide the current system time, which is probably more to what you need. https://docs.basex.org/wiki/Profiling_Module Kind regards,

Re: [basex-talk] Java 8 and XML Catalog

2022-07-07 Thread Lizzi, Vincent
tion Classification: General -Original Message- From: Lizzi, Vincent Sent: Thursday, July 7, 2022 9:12 AM To: 'Christian Grün' Cc: basex-talk@mailman.uni-konstanz.de Subject: RE: [basex-talk] Java 8 and XML Catalog Hi Christian, Thank you for your reply! That makes sense. I worked ar

Re: [basex-talk] Java 8 and XML Catalog

2022-07-07 Thread Lizzi, Vincent
_ Vincent M. Lizzi Head of Information Standards | Taylor & Francis Group vincent.li...@taylorandfrancis.com Information Classification: General -Original Message- From: Christian Grün Sent: Thursday, July 7, 2022 5:27 AM To: Lizzi, Vincent Cc: basex-talk@mailman.uni-konst

[basex-talk] Java 8 and XML Catalog

2022-07-05 Thread Lizzi, Vincent
Hi Christian, I'm having trouble getting an XML Catalog to work in BaseX 9.7.2 running on Java 8. The XML Catalog is working properly in BaseX and Saxon using Java 17. However, if I keep everything the same and switch to Java 8 the XML Catalog doesn't work. The error messages when running on

Re: [basex-talk] XML Catalog and xslt:transform()

2022-06-02 Thread Lizzi, Vincent
Hi Daniel and Gerrit, If you are able to use Java version 11 or higher, it might be of use to try the XML Catalog support that comes built in with Java. This ticket comment has some details and an example for configuring Java and BaseX to use the same XML Catalog:

Re: [basex-talk] First steps with client/server on Linux - bulk import; error message in dba

2022-05-12 Thread Lizzi, Vincent
nformation Classification: General From: Christian Grün Sent: Thursday, May 12, 2022 8:03 AM To: Florian Schmitt ; Lizzi, Vincent Cc: BaseX Subject: Re: [basex-talk] First steps with client/server on Linux - bulk import; error message in dba Thanks for the observation, Florian. > After modifyin

Re: [basex-talk] specifying the processor for xslt:transform()

2021-11-05 Thread Lizzi, Vincent
just show what has worked for me, and there might be better alternatives. Kind regards, Vincent _ Vincent M. Lizzi Head of Information Standards | Taylor & Francis Group vincent.li...@taylorandfrancis.com<mailto:vincent.li...@taylorandfranci

Re: [basex-talk] specifying the processor for xslt:transform()

2021-11-05 Thread Lizzi, Vincent
Hello Christian, Gerrit, Liam, Graydon, Is it possible to use a different XML Catalog Resolver with BaseX? I'm referring specifically to the new XML resolver that Norm Tovey-Wash presented today at Declarative Amsterdam. The presentation recording is at

[basex-talk] problems using Archive module with certain zip files

2020-08-19 Thread Lizzi, Vincent
Hello, I'm using BaseX in several file conversion projects that involve unpacking a zip file using the Archive module, modifying the files that are found inside with the File module and XSLT module, and creating new zip file(s) using the Archive module again. BaseX is very useful for these

Re: [basex-talk] xslt:transform function not working with XML Catalog

2020-07-10 Thread Lizzi, Vincent
Gerrit and Liam, Thanks for that background information and the recommendation for sponsoring development. I tried adding rewriteSystem to the XML Catalog but it did not help. The XML Catalog already uses systemSuffix. It is good to see that the option for sponsoring development is available

Re: [basex-talk] xslt:transform function not working with XML Catalog

2020-07-09 Thread Lizzi, Vincent
Vincent M. Lizzi Head of Information Standards | Taylor & Francis Group vincent.li...@taylorandfrancis.com<mailto:vincent.li...@taylorandfrancis.com> Information Classification: General From: Liam R. E. Quin Sent: Thursday, July 9, 2020 12:55 PM To:

Re: [basex-talk] xslt:transform function not working with XML Catalog

2020-07-09 Thread Lizzi, Vincent
ons may occur in the pragma, and the location string must not be surrounded by quotes." Gerrit On 09.07.2020 06:32, Lizzi, Vincent wrote: > Hi Liam, > > Thanks for the reply and suggestions. Based on your suggestion I tried > pragmas and strace, and had another go at CatalogManager.proper

Re: [basex-talk] xslt:transform function not working with XML Catalog

2020-07-08 Thread Lizzi, Vincent
Liam R. E. Quin Sent: Wednesday, July 8, 2020 10:28 PM To: Lizzi, Vincent ; BaseX Subject: Re: [basex-talk] xslt:transform function not working with XML Catalog On Wed, 2020-07-08 at 22:46 +0000, Lizzi, Vincent wrote: > I've encountered a problem using xslt:transform in to transform s

[basex-talk] xslt:transform function not working with XML Catalog

2020-07-08 Thread Lizzi, Vincent
I've encountered a problem using xslt:transform in to transform some old XML that contains a DTD DOCTYPE system literal pointing to a non-working URI and also uses ENTITYREF attributes to refer to image files. I have the XML Catalog configured correctly using CATFILE. The XSLT is using

Re: [basex-talk] Problem with db:create and addraw

2019-09-17 Thread Lizzi, Vincent
, 2019 12:59 PM To: Lizzi, Vincent Cc: BaseX Subject: Re: [basex-talk] Problem with db:create and addraw Hi Vincent, The fix for adding binary resources via XQuery is available. I'd appreciate if you could give it a quick shot [1]. Thanks in advance, Christian [1] http://files.basex.org/releases

Re: [basex-talk] Problem with db:create and addraw

2019-09-15 Thread Lizzi, Vincent
, 2019 8:56 PM To: Lizzi, Vincent Cc: BaseX Subject: Re: [basex-talk] Problem with db:create and addraw Hi Vincent, Thanks for sharing your observation. Just recently, we have stumbled upon this bug by ourselves; it should be fixed with 9.3 [1]. Cheers, Christian [1] https://github.com/BaseXdb

[basex-talk] Problem with db:create and addraw

2019-09-15 Thread Lizzi, Vincent
Greetings, I am seeing different behavior between XQuery db:create() and the command CREATE DB when trying to create a database from a zip file, which is causing a problem. I want to import a zip file that contains XML and binary files (images, ets.) into a new BaseX database using db:create()

Re: [basex-talk] Can't get `cdata-section-elements` to work at all for XSLT output

2018-08-01 Thread Lizzi, Vincent
Hugh, As Gerrit mentioned, the issue you have encountered is due to the xslt:transform function returning, essentially, a parsed XML document, so the serialization controls that are declared in the XSLT are not being used. If you want the serialized output of the XSLT you can use the

Re: [basex-talk] Wasn't there a function, that would walk a website?

2018-08-01 Thread Lizzi, Vincent
Hi Andreas, Christian, Here attached is a module that I wrote a while ago to limit the rate of requests sent to a web server. This module has been useful in accessing APIs where the SLA does not allow more than a certain number requests per minute, and might be useful for this web crawling

Re: [basex-talk] about special characters

2018-05-18 Thread Lizzi, Vincent
Hi Bit, The problem may have to do with the character encoding. Try providing the “encoding” option, e.g. csv:parse($file, map{ "encoding": "windows-1252" }) I’d also like to call your attention to this module which provides a way to read Excel files directly from XQuery without the

Re: [basex-talk] SSL support for BaseX REST API

2018-03-21 Thread Lizzi, Vincent
Forwarding to the list... From: Stefania Axo <st...@us.ibm.com> Sent: Wednesday, March 21, 2018 10:05 PM To: Lizzi, Vincent Subject: Re: [basex-talk] SSL support for BaseX REST API ok i was able to set the property of not starting BaseXServer on both

Re: [basex-talk] Directory from which xml files are loaded

2017-10-08 Thread Lizzi, Vincent
Hi Helmut, What I usually do is create an empty file named .basexhome in the root folder of my project. Then, launch BaseX by going to the command line, change directory to the project folder, and run basexgui (or basexhttp, etc.). If the .basex config file has not already been created, the

Re: [basex-talk] Full-text lemmatizing and xml:lang

2017-06-30 Thread Lizzi, Vincent
Kristian, Out of curiosity, how are you linking the normalized texts in the -ft- database to the source documents? Is keeping a reference from the indexed text back to the source document a requirement in your application? Thanks, Vincent From: basex-talk-boun...@mailman.uni-konstanz.de

Re: [basex-talk] Java Modules - Constructor

2017-05-11 Thread Lizzi, Vincent
I like the idea of having a “custom” lib folder, also for the .zip distribution. That would make updating to new versions of BaseX a little easier. Sent from my Windows 10 phone From: Christian Grün Sent: Thursday, May 11, 2017 4:09 PM To: Andy

Re: [basex-talk] count(//elem) not optimized, even though `elem` is in the index

2017-02-22 Thread Lizzi, Vincent
Hi Christian, Does this mean, for a given set of XML files that have several namespace declarations attached to the root element including a default namespace, if namespaces are removed when these XML files are loaded into BaseX, for example by using the “Strip namespaces” option in the GUI,

Re: [basex-talk] retrieve a sequence of all values within an attribute index

2016-10-10 Thread Lizzi, Vincent
Hi Christian, Thank you!!! I will have a look. Vincent From: Christian Grün [mailto:christian.gr...@gmail.com] Sent: Sunday, October 09, 2016 4:49 PM To: Alex Muir <alex.g.m...@gmail.com> Cc: Lizzi, Vincent <vincent.li...@taylorandfrancis.com>; BaseX <basex-talk@mailman.

Re: [basex-talk] using rest api to move a file

2016-09-22 Thread Lizzi, Vincent
Adil, If you can use RESTXQ to create a function, you could use something like: db:add($todb, db:open($fromdb, $path), $path) inside a function available that is made available via RESTXQ. Vincent http://docs.basex.org/wiki/RESTXQ From: basex-talk-boun...@mailman.uni-konstanz.de

Re: [basex-talk] csv:parse in the age of XQuery 3.1

2016-09-08 Thread Lizzi, Vincent
As it so happens, I just received a 20.5 Mb Excel file which I am loading into BaseX as CSV. To prepare the file, I opened it in Excel and saved as CSV format. The CSV file is 70 Mb. Here is what I observe loading this CSV file to BaseX a few different ways. 1. BaseX GUI – Using “Create

Re: [basex-talk] 8.5.3 and xquery:invoke ...

2016-09-02 Thread Lizzi, Vincent
I've run into what might be a variation of the same problem. Inside an expath packaged module, a .xqm file uses relative file path references to .xsl files contained within the module. In my case, the relative file path references are being used with xslt:transform(). The path resolution might

Re: [basex-talk] Autocommit option using sql:connect to Oracle 11.2.0.3 with ojdbc6.jar

2016-08-15 Thread Lizzi, Vincent
This is only tangentially related, but I have used the SQL module to connect to Oracle databases so I want to mention this in case it helps someone. The Oracle driver ojdbc7.jar seems to have trouble with complex SQL SELECT statements, and gives misleading error messages. When encountering

Re: [basex-talk] retrieve a sequence of all values within an attribute index

2016-07-11 Thread Lizzi, Vincent
I have a similar situation in which I want to get all distinct values of a specific attribute. I’ve tried using 2 different approaches: group and distinct-values. On small or medium size databases group tends to be faster. When trying to get distinct values of a specific attribute from large

Re: [basex-talk] unexpected whitespace-handling behavior in BaseX 8.3.1

2016-06-24 Thread Lizzi, Vincent
To add to these examples, I think another way to add a document with whitespace preserved is: declare option db:chop 'false'; db:add("DB", doc("http://example.com/doc.xml;), "doc.xml") Is this equivalent to db:add("DB", "http://example.com/doc.xml;, "doc.xml", map { "chop": false() }) ?

Re: [basex-talk] question about http server

2016-06-07 Thread Lizzi, Vincent
One hint on your PHP code SemantiqFn: variables file and relation are being concatenated into the query string by PHP. Instead you can bind variables, which is safer in case the data contains a quote which would break your concatenation. Declare the variables at the top of each query: declare

[basex-talk] Optimal size for large databases

2016-06-07 Thread Lizzi, Vincent
I am importing a large (~3 million) set of XML documents to BaseX and am running into some problems as the databases grow beyond a few gigabytes. I am using BaseX 8.4.4, and have increased the memory available to BaseX to 12288m (12 Gb) using -Xmx (the machine has 20 Gb total). The documents

Re: [basex-talk] XLSX to XML

2016-04-06 Thread Lizzi, Vincent
Florian, The xsl-excel-engine project might help you get started working with xlsx files: https://github.com/foglcz/xsl-excel-engine xsl-excel-engine is for writing XML files so it does not do what you are asking, but the wiki documentation provides an introduction to the Excel file format.

Re: [basex-talk] BaseX, Zorba, e-mail module

2016-02-04 Thread Lizzi, Vincent
Hi Christian, I’m having trouble installing the BaseX email module. The install appears to succeed but then the module is not available. BaseX 8.4 beta 2fabc36 [Standalone] Try 'help' to get more information. > repo install http://files.basex.org/modules/org/basex/modules/email/EMail.jar

Re: [basex-talk] BaseX, Zorba, e-mail module

2016-02-04 Thread Lizzi, Vincent
Hi Christian, I might be able get it working. The link you mentioned isn’t easily findable in the list archive. Where is the source of the email module located? Thanks, Vincent From: Christian Grün [mailto:christian.gr...@gmail.com] Sent: Thursday, February 04, 2016 6:27 PM To: Lizzi, Vincent

Re: [basex-talk] Validate module and catalogs

2015-09-14 Thread Lizzi, Vincent
...@gmail.com] Sent: Monday, September 14, 2015 6:41 AM To: Lizzi, Vincent <vincent.li...@taylorandfrancis.com> Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] Validate module and catalogs Hi Vincent, As you already found out, the catalog option is currently not applied when vali

[basex-talk] Validate module and catalogs

2015-09-01 Thread Lizzi, Vincent
It appears that the Validate module is not using catalogs. I'm working with XML that contains a DTD DOCTYPE declaration with a public identifier and a system identifier that contains the filename of the DTD, and I have set up a catalog that provides the DTD location. Here is a rough example:

[basex-talk] Schematron validation

2015-08-29 Thread Lizzi, Vincent
I have just released a module that provides an easy way to use Schematron in BaseX. It's is available on GitHub at https://github.com/vincentml/schematron-basex. This module is a convenience wrapper around the standard ISO Schematron XSLTs. In addition, a version of this module for eXist-db

Re: [basex-talk] Converting to UTF-8 in SQL module

2015-08-17 Thread Lizzi, Vincent
Thanks for sharing your solution! Vincent From: Tim Thompson [mailto:timat...@gmail.com] Sent: Monday, August 17, 2015 5:00 PM To: Lizzi, Vincent vincent.li...@taylorandfrancis.com Subject: Re: [basex-talk] Converting to UTF-8 in SQL module Thanks, Christian, Vincent. Following Christian's

Re: [basex-talk] Destination of result-document from XSLT module

2015-08-04 Thread Lizzi, Vincent
to use xslt (with baseX 7) it serialize with indent true the input of my xslt, so I lost the space. Marc Le 03/08/2015 23:07, Lizzi, Vincent a écrit : Thanks, Max and Andy. The XQuery 3.1 transform function looks promising. Marc, For controlling the serialization of XSLT output, you can

[basex-talk] Destination of result-document from XSLT module

2015-08-03 Thread Lizzi, Vincent
I'm trying to use the XSLT Module in BaseX 8.2.3 with Saxon 9.6 to run an XSLT that produces several output documents using xsl:result-document. I'm having trouble setting the location of the output documents. I want to have xsl:result-document create the output documents in a temporary folder

Re: [basex-talk] Destination of result-document from XSLT module

2015-08-03 Thread Lizzi, Vincent
for your problem you may have to build your own BaseX transform Java Module based on the XsltTransform class setting at least the StreamResult's systemId I think. I will be also working on this the next evenings. best regards, Max On 03.08.2015 20:54, Lizzi

Re: [basex-talk] HTTP module and cookies

2015-07-14 Thread Lizzi, Vincent
wrote: Hi Vincent, So far, I'm not aware of a standard solution to handle and cache client-side cookies with BaseX. Could you show us your solution? It might help us to discuss alternative solutions. Best, Christian On Thu, Jul 9, 2015 at 8:30 PM, Lizzi, Vincent vincent.li

Re: [basex-talk] Add metadata to a group of documents inside the database

2015-05-12 Thread Lizzi, Vincent
Menashè, In similar situations I've used a second database to store metadata at the same path as the document in the primary database. For example: db:open('database', '/path/a.xml') db:open('database_metadata', '/path/a.xml') Also, there is a feature request for adding properties as

Re: [basex-talk] Large Document Upload Performance

2015-03-13 Thread Lizzi, Vincent
Hi Jonathan, A few months ago I needed to import XML documents that were over 50 Mb to BaseX. After a few attempts to speed the process I found that using Saxon's s9api and Xerces2 as shown below performed the best. The bottleneck appeared to not be in BaseX but actually in making the process

[basex-talk] BaseX 8 and oXygen via XQJ

2014-12-23 Thread Lizzi, Vincent
After upgrading to BaseX 8.0 I'm no longer able to run queries on BaseX from oXygen. Connecting to BaseX from oXygen using WebDav still works, but trying to run a transformation in BaseX using the XQJ driver fails with a message Access denied. It appears that the XQJ driver needs to be updated

Re: [basex-talk] BaseX and MySQL

2014-11-19 Thread Lizzi, Vincent
Hans, I had to do this a few days ago, so it’s fresh in my mind. Download Connector/J from the MySQL website and place .jar file in the basex/lib folder. Restart BaseX (if you’re using the server version) so it picks up the new .jar. Queries can then be run like: let $c :=

[basex-talk] locking problem

2014-10-16 Thread Lizzi, Vincent
This is an update, and further problem, on a problem I posted here a few months ago. I've written a program to import XML documents into BaseX in one database, and populate a second database with a small amount of metadata about each document. This works but crashes every so often, and I have

Re: [basex-talk] db documents metadata

2014-09-02 Thread Lizzi, Vincent
with the existing APIs to access the XQuery methods for querying and setting properties. Thanks, Vincent -Original Message- From: Christian Grün [mailto:christian.gr...@gmail.com] Sent: Friday, August 29, 2014 6:33 AM To: Lizzi, Vincent Cc: Marc van Grootel; BaseX Subject: Re: [basex-talk] db

Re: [basex-talk] db documents metadata

2014-08-28 Thread Lizzi, Vincent
+1 I would find this feature useful for several similar scenarios. I want to use BaseX for querying XML documents and keep BaseX synchronized with external archives/repositories where the XML files are maintained. I've started to implement along these lines by creating a second database to

[basex-talk] locking problem

2014-08-06 Thread Lizzi, Vincent
I've written a process using the Java BaseXClient to load XML documents to one database (A) and save a small amount of data about each document in a second database (B) using a parallel document path. The data in (B) includes a sha1 hash which is used to determine if the source XML document has