From:
Christian Grün <christian.gruen@gmail.com> Date: Tuesday, November 21, 2023 at 10:51 AM To: Thompson, Timothy <timothy.thompson@yale.edu> Cc: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] Bug in fn:fold-right?
Hi Tim,
Thanks for the pointer. It seems that the reported bug has been fixed just recently (at least I couldn’t reproduce it anymore). Could you try the latest snapshot? [1]
I noticed that there seems to be an issue with fn:fold-right in BaseX (10.8 beta). When I pass it a sequence of
elements, they do not get atomized/accumulated. Example:
let $data := <data>
<a>a</a>
<b>b</b>
<c>c</c>
</data>
return
<test>{
fold-right(
$data/*,
"",
concat(?, ".", ?)
)
}</test>
returns:
<test/>
The same query in Saxon-HE 11.4 returns:
<test>a.b.c.</test>
Best regards,
Tim
--
Tim A. Thompson (he, him)
Librarian for Applied Metadata Research
Yale University Library