Use attribute local name, rather than attribute name.

@annevk Is this better?