Re: [basex-talk] Accessing Flexmark (Java) from Query

2020-09-21 Thread Marco Lettere
On 20/09/20 22:42, Andreas Mixich wrote: Currently I get the error:   [XPTY0004] com.vladsch.flexmark.parser.Parser$Builder:build: Multiple functions with 1. Hi Andreas, this is because of Java distinguishes method signatures not only by number of parameters but also by type. You have to us

Re: [basex-talk] Accessing Flexmark (Java) from Query

2020-09-20 Thread Andreas Mixich
Am 20.09.2020 um 19:18 schrieb Andy Bunce: > Hi Andreas, > > I think Martin has it right, I have some old code that does it like > that [1]. You can try it via[2] > > /Andy > > [1] > https://github.com/expkg-zone58/ex-markdown/blob/master/src/main/content/markdown.xqm#L12 > [2] https://github.com/e

Re: [basex-talk] Accessing Flexmark (Java) from Query

2020-09-20 Thread Andreas Mixich
Am 20.09.2020 um 16:30 schrieb Martin Honnen: > you have, you should be able to chain > > MutableDataSet:new() => Parser:builder() => Builder:build() > Very much appreciated! Thank you :-) -- Goody Bye, Minden jót, Mit freundlichen Grüßen, Andreas Mixich

Re: [basex-talk] Accessing Flexmark (Java) from Query

2020-09-20 Thread Andy Bunce
Hi Andreas, I think Martin has it right, I have some old code that does it like that [1]. You can try it via[2] /Andy [1] https://github.com/expkg-zone58/ex-markdown/blob/master/src/main/content/markdown.xqm#L12 [2] https://github.com/expkg-zone58/ex-markdown/releases On Sun, 20 Sep 2020 at 15

Re: [basex-talk] Accessing Flexmark (Java) from Query

2020-09-20 Thread Martin Honnen
On 20.09.2020 01:41, Andreas Mixich wrote: Am 19.09.2020 um 23:30 schrieb Martin Honnen: import com.vladsch.flexmark.parser.Parser.Builder; with   $builder => Parser.Builder:build() Hello Martin, thanks for taking the time! I am not quite sure I understand. Do you want me to:   import

Re: [basex-talk] Accessing Flexmark (Java) from Query

2020-09-19 Thread Andreas Mixich
I forgot to mention, that   import module namespace Parser = "java:com.vladsch.flexmark.parser.Parser"; results in   [XQST0059] Could not instantiate com.vladsch.flexmark.parser.Parser: com.vladsch.flexmark.parser.Parser.(). And that I also tried importing the class hierarchy (minus `java.lan

Re: [basex-talk] Accessing Flexmark (Java) from Query

2020-09-19 Thread Andreas Mixich
Am 19.09.2020 um 23:30 schrieb Martin Honnen: > import com.vladsch.flexmark.parser.Parser.Builder; > > with > >   $builder => Parser.Builder:build() Hello Martin, thanks for taking the time! I am not quite sure I understand. Do you want me to:   import module namespace Parser.Builder = "java:c

Re: [basex-talk] Accessing Flexmark (Java) from Query

2020-09-19 Thread Martin Honnen
On 19.09.2020 22:54, Andreas Mixich wrote: Hi, how can I translate this Java[1] to XQuery according to [2]?   package com.vladsch.flexmark.samples;   import com.vladsch.flexmark.util.ast.Node;   import com.vladsch.flexmark.html.HtmlRenderer;   import com.vladsch.flexmark.parser.Parser;  

[basex-talk] Accessing Flexmark (Java) from Query

2020-09-19 Thread Andreas Mixich
Hi, how can I translate this Java[1] to XQuery according to [2]?   package com.vladsch.flexmark.samples;     import com.vladsch.flexmark.util.ast.Node;   import com.vladsch.flexmark.html.HtmlRenderer;   import com.vladsch.flexmark.parser.Parser;   import com.vladsch.flexmark.util.data.MutableData