How to retrieve distinct values

Hi all,
I am now using JSP to get the documents from Tamino, the documents are similar in format as follows:


AAA



DDD



AAA



CCC


The question is … how to get the distinct author values from Tamino database, sort and show them to JSP?

that is…
AAA
CCC

Thanks

This is a question of using the correct XPath query string to do this, so it’s not really an API question. Try the forum “Native XML Store & X-Query” for this question.