child::Root

This axis selects element nodes from Root node.

child::*[@id]

This axis selects child elements from context node with attribute ‘id‘.