Also my previous email was wrong. I should have suggested define-syntax not define-for-syntax for attr. N.