<!--TEST5.GML: Context check with 12 errors reported.-->
<!doctype gdoc [
  <!element gdoc - - (front?,(body|appendix), rear*) >
  <!element body - - (t1?&(t2|t3)*&t4)+ >
]>
<gdoc><front></front>
<body><t2></t2><t3></t3></body>
<rear></rear></gdoc>
<gdoc><front></front><appendix></appendix></gdoc>
<gdoc><rear></gdoc>
<gdoc><body>
<t4></t4>
</body><rear></rear><rear></rear></gdoc>
