|
* Store initial groups information:
<syntaxhighlight pre lang="'xquery"'>
user:update-info(element info {
for $group in ('editor', 'author', 'writer')
</syntaxhighlight>
* Add a group to a specific user:
<syntaxhighlight pre lang="'xquery"'>
user:update-info(<info group='editor'/>, 'john')
</syntaxhighlight>