Usually when people talk about removal of duplicates, you're looking at grouping techniques, and the answer is
http://www.jenitennison.com/xslt/grouping
Here I think you're doing something different. Your description of the problem is a bit confusing, but I think you're just looking for
/books/books/title[not(. = /books/title)]
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference