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:30, Martin Honnen <martin.hon...@gmx.de> wrote:

>
> 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 module namespace Parser.Builder =
> > "java:com.vladsch.flexmark.parser.Parser.Builder";
> >
>
> I am not sure I have completely understood the reflection and namespace
> conventions but after some reading and testing it seems the inner class
> Builder should be accessible by
>
>
> declare namespace Builder =
> 'java:com.vladsch.flexmark.parser.Parser$Builder';
>
>
> and then
>
> $builder => Builder:build()
>
>
> should work for the variable
>
> let $builder := Parser:builder($mds)
>
> you have, you should be able to chain
>
> MutableDataSet:new() => Parser:builder() => Builder:build()
>
>

Reply via email to