Re: [basex-talk] How do I prevent BaseX from insisting on adding these supposed HTML attributes?

2012-05-09 Thread Imsieke, Gerrit, le-tex
It isn’t the fault of BaseX. The parser (tagsoup, if you choose HTML parsing) inserts the default values for attributes. You should be able to suppress it by adding nodefaults=true to HTMLOPT. On 2012-05-09 17:07, jida...@jidanni.org wrote: AH == Alexander

Re: [basex-talk] using xslt 2 --- Unknown function 'current-grouping-key(...)'.

2012-09-13 Thread Imsieke, Gerrit, le-tex
Aren’t the -jar and -cp options mututally exclusive? That is, if you use -jar, -cp is being ignored? Maybe you should put all jars (BaseX, Saxon, ...) in the -cp and then invoke org.basex.BaseXGUI or the like. Maybe adapt the startup scripts to include the Saxon jar in the cp. Gerrit On

[basex-talk] 256 namespaces limit

2013-01-13 Thread Imsieke, Gerrit, le-tex
Dear Team, Do you plan on increasing the 256 namespaces limit any time soon? I know that there is the STRIPNS option, but this does not fit my use case (which is to index all my XSLT and XProc files) too well. Gerrit ___ BaseX-Talk mailing list

[basex-talk] dynamically evaluate XPath

2013-11-11 Thread Imsieke, Gerrit, le-tex
I have a RESTXQ path/function that is supposed to retrieve a document fragment, restricted to an XPath expression that is given as a query parameter, i.e., as a string. The list of possible fragment XPaths has been calculated using path() by another function, and the user of a Web application

Re: [basex-talk] dynamically evaluate XPath

2013-11-11 Thread Imsieke, Gerrit, le-tex
Thanks Christian, that’s it! On 11.11.2013 13:49, Christian Grün wrote: Hi Gerrit, you are probably looking for the xquery:eval function [1]: xquery:eval( db:open(' || $db || ', ' || $doc || ') || $xpath) ___ BaseX-Talk mailing list

[basex-talk] db:open(), xquery:eval(), and path()

2013-11-16 Thread Imsieke, Gerrit, le-tex
I think that under certain conditions, the path() function does not return the proper paths. Here’s an example that works ok: for $doc in doca/bc//b/doc let $nodes as element(*)* := xquery:eval($doc//*, map{doc:=$doc}) return for $node in $nodes return result path={path($node)}

Re: [basex-talk] db:open(), xquery:eval(), and path()

