Open Twilight-Shuxin opened 1 year ago
Changing the Xpath to F[boolean(count(data(@id) >= 2))]
actually returns the expected results in memory and from db. Saxon returns true without changing @id
to data(@id)
so still a bug it seems
@Twilight-Shuxin Thanks again for reporting another issue. @duncdrum your finding could be very helpful in finding the root cause.
also tested with 6.2.0
same results.
Just to make it explicit. There are two tests in @Twilight-Shuxin's report. Only one of them fails, t:test-db#0
, the other t:test-mem#0
(which uses the in-memory DOM as opposed to the persistent DOM) passes just fine.
I suspect, but have not confirmed, that this result is likely caused by a bad optimisation path in eXist-db.
Describe the bug A clear and concise description of what the bug is. Give XML document
and XPath Query
eXist returns 0 element
Expected behavior A clear and concise description of what you expected to happen.
Should return F node as
count(false()) = 1
andboolean(1) = true()
Executing//F/boolean(count(@id >= 2))
in eXist returns true as expected.To Reproduce
Context (please always complete the following information)
Additional context
conf.xml
? No