Re: [basex-talk] diacritics sensitive not working

2018-08-01 Thread Ron Katriel
Thanks, Christian. Strange, prior to contacting you and on a hunch, I tried adding the missing “using” keyword but still got the syntax error. Anyway, everything is good now! Best, Ron On August 1, 2018 at 3:57:51 AM, Christian Grün (christian.gr...@gmail.com) wrote: I have fixed the example in

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

2018-08-01 Thread Andreas Mixich
Am 31.07.2018 um 08:51 schrieb Christian Grün: > I guess you were dreaming ;) But it should definitely be possible to > realize this in XQuery without too many lines of code.. Ok, then that's what I am going to do. Thanks for clarification. -- Goody Bye, Minden jót, Mit freundlichen Grüßen,

Re: [basex-talk] diacritics sensitive not working

2018-08-01 Thread Christian Grün
I have fixed the example in the doc. Best, Christian On Wed, Aug 1, 2018 at 5:08 AM Ron Katriel wrote: > > Hi, > > The following from your website (docs.basex.org/wiki/Full-Text) appears to be > syntactically incorrect > > "'Äpfel' will not be found..." contains text "Apfel" diacritics

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

2018-08-01 Thread Christian Grün
Hi Andreas, Just for fun, I wrote a little crawler in XQuery (see the attached files). Please note that it’s just a stub; and it should surely be used decently, otherwise the remote server might block further access. Cheers, Christian On Wed, Aug 1, 2018 at 8:08 AM Andreas Mixich wrote: > >

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

2018-08-01 Thread Andreas Mixich
Am 01.08.2018 um 09:56 schrieb Christian Grün: > Just for fun, I wrote a little crawler in XQuery (see the attached files). Very interesting, indeed! Nice to see an example of lazy:cache and prof:dump. I did not use them, so far, and that is some good news to see them in action. > it should

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

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

2018-08-01 Thread Hugh Guiney
Hello, First off, loving BaseX so far! Using it as the backend for an API I’m building. However, I’m running into an issue. I’m trying to transform my database XML into an RSS 2.0 feed. It’s mostly working fine, but I can’t output CDATA content at all, which I need to do for `content:encoded`

Re: [basex-talk] Failure with comment in editor when commenting out a regex

2018-08-01 Thread Christian Grün
> Editor/GUI warns, that: "no expression allowed in library module" and > places error marker at the two slashes // after the :)( in the regex. I’m being presented with the following error message: [XPST0003] Invalid value, simple expression expected. The error message is correct, because your

[basex-talk] Failure with comment in editor when commenting out a regex

2018-08-01 Thread Andreas Mixich
Hi Christian, you wrote:> I’m being presented with the following error message: > > [XPST0003] Invalid value, simple expression expected. Me too, if I just copy and paste the code I have sent. See, attached, a simple module, that produces the error I named first. > The error message is

[basex-talk] Mailing list configuration or my MUA?

2018-08-01 Thread Andreas Mixich
Hi, may it be some configuration issue, I have on my side, or is the mailing list set up in a way, that each reply goes to the user's personal email-address, rather than to the list's posting address? Whenever I hit "Reply" the user's email address is put into the "To" field, whereas I would

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-01 Thread Christian Grün
Thanks, Gerrit, for testing the query with BaseX 8.6.5. I just tried 9.0.2 and 9.1 beta, and it runs successfully on my machine as well. The result: http://backend.userland.com/rss2; xmlns:content="http://purl.org/rss/1.0/modules/content/; version="2.0"> I get the reported error

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

2018-08-01 Thread Andreas Mixich
Vincent Lizzi wrote: > 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

[basex-talk] Failure with comment in editor when commenting out a regex

2018-08-01 Thread Andreas Mixich
Hi, it may be already known, that the editor seems to hick up with the parsing, when it comes around some strange combinations of chars within the comment. I just came around this: (: let $str := "http://foo.bar/barz/index.html?bla=2; let $str2 :=

[basex-talk] BaseX and oXygen

2018-08-01 Thread Andreas Mixich
Hi, I remember, that I was able to run BaseX as execution engine for the oXygenXML XQuery editor. This seems to be impossible since a few oXygen versions. All that's left is the WebDAV part. I did not manage to run my old config, creating new ones did not help either. I remember having read a

Re: [basex-talk] Failure with comment in editor when commenting out a regex

2018-08-01 Thread Liam R. E. Quin
On Wed, 2018-08-01 at 22:31 +0200, Andreas Mixich wrote: > host :) > > Editor/GUI warns, that: "no expression allowed in library module" and > places error marker at the two slashes // after the :)( in the regex. Well, it's right - since it's in a comment it's not in a regex, it's just :) in a

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

2018-08-01 Thread Christian Grün
Hi Hugh, Welcome to the list. If you want to return the Saxon result as-is, you could try to use xslt:transform-text instead of xslt:transform. I’ll have a closer look at your second attempt next day. Best, Christian Hugh Guiney schrieb am Mi., 1. Aug. 2018, 21:17: > Hello, > > First

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

2018-08-01 Thread Hugh Guiney
Thanks for testing Gerrit, that's good to know. Sounds like a regression then. Shall I go ahead and file this on Github or does it need further confirmation? Christian, your suggestion seems to work around the issue; the CDATA sections do come in that way. Except, all the elements get sent back

Re: [basex-talk] Editor: save file before running tests

2018-08-01 Thread Christian Grün
> it seems, the editor runs unit tests from the file as it is on disk. > Could the user be notified of unsaved changes before running tests? I > just spent some quality time trying to understand, why my assertions > failed when I realized, that... ;-) In the Editor Preferences dialog (on Windows:

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] Failure with comment in editor when commenting out a regex

2018-08-01 Thread Christian Grün
> > Aehm, no, that is still part of the regular expression. This does not apply anymore if you insert (: before the quotes. As Liam wrote, the regex won’t be parsed anymore in that case.