<?xml version="1.0"?>
<!DOCTYPE x [
<!ELEMENT x (test)*>
<!ELEMENT test EMPTY>
<!ATTLIST test att CDATA "attvalue">
<!ENTITY test.ent "<test/>">
]>
<x>
    <test/>
    &test.ent;
</x>