update to new xtmpl api
upgrade to follow xmtpl: maps for attributes