I need to remove duplicates in the following xml:
Try this XSLT:
It will select books with unique BookType and BookName. In your sample result should be:
book
BookType
BookName
Brand jon