A South African woman has gone on trial charged with kidnapping and selling her young daughter in a case that gained national attention.