You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: doc-available($document-uri as xs:string?) xs:boolean. Expected cardinality: zero or one, got 2. [at line 1, column 20, source: String/-2946985203662395848]
Expected behavior
In the above case the expected return value is an empty sequence as both path very likely point to a non XML document.
Describe the bug
doc-available
cannot be used in a predicate.yields
Expected behavior
In the above case the expected return value is an empty sequence as both path very likely point to a non XML document.
To Reproduce
On exist-6.2.0 only the second test passes.
Context (please always complete the following information)
Build: eXist-6.3.0-SNAPSHOT (b55849d)
Java: 1.8.0_362 (Azul Systems, Inc.)
OS: Mac OS X 14.3 (aarch64)
Additional context
conf.xml
? noneThe text was updated successfully, but these errors were encountered: