A teenage girl who became a hero to Palestinians after she was filmed slapping and kicking an Israeli soldier in the occupied West Bank appeared in an Israeli military court on Tuesday for the start of her trial.