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] 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-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-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-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

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

[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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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] 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] 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] XML embedded in JSON

2016-01-12 Thread Imsieke, Gerrit, le-tex
Actual XML elements in actual JSON documents won’t be feasible I guess. But after you’ve transformed the JSON to XML, you can parse the escaped strings into XML elements proper, using http://www.w3.org/TR/xpath-functions-3/#func-parse-xml On 13.01.2016 02:06, E. Wray Johnson wrote: > We have JSON

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] 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] 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] 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] 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

[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

[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] 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] 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] 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

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

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