Dear basex people,
I am new to this mailing list. So 'hello' first of all.
In my understanding of xquery the following expressions should be equivalent
/self::match/string()
/string(self::match)
But running
xquery count((<match>foo</match>, <test>test</test>, <match>bar</match>)/self::match/string())
xquery count((<match>foo</match>, <test>test</test>, <match>bar</match>)/string(self::match))
in basex version 7.7.2 turns out to have different results (2 in the first case, 3 in the second). I think it should be 2 in both cases.
This bug was found using functx:get-matches() which doesn't return the expected results in basex.
Best regards. Jan