You should use data to pick attribute value:-
for $c in /company/customers/customerreturn data($c/@cno)
You can also use string to get attribute value:
string
for $c in /company/customers/customer return $c/@cno/string()