The ancestor macro determines the first ancestor of the list (the root) and not the ancestor that is next to the document (starting with the immediate parent).