-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fo] array:index-where #114
Comments
The currently provided oracle implementation in the spec is written in XQuery : for $item at $position in $input where $predicate($item) return $position and is more complex than the following pure XPath 3.1 implementation: index-of($seq ! $pred(.), true()) Besides being simpler, the Xpath expression above can be directly used in both XSLT and XQuery, without needing any changes/adaptation. @michaelhkay Could we use the above pure XPath 3.0 definition/implementation of the semantics of this function? |
Sure, no problems. |
Sorry, I thought this was the fn:index-where, and for that the above expression works. One XPath oracle function for array:index-where is:
|
Issue #114 - add array:index-where() function
Closed by #258. |
There is a need for an
array:index-where()
function to operate on arrays in the same way asfn:index-where()
operates on sequences/Use case: consider XMark query Q4, which uses the
<<
operator:With the bidders held in an array like this:
the best way of expressing this query seems to be:
The text was updated successfully, but these errors were encountered: