parses RELAX NG with DTD compatibility annotation into AGM.