c303 wrote:

> <do-strip-xpath expression="modify-attr[@attr-name =
> 'ourMailAlias']/add-value/value[text() = $current-node]"/>


or use

.//value[ancestor-or-self::*[@attr-name='ourMailAlias'] and
text()=$current-node]"/>

if you want it to work with modify/instance/query operations as well.