Attributes and their values can be removed with the excluding operator.
Prototype
atvset <-- atvset excluding name-set
Example
global $r = (first REF within file $myfile); element REF attr: attr($r) excluding TARGET content: content($r) ;<REF> (1) </REF>element REF attr: {attr($r) excluding TARGET , N = $r->TARGET} content: content($r) ;<REF N="note1"> (1) </REF>