Attr.ownerElement() as Element
The element that contains this attribute.
fn.head(cts.doc("example.xml").xpath(".//@class")).ownerElement