sax_ltx: fix attrName scope + test

this fixes #28