ancestor-or-self::*" selects all the element ancestors of the context node, including the context node. "ancestor-or-self::author" ...

"ancestor-or-self::*" selects all the element ancestors of the context node, including the context node. "ancestor-or-self::author" selects all the "author" element ancestors of the context node, including the context node if it is an "author" element as well.