extract and emit ATTLIST element