2013-11-16 Thread Imsieke, Gerrit, le-tex
Probably related: db:node-id(xquery:eval(db:open('doc', 'doc.xml')/*)) ⇒ 0 db:node-id(db:open('doc', 'doc.xml')/*) ⇒ 1 On 16.11.2013 23:57, Imsieke, Gerrit, le-tex wrote: I think that under certain conditions, the path() function does not return the proper paths. Here’s an example

[basex-talk] transform before update query

2014-02-16 Thread Imsieke, Gerrit, le-tex
This XQuery update related question might be not the most BaseX-specific question that has ever been asked on the list, but anyway: I’m currently improving the performance of sxedit (that I presented at XML Prague yesterday). One nasty workaround that I have to do in the browser is escaping

Re: [basex-talk] transform before update query

2014-02-16 Thread Imsieke, Gerrit, le-tex
Christian, thanks for your XQuery support. Will pay back in XSLT support ;) I made this change, and I also made the xquery:eval statements compatible with 7.8: https://github.com/gimsieke/sxedit/blob/master/lib/basex/restxq/sxedit.xqm Gerrit On 16.02.2014 15:40, Christian Grün wrote: Hi

[basex-talk] restriction on number of namespaces has apparently been lifted – thank you

2014-03-20 Thread Imsieke, Gerrit, le-tex
Today I noticed that I could actually build an index of all XSLT, XProc, Relax NG and Schematron files on my hard disk (3316 files). I couldn’t do that 2 years ago because the maximum number of distinct namespaces in a DB was limited to 256 or so. Thanks, BaseX team, for lifting this

Re: [basex-talk] restriction on number of namespaces has apparently been lifted – thank you

2014-03-21 Thread Imsieke, Gerrit, le-tex
not reached the critical limit yet. So I made an issue out of it: https://github.com/BaseXdb/basex/issues/902 Gerrit On 20.03.2014 22:54, Imsieke, Gerrit, le-tex wrote: Today I noticed that I could actually build an index of all XSLT, XProc, Relax NG and Schematron files on my hard disk (3316

Re: [basex-talk] Accessing DOCTYPE information after DB creation?

2014-03-28 Thread Imsieke, Gerrit, le-tex
You can preprocess your documents with Andrew Welch’s LexEv parser: http://andrewjwelch.com/lexev/ On 28.03.2014 12:25, Christian Grün wrote: Hi Constantine, unfortunately no, because this information is already consumed by the XML parser (i. e., we don’t get to see it at all when the

Re: [basex-talk] 7.8.2 Updating function items

2014-05-04 Thread Imsieke, Gerrit, le-tex
acclaim On 04.05.2014 21:57, Christian Grün wrote: Et voilà... https://github.com/BaseXdb/basex/issues/939 http://files.basex.org/releases/latest/ Your feedback is welcome, Christian

Re: [basex-talk] Opened by another process

2014-11-18 Thread Imsieke, Gerrit, le-tex
On 18.11.2014 11:31, Maximilian Gärber wrote: wow, this has to be nicest tech list on the planet users thank themselves, receive thanks from the owners ;-) But there are also nasty subscribers such as myself who pedantically insist that said users thank each other (rather than

Re: [basex-talk] BaseX request from Saxon XSL transformation

2015-11-18 Thread Imsieke, Gerrit, le-tex
A more convenient way (at least for Java amateurs like myself) might be to set up a RESTXQ service in BaseX and to query it using plain fn:doc(''). At least this works for GET requests. If you need to post something, you’ll probably need the EXPath HTTP client library [1] that doesn’t ship with

Re: [basex-talk] Catalog Resolution Under Windows

2016-03-13 Thread Imsieke, Gerrit, le-tex
Hi Eliot, I didn’t recently try it on Windows myself, but just two observations. On 13.03.2016 01:13, Eliot Kimber wrote: CATFILE = C:/workspace/DITA-OT2.x/catalog-dita.xml" There is a trailing quote sign here, is this intentional? Don’t know the effects of unbalanced quotes here. In any

Re: [basex-talk] Could not reserve enough space for object heap

2017-08-16 Thread Imsieke, Gerrit, le-tex
It wasn’t clear to me from the OP whether the issue of *slowness* persisted after raising max heap to 2 GB, or whether the issue of *not being able to allocate this amount of space at all* persisted. If Bram set max heap to more than 1.5 GB and immediately received the message “Could not

[basex-talk] CG 40

2017-07-08 Thread Imsieke, Gerrit, le-tex
“You’ll become smart at the age of forty,” a Swabian saying goes („Mit 40 wird man g’scheid.“, see also [1]). If this is true, and if the (excellent) current system is the product of Christian’s pre-40 dabbling, how much more sophisticated will BaseX become from now on? Happy birthday,

Re: [basex-talk] Validate XML against RNG schema

2017-06-21 Thread Imsieke, Gerrit, le-tex
using trang Regards Dharmendra Kumar Singh On Wednesday, 21 June 2017 1:06 PM, "Imsieke, Gerrit, le-tex" <gerrit.imsi...@le-tex.de> wrote: Hi Dharmendra, The function validate:rng() seems to only accept a Relax NG *XML syntax* document as its 2nd argument. You can conv

Re: [basex-talk] Validate XML against RNG schema

2017-06-21 Thread Imsieke, Gerrit, le-tex
Hi Dharmendra, The function validate:rng() seems to only accept a Relax NG *XML syntax* document as its 2nd argument. You can convert the rnc file to rng using trang and store it in the DB as a regular XML file. Gerrit On 6/21/17 8:20 AM, Dharmendra Singh wrote: Hi all, I have loaded the

Re: [basex-talk] How to export a database containing xi:include to multiple files

2018-06-27 Thread Imsieke, Gerrit, le-tex
Hi Marco, It didn’t go unanswered. Here’s Alex’s reply: https://mailman.uni-konstanz.de/pipermail/basex-talk/2018-May/013147.html Although his answer doesn’t address the issue of recreating xi:include elements from elements with an xml:base attribute. Gerrit On 27.06.2018 17:34, Marco

Re: [basex-talk] BaseX File Module : access network folder on windows server

2018-01-22 Thread Imsieke, Gerrit, le-tex
It works with a file: URI with five forward slashes, like file:list('file:/SERVERNAME_or_IP/Freigabename/') The results, if folders, may contain backslashes though. On 22/01/2018 19:05, Christian Grün wrote: Hi Dieter, I haven’t tried Window networking by myself, but AFAIK access on

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

2018-01-26 Thread Imsieke, Gerrit, le-tex
Hi Stefania, You can avoid it if you create the DB with chopping switched off in the first place. Or you can supply the chopping option as you go: db:replace('MyDB', 'doc.xml', ' stefy ', map {'chop':false()}) Whitespace chooping by default is maybe the most-detested design decision in

Re: [basex-talk] diacritics sensitive not working

2018-08-03 Thread Imsieke, Gerrit, le-tex
Hi Ron, You can add an extra element (or attribute) to the content when importing or modifying it. (Or another document in another database if you like – you can create and later find such an index document by giving it the same db:path as the original document.) In this extra database,

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

2018-08-01 Thread Imsieke, Gerrit, le-tex
Hi Hugh, The second version where you specify the serialization options in XQuery works for me (BaseX GUI 8.6.5 with Saxon PE 9.6.0.7): http://backend.userland.com/rss2; xmlns:content="http://purl.org/rss/1.0/modules/content/; version="2.0"> The first version cannot generate

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

2018-08-02 Thread Imsieke, Gerrit, le-tex
pected behavior. On Wed, Aug 1, 2018 at 2:50 PM, Imsieke, Gerrit, le-tex wrote: Hi Hugh, The second version where you specify the serialization options in XQuery works for me (BaseX GUI 8.6.5 with Saxon PE 9.6.0.7): http://backend.userland.com/rss2; xmlns:content="http://purl.org/rss/

Re: [basex-talk] Re Add line-number function

2018-07-16 Thread Imsieke, Gerrit, le-tex
Hi Pavel, What kind of editor are your users using? If they use an XML editor proper, there will probably be a means to jump to a location specified by an XPath expression. If they are using an ordinary text editor, how do you prevent them from messing up the XML in the first place?

Re: [basex-talk] Re Re Add line-number function

2018-07-16 Thread Imsieke, Gerrit, le-tex
Still, I suggest that you do not only provide users with a list of errors but also with an HTML rendering of the whole document (or only of the erroneous bits, plus some context maybe). Alternatively, pay BaseX GmbH in the order of (I’m just guessing) 20 kEUR so that they enhance the storage

Re: [basex-talk] Schematron package error

2018-07-22 Thread Imsieke, Gerrit, le-tex
e class path as well I have put it into basex lib directory On Mon 23 Jul, 2018, 12:04 AM Imsieke, Gerrit, le-tex, mailto:gerrit.imsi...@le-tex.de>> wrote: Is saxon9he.jar or another Saxon version on the classpath as per https://github.com/Schematron/schematron-basex#user-conten

Re: [basex-talk] Schematron package error

2018-07-22 Thread Imsieke, Gerrit, le-tex
I’m afraid we cannot help you without seeing the actual Schematron file that you are trying to compile/apply. On 22.07.2018 19:59, DK Singh wrote: Thank U Andy for your response, I have tried but it is giving schematron compilation error, but when I validate on Oxygen editor xmls got

Re: [basex-talk] many distinct namespaces

2018-10-31 Thread Imsieke, Gerrit, le-tex
Hi Sergei, The corresponding issue will turn 5 next March: https://github.com/BaseXdb/basex/issues/902 If you are an XML developer who wants to index all the XML, XSLT, XProc, RNG, XSD, Schematron, etc. files on your hard disk in an XML database, chances are that you’ll need more than 256

Re: [basex-talk] many distinct namespaces

2018-11-02 Thread Imsieke, Gerrit, le-tex
. Any volunteers out there who are ready for the challenge? Christian On Wed, Oct 31, 2018 at 11:40 PM Imsieke, Gerrit, le-tex wrote: Hi Sergei, The corresponding issue will turn 5 next March: https://github.com/BaseXdb/basex/issues/902 If you are an XML developer who wants to index all the XML

Re: [basex-talk] Compare List Membership in XQuery

2019-03-25 Thread Imsieke, Gerrit, le-tex
If you are allowed to share some snippets of the actual documents, it will be easier to see how the query needs to be phrased. Have you verified that $biblFull and $biblStruct actually contain strings? If not, do you need to declare a default namespace? The vocabulary looks like TEI, so

Re: [basex-talk] Compare List Membership in XQuery

2019-03-25 Thread Imsieke, Gerrit, le-tex
Are you sure that the @target attributes are supposed to be identical to the IDs? Don’t you prepend a pound sign to @target attributes when they point to IDs within the same document? So you probably need to say where not(substring($title/@target,2) = $biblStruct) and

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

2019-03-14 Thread Imsieke, Gerrit, le-tex
On 14.03.2019 10:56, Christian Grün wrote: Maybe we could port Gerrit’s code to XQuery… Volunteers are welcome ;) You probably can’t instruct Saxon to use the XSLT-based resolver (or an XQuery-based resolver) when reading XML files using doc() or xsl:import. I think it needs Java classes

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

2019-03-13 Thread Imsieke, Gerrit, le-tex
On 13.03.2019 19:55, Liam R. E. Quin wrote: Yes, they are a bit of a nightmare. Actually i’ve thought about having the ability to write a URI Resolver in XQuery, db:resolve-identifier($system, $public, $purpose, $types) as xs:anyURI? but maybe it is too scary! I’ve already written a

Re: [basex-talk] BaseX GUI just spins?

2019-08-21 Thread Imsieke, Gerrit, le-tex
On 21.08.2019 13:24, Buddy Kresge wrote: Thanks for these ideas and will try these.  As far as #4, what is ‘SSCCE’ – sorry in advance for the not recognizing (ha ha). LMGTFY… http://letmegooglethat.com/?q=SSCCE SCNR – Gerrit

Re: [basex-talk] catalog.xml - xsd - urn

2019-10-21 Thread Imsieke, Gerrit, le-tex
tl;dr – Don’t bother that the namespace is a URN. – Don’t confuse namespaces with schema locations. – Apparently BaseX cannot use a catalog resolver for resolving schema locations. – Use other more or less portable ways for accessing the schemas, for ex. store them in a database or put the

Re: [basex-talk] catalog.xml - xsd - urn

2019-10-22 Thread Imsieke, Gerrit, le-tex
On 21.10.2019 22:05, SW-Service wrote: xmlns:xdomea="urn:xoev-de:xdomea:schema:2.3.0"> Somewhat unrelated to your initial question, and it was probably someone else’s idea to put a minor version number in a namespace – but this is considered bad practice. All processing applications, for

Re: [basex-talk] basex OOM on 30GB database upon running /dba/db-optimize/

2019-10-03 Thread Imsieke, Gerrit, le-tex
Hi, just saying that 16 GB of DDR3 RAM cost about 40 € now. Gerrit On 03.10.2019 08:53, first name last name wrote: I tried again, using SPLITSIZE = 12 in the .basex config file The batch(console) script I used is attached mass-import.xq This time I didn't do the optimize or index creation

Re: [basex-talk] How to escape/encode a search term using BaseX REST XQ

2020-01-24 Thread Imsieke, Gerrit, le-tex
While moving the URI parameter to the query string seems like an acceptable workaround, I, too, suggest that if *reserved* URI characters such as '/' appear percent-encoded, they should not be converted to their decoded character prior to analyzing the URI, in line with Sect. 2.2 of RFC 3986

Re: [basex-talk] How to escape/encode a search term using BaseX REST XQ

2020-01-24 Thread Imsieke, Gerrit, le-tex
On 24.01.2020 14:36, Imsieke, Gerrit, le-tex wrote: So I agree, BaseX should not interpret escaped slashes as if they were regular slashes, thereby disallowing them as part of RESTXQ path pa …rameters.

Re: [basex-talk] Performance loss between version 9.2.4 and 9.3.2 when executing specific xQuery

2020-05-08 Thread Imsieke, Gerrit, le-tex
Just saying that I find it sooo interesting to learn at which places and for which purposes BaseX is being employed. Have a nice weekend! On 08.05.2020 13:31, BIRKNER Michael wrote: Hi Christian, thank you for your answers. As you can guess the queries I sent in my original email are just

Re: [basex-talk] BaseX XSLT fails after returning first result

2020-05-21 Thread Imsieke, Gerrit, le-tex
Alternatively, apply your stylesheet using xslt:transform-text() instead of xslt:transform(). On 21.05.2020 18:33, Imsieke, Gerrit, le-tex wrote: Hi Tom, The problem is most probably that your XSLT doesn’t create a *primary* output. It just writes something to another result-document

Re: [basex-talk] BaseX XSLT fails after returning first result

2020-05-21 Thread Imsieke, Gerrit, le-tex
Hi Tom, The problem is most probably that your XSLT doesn’t create a *primary* output. It just writes something to another result-document. However, the interface for invoking an XSLT expects some result document. So if you just create a element next to and then discard it, it should just

Re: [basex-talk] Autocomplete with RESTXQ

2020-08-31 Thread Imsieke, Gerrit, le-tex
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 iPhone gesendet Am 27.06.2020 um 14:13 schrieb Imsieke, Gerrit, le-

Re: [basex-talk] Paging results of an XQuery-Search

2020-09-26 Thread Imsieke, Gerrit, le-tex
If you provide the search RESTXQ endpoint also (or only) for GET requests, you can easily create links for results 51–100, etc. Invoking search and passing all parameters per GET is better anyway, since people can bookmark the search query. I was hesitant initially to run the same query over

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

2020-07-09 Thread Imsieke, Gerrit, le-tex
Is the catalog schemas/catalog.xml residing in file:current-dir()? On 09.07.2020 16:02, Lizzi, Vincent wrote: Hi Gerrit, Thank you for the hint! Removing quotes from the pragma did not work in this case.   (# db:catfile schemas/catalog.xml #) The catalog file is also configured at the

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

2020-07-10 Thread Imsieke, Gerrit, le-tex
Hi Vincent, can you show us your catalog? Since you mention that it chokes on finding the DTD, it might be that you need rewriteSystem instead of rewriteURI for the DTD locations. Also if you don't resolve by public ID and refer to the DTD by relative path, this path will be made absolute

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

2020-07-10 Thread Imsieke, Gerrit, le-tex
On 10.07.2020 08:23, Imsieke, Gerrit, le-tex wrote: It may well be the case that our efforts to make DTD resolution available to xslt:transform() only focused on supporting xsl:import and xsl:include while not passing the resolver to the doc() function. s/DTD resolution/catalog resolution/

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

2020-07-08 Thread Imsieke, Gerrit, le-tex
Hi Vincent, I feel your pain. Maybe this comment helps: https://github.com/BaseXdb/basex/issues/1793#issuecomment-579134499 (omit the quotes in the pragma). I documented it here, too: https://docs.basex.org/wiki/Catalog_Resolver#Additional_Notes “The catalog location in the pragma can be

[basex-talk] Autocomplete with RESTXQ

2020-06-25 Thread Imsieke, Gerrit, le-tex
Hi List, Can anyone recommend a lightweight vanilla Javascript autocomplete library that can easily be used together with BaseX RESTXQ? Maybe even a readily cloneable/modifiable example? I don’t have a preference for a server response format. The RESTXQ service may be configured to return

Re: [basex-talk] Autocomplete with RESTXQ

2020-06-27 Thread Imsieke, Gerrit, le-tex
#L140 If you simply clone my repo, the relevant parts should be „correct“ — according to my personal taste ;-) Feel free to ask for more help. Michael Am 25.06.2020 um 18:31 schrieb Imsieke, Gerrit, le-tex : Hi List, Can anyone recommend a lightweight vanilla Javascript autocomplete li

Re: [basex-talk] grouping by fuzzy match?

2020-11-11 Thread Imsieke, Gerrit, le-tex
:42 PM Imsieke, Gerrit, le-tex mailto:gerrit.imsi...@le-tex.de>> wrote: This is probably difficult since in BaseX, fuzzy matching is implemented using the Levenshtein distance between two strings [1]. Therefore similarity is a relation between pairs of paragraphs rathe

Re: [basex-talk] grouping by fuzzy match?

2020-11-11 Thread Imsieke, Gerrit, le-tex
This is probably difficult since in BaseX, fuzzy matching is implemented using the Levenshtein distance between two strings [1]. Therefore similarity is a relation between pairs of paragraphs rather than an intrinsic property of an individual paragraph. You should look for content

Re: [basex-talk] Question about JSON parsing/serializing

2021-03-22 Thread Imsieke, Gerrit, le-tex
What’s wrong with adding 'use-character-maps': map{'/': '/'} to the JSON serialization each time? On 22.03.2021 08:05, Hans-Juergen Rennau wrote: Good Morning, Liam, thank you very much for this precise link into the video, showing the "why" behind escaping slashes. In spite of the incorrect

Re: [basex-talk] Question about JSON parsing/serializing

2021-03-20 Thread Imsieke, Gerrit, le-tex
Hi Hans-Jürgen, Maybe this thread and the linked sources can shed some light on the annoying slash escaping: https://www.mhonarc.org/archive/html/xsl-list/2019-10/msg00078.html Gerrit On 20.03.2021 11:11, Hans-Juergen Rennau wrote: Dear BaseX team, there is something I don't understand

Re: [basex-talk] Call for install/setup stories from users

2021-03-17 Thread Imsieke, Gerrit, le-tex
Just like you, I usually download the Zip package on Windows and Linux. Then I put a Saxon Jar and maybe a Saxon license file in the lib/custom directory and adjust Xmx in the startup scripts for the given platform. So I don’t use package managers for BaseX. For some projects, I add BaseX and

Re: [basex-talk] Can XQuery return unique values present across multiple databases?

2021-08-13 Thread Imsieke, Gerrit, le-tex
Tamara! Welcome to another proselyte in the Church of Xquery. This church is open to people from all walks of life, for example, from XSLT or XForms backgrounds. But not from PHP. Just kidding, everyone is free to use the tools and languages they got accustomed to (until they are made aware

[basex-talk] Can the full text tokenizer be instructed not to tokenize at hyphens?

2021-07-12 Thread Imsieke, Gerrit, le-tex
A customer wants to include composite terms such as 'third-generation' as single tokens so that they may be offered in a completion list. I don’t think this is configurable, or is it? Gerrit

Re: [basex-talk] Can the full text tokenizer be instructed not to tokenize at hyphens?

2021-07-13 Thread Imsieke, Gerrit, le-tex
extra index could be generated instead, which contains all terms the that are supposed to occur in the completion list. Cheers, Christian On Tue, Jul 13, 2021 at 7:28 AM Imsieke, Gerrit, le-tex wrote: A customer wants to include composite terms such as 'third-generation' as single tokens so

Re: [basex-talk] XProc?

2021-08-12 Thread Imsieke, Gerrit, le-tex
We couple it more loosely using RESTXQ endpoints and HTTP requests. On 12.08.2021 13:58, Jonathan Robie wrote: What hooks does BaseX provide for XProc?  Where can I find examples of BaseX use in an XProc pipeline? Jonathan

[basex-talk] User group meeting in Prague?

2021-12-17 Thread Imsieke, Gerrit, le-tex
Fellow BaseX Users! You might have heard that XML Prague 2022 will take place in June. (Unless the then-prevalent Greek letter makes it impossible even in that time of year, of course.) I asked Christian whether the BaseX team will organize a user group meeting after it had not happened for

Re: [basex-talk] Access to "https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml" blocked?

2021-11-11 Thread Imsieke, Gerrit, le-tex
Hi Ben, What about other resources there, like: https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/input.xml https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/response.txt Do they pass on Windows? Gerrit On 11.11.2021 16:14,

Re: [basex-talk] Access to "https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml" blocked?

2021-11-11 Thread Imsieke, Gerrit, le-tex
Engbers wrote: They are both rejected. I also tried with "https://www.cnn.com; and "https://nos.nl;. The first is accepted, the second is rejected. In firefox all URL's are accepted. Ben Op 11-11-2021 om 16:24 schreef Imsieke, Gerrit, le-tex: Hi Ben, What about other resources there, li

Re: [basex-talk] Ms Excel-Files treated as MS-Word-Files

2021-10-25 Thread Imsieke, Gerrit, le-tex
On 25.10.2021 14:31, Alexander Witzigmann wrote: Hi, Excel files not treated as archives comparable to MS-Word / MS-PowerPoint or idml Files (Indesign related) while importing using GUI. The later 3 are treated as (zip) archives and content is added. This is very handy for certain data

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

2021-11-05 Thread Imsieke, Gerrit, le-tex
On 05.11.2021 03:03, Liam R. E. Quin wrote: On Thu, 2021-11-04 at 18:43 -0400, Graydon Saunders wrote: Related to this, setting the catalog for use by xslt:transform() is defeating me. The only ways i have found to debug these are (1) with strace -f, to make sure the file is being read

[basex-talk] Predicate referring to following-sibling::node()[1]/self::text() incorrectly optimized

2021-12-02 Thread Imsieke, Gerrit, le-tex
Hi Christian, I wrote a query for a customer who wants to analyze their legacy ISO 12083 math formulas, in this case for detecting multiple subsequent elements of length >= 3 with only whitespace in between. This is a synthetic test document: tan tan sin 2 sin

Re: [basex-talk] Autocomplete with RESTXQ

2021-07-18 Thread Imsieke, Gerrit, le-tex
lp 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 iPhone gesendet Am 27.06.2020

[basex-talk] How to produce multipart/mixed results with RESTXQ?

2022-02-21 Thread Imsieke, Gerrit, le-tex
I was faintly hoping that a sequence will be magically output as multipart/mixed with appropriate part content types when I annotate it with %rest:produces("multipart/mixed"): declare %rest:GET %rest:path("/test") %rest:produces("multipart/mixed") function my:test-multipart() { (,

Re: [basex-talk] feature request: opening database at arbitrary file path

2022-02-21 Thread Imsieke, Gerrit, le-tex
Or to say it more bluntly: Eric, start using BaseX productively before making feature requests that seem out-of-sync with BaseX’s architecture to core developers and to long-time users alike. The fact that no one has raised such a request in the last decade – no one has come forth to say “wow,

Re: [basex-talk] feature request: opening database at arbitrary file path

2022-02-21 Thread Imsieke, Gerrit, le-tex
esentation of embedded database applications than has emerged so far in the discussion. 1. https://www.sqlite.org/whentouse.html On Tue, 2022-02-22 at 01:16 +0100, Imsieke, Gerrit, le-tex wrote: Or to say it more bluntly: Eric, start using BaseX productively before making feature requests tha

Re: [basex-talk] Windows, WSL, and BaseX

2022-03-22 Thread Imsieke, Gerrit, le-tex
Hi Jonathan, While I was able to launch the BaseX GUI (bin/basexgui) from WSL, the GUI experience is better when launching bin\basexgui.bat from cmd.exe, that is, from the Windwows shell. As to basexhttp, I usually start it from WSL (in the same BaseX bin directory, using the same databases).

Re: [basex-talk] Support for performing queries on query results

2022-04-04 Thread Imsieke, Gerrit, le-tex
I don’t want to do injustice to all the other valuable contributors to this list, but… Tamara, you are the most valuable contributor of 2022 so far. Not only for your competence, but also for your patience. (Christian will always be (co-) leading in terms of competence and patience, but I

Re: [basex-talk] Issue with HTTP client and authentication

2022-02-02 Thread Imsieke, Gerrit, le-tex
[Time since request: 30.071527000 seconds] possible cause (just a wild guess): the AWS load balancer encountered the classic BaseX timeout of 30 seconds. On 02.02.2022 21:22, Tim Thompson wrote: Thanks for that. Still no luck, I'm afraid. Attached is the full HTTP info for the requests from

Re: [basex-talk] Doc Loaded by db:create() has invalid URL according to base-uri()

2022-02-04 Thread Imsieke, Gerrit, le-tex
Reported by Eliot himself… On 04.02.2022 11:15, Christian Grün wrote: This is related to an older open issue on GitHub [1]; I hope I can fix it with BaseX 10. Best, Christian [1] https://github.com/BaseXdb/basex/issues/1172 Eliot Kimber

Re: [basex-talk] How to extract value from fn:analyze-string

2022-02-10 Thread Imsieke, Gerrit, le-tex
It’s a namespace thing. The analyze-string() result is in the http://www.w3.org/2005/xpath-functions namespace, which is bound to the fn prefix. So you should write fn:match etc. instead of match, or, as Bridger suggested, *:match. But such a wildcard always seems a bit desperate to me (no

Re: [basex-talk] Response from proc:execute() for git Command Not Coming Through as Expected

2022-01-21 Thread Imsieke, Gerrit, le-tex
Hi Eliot, Maybe the pager is getting in your way? Try the global git option --no-pager. Gerrit On 21.01.2022 20:27, Eliot Kimber wrote: [BaseX 9.6.4 on Mac through BaseX GUI] I’m trying to automate syncing a database with content from a git repo that is locally cloned. My approach is to

Re: [basex-talk] Managing Interactions with Long-Running Processes

2022-01-26 Thread Imsieke, Gerrit, le-tex
Hi Eliot, Can you be a bit more specific about how you set the timeout? If you only set it as an option on one of the proc:*() functions but the the action gets triggered by a RESTXQ request, then still the default timeout of 30 seconds may kick in

Re: [basex-talk] Basexgui Feature suggestion

2022-04-11 Thread Imsieke, Gerrit, le-tex
Yes, I do use Ctrl-F6 (in oXygen) On 11.04.2022 08:37, Christian Grün wrote: Thanks, Andy for fishing out the old issue on this; I remember you’ve once come up with a similar proposal. We’re indeed using the standard Swing component for the tabs, and it’s always a bit risky to modify those

Re: [basex-talk] mapping functions

2023-08-16 Thread Imsieke, Gerrit, le-tex
Hi Graydon, Replying to the list for posterity. I hope you don’t mind. When you dynamically evaluate an expression (xquery:eval(), job:eval(), …), you start with the default values of the static context [1]. Nothing of the XQuery module from which you evaluate the expression is known (unless

Re: [basex-talk] mapping functions

2023-08-16 Thread Imsieke, Gerrit, le-tex
On 17.08.2023 02:40, Graydon wrote: The thing that has me croggled is that the dynamically evaluated expression is in the module being imported, where it is bound to a public variable in the module namespace. That may be true, but if you are referring to it in the evaluated expression by

Re: [basex-talk] User group meeting in Prague?

2022-04-10 Thread Imsieke, Gerrit, le-tex
also submit a proposal for a presentation at https://github.com/BaseXdb/user-group/wiki/2022-06-XML-Prague Gerrit On 17.12.2021 17:02, Imsieke, Gerrit, le-tex wrote: Fellow BaseX Users! You might have heard that XML Prague 2022 will take place in June. (Unless the then-prevalent Greek

Re: [basex-talk] ODBC support for BaseX?

2022-05-20 Thread Imsieke, Gerrit, le-tex
My reporting software for XML is called XSLT. The XML data it processes is sometimes saved from an XQuery result. Or I invoke the transformation to HTML with https://docs.basex.org/wiki/XSLT_Module#xslt:transform-report directly from a RestXQ-annotated XQuery function. On 20.05.2022 14:12,

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

2022-06-02 Thread Imsieke, Gerrit, le-tex
On 02.06.2022 16:56, Zimmel, Daniel wrote: I see, thanks Gerrit and Christian for the insight. This *does* sound wickedly unfunny. OK if I actually do not need to be able to parse the DTD wouldn't the simple workaround be: fetch:xml('file:///C:/temp/catalog/dokument.xml') =>

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

2022-06-02 Thread Imsieke, Gerrit, le-tex
Hi Daniel, I think the catalog in xslt:transform() is only used for XSLT imports/includes and maybe for reading documents with doc(), and only for Saxon. The catalog is probably *not* used for mapping system identifiers in the documents accessed this way. We should document this better once

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

2022-06-02 Thread Imsieke, Gerrit, le-tex
for Christian at the time we paid BaseX GmbH to implement xslt:transform-report(). I think this will need another significant investment, and Christian needs to find time to implement it. Gerrit On 02.06.2022 16:24, Imsieke, Gerrit, le-tex wrote: Hi Daniel, I think the catalog in xslt:transform

Re: [basex-talk] Xquery all nodes between empty particular element tag and subsequent

2022-05-20 Thread Imsieke, Gerrit, le-tex
No, this is not the general solution yet. Suppose that there is more markup in the text that is between the verse markers. (And suppose the starting ID is 'Rev.22.15' since this ID is contained in your example.) If the verse folling the start marker were like this: Foris canes, et

Re: [basex-talk] I can’t use character maps with RESTXQ

2022-06-22 Thread Imsieke, Gerrit, le-tex
Correction & for completeness: I forgot a closing parenthesis in Javascript (but this isn’t causing the unused character map issue, of course…): On 22.06.2022 11:53, Imsieke, Gerrit, le-tex wrote:   alert('You are in ' + </tt><tt>(document.compatMode==='CSS1Compat'?'St

[basex-talk] I can’t use character maps with RESTXQ

2022-06-22 Thread Imsieke, Gerrit, le-tex
For HTML with embedded Javascript, I need to output > as > rather than as In XSLT I’m doing and encoding="UTF-8" use-character-maps="a" omit-xml-declaration="no" html-version="5.0" doctype-public="" doctype-system=""/> In RESTXQ I tried the following: I created a

Re: [basex-talk] Exporting XML with a relaxNG declaration

2022-07-01 Thread Imsieke, Gerrit, le-tex
Hi France, This seems to work: let $map := ( processing-instruction xml-model {'href="urn:oasis:names:tc:dita:rng:map.rng" schematypens="http://relaxng.org/ns/structure/2.x;'}, {processing-instruction test {'name="abc"'}} … … ) return … Gerrit On 01.07.2022 12:39,

Re: [basex-talk] I can’t use character maps with RESTXQ

2022-06-22 Thread Imsieke, Gerrit, le-tex
On 22.06.2022 14:31, Christian Grün wrote: Right, the »parameter-document« serialization parameter is currently not supported by RESTXQ, as this might cause too many conflicts at runtime. You can try »use-character-maps« instead (with and without RESTXQ, with a slightly non-standard syntax):

Re: [basex-talk] BaseX YAML Parser?

2022-07-26 Thread Imsieke, Gerrit, le-tex
Reminder: There was a thread and an issue two years ago: https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg12959.html https://github.com/BaseXdb/basex/issues/1921 Christian rejected it (much effort, few users). Gerrit On 26.07.2022 15:36, Hans-Juergen Rennau wrote: Strong,

Re: [basex-talk] RESTXQ: Handling Lots of Parameters?

2022-08-07 Thread Imsieke, Gerrit, le-tex
https://docs.basex.org/wiki/Request_Module#request:parameter-names On 07.08.2022 22:00, Eliot Kimber wrote: I’m making a RESTXQ page that handles a form where the form can have a number of different parameters. I’m not seeing a way to define a RESTXQ handler that can handle an arbitrary

Re: [basex-talk] Scope of a xPath variable

2022-12-19 Thread Imsieke, Gerrit, le-tex
Thank you, Hans-Jürgen, for shedding really insightful light (if there is such a thing) on this aspect of XQuery grouping, which I use gropingly (pun intended) without fully understanding it. On 19.12.2022 23:19, Hans-Juergen Rennau wrote: I think the reason is a different one - it is related

Re: [basex-talk] RESTXQ advice?

2023-01-19 Thread Imsieke, Gerrit, le-tex
Hi Hans-Jürgen, I had a similar problem 2 weeks ago where I needed to be flexible with a public identifier in serialization, and I switched from %output:doctype-public to serialize(…, map{'doctype-public': if ($niso-version = '1.2') then $tr:niso-1-2-public-identifier else

Re: [basex-talk] Issue with the Java 11 XML Catalog API and xsl:import/xsl:include

2023-03-08 Thread Imsieke, Gerrit, le-tex
(I forgot to mention that saxon-pe-10.6.jar is also in lib/custom) On 08.03.2023 13:08, Imsieke, Gerrit, le-tex wrote: Hi, We experience an issue with the new catalog resolver when importing or including XSLT from another, possibly already catalog-resolved, XSLT file. If you unzip attached

[basex-talk] Issue with the Java 11 XML Catalog API and xsl:import/xsl:include

2023-03-08 Thread Imsieke, Gerrit, le-tex
Hi, We experience an issue with the new catalog resolver when importing or including XSLT from another, possibly already catalog-resolved, XSLT file. If you unzip attached catalog_test.zip and set the catalog location by a pragma around xsl.xq or by set

Re: [basex-talk] Database Query in RESTXQ function

2023-03-27 Thread Imsieke, Gerrit, le-tex
Is that a BaseX-specific feature? I’d say it’s more the rule than the exception that the namespaces of the source and target documents differ, so making the declared default namespace on a direct element constructor the default element namespace for expressions inside isn’t that helpful. If

Re: [basex-talk] Database Query in RESTXQ function

2023-03-27 Thread Imsieke, Gerrit, le-tex
If it’s defined in the spec, then it should be Ok. I read the spec 30 minutes ago, I also read the sentence that you cited, but I didn’t make the connection. The sentence is quite blurry IMO. Ok, the default element/type namespace may be affected by namespace declaration attributes

  1   2   >