A 50-year-old lawyer has been named by Morocco's King Mohammed VI as the the first woman to hold the position in the Muslim kingdom.