[xquery-talk] Results with distinct-values varies dependent on syntax
Ihe Onwuka
ihe.onwuka at gmail.com
Sun Nov 15 04:32:20 PST 2020
xquery version "3.1";
let $schemaCollection := "/db/apps/schemas"
return
collection($schemaCollection)/xs:schema/distinct-values(@targetNamespace)
does not eliminate duplicates
xquery version "3.1";
let $schemaCollection := "/db/apps/schemas"
return collection($schemaCollection)/xs:schema/@targetNamespace =>
distinct-values()
does.
I checked this in Saxon and exist-db XQuery, both return the same results
so this may be how it's supposed to work but I don't get it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://x-query.com/pipermail/talk/attachments/20201115/363baeb5/attachment.html>
More information about the talk
mailing list