it really depends on when the woman had the herpes.If she had it for a long time,i would assume that she would have antibodies floating around in her blood,and that should protect the baby.If she acquired the herpes close to the end of the pregnancy,the baby is at a higher risk.
If she knows she has herpes when she's pregnant,she should have a cesarean section