Hi, We are working with highly modularized Documents bases on DocBook 4.1.2 DTD. They contain lots of external Entities. I`d like to migrate them to a new structure (based on DocBook 5), where external Entites shall be replaced by xinclude. Everything else has to be retained exactly "as is".
We also make use of internal Entities, and one way we use them is like this: Declare Entity revision as "2009-12-23 (draft)" and use them in attributes: <section revision='&revision' . /> I`m am using Xerces-J 2.9.1 for parsing. Validation is turned on, Feature 'http://apache.org/xml/features/dom/create-entity-ref-nodes' is set to true. External general Entities generate an EntityReferenceNode as expected. Internal Entities within Element-Nodes are shown as EntityReferencNodes as expected. Attributes, however, do not have EntityReferencNodes as Child. They contain Text Nodes as the only child, its value is the Value of the corresponding Entity Definiton. The Example given above turns into section revision=' 2009-12-23 (draft)'. /> Is there a way for us to retain the Information that the value of this attribute is defined as an Entity? I found a hint somewhere, that this feature is or will be available in Xerces2-J, while it is not, and will not be, in Xerces-C. Thanks in advance, Frank Steimke