Here is a sample xml-document: ]> &example;&xmpl; The file setup/xmp.dtd contains the line: My 1st question, why does this fail for &xmpl;? The &example; is substituted but &xmpl; is not. My 2nd question is why included files do not substitute either of these two entities. Thus in: xml-document-included processed by \xmlprocessfile{}{included-file}{} nor &example; nor &xmpl; is substituted. So, what am I doing wrong here? Hans van der Meer