Hi Rick
Have you tried adding the entity information to the Entity Declarations reference page? This is the easiest way to create entity declarations in the XML instance.
However, if you have an XSLT post process stylesheet, the Doctype declaration and any entities will be lost, so you would have to add them as part of the XSLT stylesheet instead.
I hope this helps
Regards
Ian