@validate('form')
def valid_type_in_colspan(arch):
 return all((attrib.isdigit() for attrib in arch.xpath('//@colspan')))

@ validate ( 'form' ) def valid_type_in_colspan ( arch ) : return all ( ( attrib . isdigit ( ) for attrib in arch . xpath ( '//@colspan' ) ) )
a colspan attribute must be an integer type .