include pos attribute for all type of elements

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>