If you run
xpather.pl -a yourfile.xml you'll see
# 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
Just like position() there is also contains() , so you can use
//*[
(
name() = "para"
or name() = "header"
) and (
not(descendant::*)
) and (
contains(
translate(
.,
"DESIGN",
"design",
),
"design"
)
)
]