Clone attributes as needed. Added Node.xpath, Node.match.