In DTD  
 
Text from specification

Parameter entity references may only appear in the DTD.

 
Explanation

This constraint is self-evident because the % character has no significance outside of the DTD. Therefore, it is perfectly legal to have an element like this in your document:

<ok>%noproblem;</ok>

The text %noproblem; is passed on by the parser without generating an error.