def cnv_NCName(attribute, arg, element):
 if (type(arg) in types.StringTypes):
  return make_NCName(arg)
 else:
  return arg.getAttrNS(STYLENS, 'name')

def cnv_NCName ( attribute , arg , element ) : if ( type ( arg ) in types . StringTypes ) : return make_NCName ( arg ) else : return arg . getAttrNS ( STYLENS , 'name' )
ncname is defined in URL#nt-ncname essentially an xml name minus : .