parse attributes
return -1 from getAttribLocation when queried on nonexisting attributes