Is there any way embed XHTML entity references into XML text without the DOCTYPE DTD declaration? The DOCTYPE line is causing problems on the java server it’s targeting.
Escaping the &; sequence isn’t acceptable, nor is embedding in CDATA. The references need to be validated.
Is is possible to reference the DTD from the schema definition instead of the XML data file.
More broadly speaking, what is the common practice for embedding XHTML (or at least entity references) in XML and having that validated?
One potential solution is to convert the entire XHTML 1.0 DTD to a schema, but this doesn’t sound like the best idea.
Have you tried a DOCTYPE without PUBLIC or SYSTEM identifiers?
You can either add the ENTITY declarations directly to the internal subset:
or you can use a parameter entity to point to an external file/files that have your ENTITY declarations: