rewrite linkextor to allow arbitrary tags and attribute names