# posy /root[1]/part[1]/sect[1]/header[1] # star /*[ name() = "root" and position() = 1 ] /*[ name() = "part" and position() = 1 ] /*[ name() = "sect" and position() = 1 ] /*[ name() = "header" and position() = 1 ] # "content" This is a design XZY document for Project #### //*[ ( name() = "para" or name() = "header" ) and ( not(descendant::*) ) and ( contains( translate( ., "DESIGN", "design", ), "design" ) ) ]