you need bookstore/book/author
UPDATE: to pass true into XPATH you have to use bookstore/book/author[true()]
author[true] just means that you want to get all author element which has true subelement.
You can check it yourself, try expressions
bookstore/book[author1] vs bookstore/book[author]
First one returns you nothing, because there's no book element with author1 subelements. Second one returns you all elements. But if you remove author subnodes from some of books nodes, you'll get only those having author subnode.
So if you take xml like this
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
</book>
</bookstore>
then
bookstore/book[author] returns
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
and bookstore/book[title] returns
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
</book>