Matt,
Nice explanation. I'm not too familiar with the XML features, but when I took a closer look at the the data I could see that the reason book2 was not selected was due to the rating of the book. The others books have a rating greater than or equal to 3 where book2 has a rating of 2.5.