fs_djmellisse
New Member
i am new to this site and to Xquery.I'd like to know if there is any function for Xquery similar to distinct-values but that returns a node.Let me be clearer: for example I have a bibliography and for each author in it I want to list all the books he wrote. The author element in my specific case is like this: \[code\]<author> <last> Shakespear </last> <first> William </first></author>\[/code\]Using distinct-values on author returns ShakespearWilliam so as far as I can see it does not help. I'd like a function that preserves the structure of the element author without considering duplicates. If you find another way for the query then let me knowDoes anyone have any idea?Thanks in advance