sec:query-rolesets( $rolesets as element(sec:query-roleset)+ ) as element(sec:query-rolesets)
This is a helper function to return a query-rolesets element from a list of query-roleset elements.
Parameters | |
---|---|
rolesets | a list of query-roleset elements |
(: execute this against the Security database :) xquery version "1.0-ml"; import module namespace sec = "http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:query-rolesets((sec:query-roleset("els-role-1"),sec:query-roleset(("els-role-2","els-role-3"))))