<!-- TEST10.GML: Tests encapsulated entities; reports 4 errors. -->
<!doctype doc [
  <!entity % md1 md 'entity % be3 pi "BE3" '>
  %md1;
  <!entity   a   SDATA  "A">
  <!entity   be4 pi     "BE4">
  <!element (doc|%be3 y)%be3 o o (#PCDATA | %be3 y)>
  <!attlist (doc|y) att1 (%be3 x) x att2 CDATA "1&a;2">
  %be3;
]>
<doc>
data
&be4;
</doc>
