Use character entities in schema based XML documents

Submitted by: Tung Fu (PTC) Last Updated: 2006-08-28

Starting from Epic 5.1, you could make a document instance refer to a DTD for character entities and a schema for elements. Your instance would start with a DOCTYPE declaration referring to a DTD which only declares character entities, and then reference the schema via the various hints on the root element.

There is a discussion about this in section 5.7 of "Definitive XML Schema" by Priscilla Walmsley (Prentice Hall).

Basically, you have a document like this one:

 <!DOCTYPE xfile PUBLIC "-//my xfile character entities//EN" "xfile.dtd">  ...

The xfile.dtd might look like this:

 <!ENTITY % iso-pub PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN//XML" "iso-pub.ent"> %iso-pub;