Jacob Kjome <[EMAIL PROTECTED]> wrote on 08/24/2006 01:59:14 AM: > > Sure enough, I looked at CoreDocumentImpl and importNode(Node, > boolean, boolean, HashTable), where it deals with DOCUMENT_TYPE_NODE > in the switch statement, and it doesn't copy the internal subset > string from the srcdoctype to the newdoctype. Adding the following > line solves the issue... > > newdoctype.setInternalSubset(srcdoctype.getInternalSubset()); > > I've reported the bug and attached a very simple patch. I hope it > can be applied for the next release!
Thanks Jake. I've committed your patch to SVN. > http://issues.apache.org/jira/browse/XERCESJ-1181 > > > I'm still curious about the Entity node that gets created as a child > of the DocumentType. Is that supposed to get created? Is it necessary? Yes and yes. The entity map contains an Entity node for each of the general entities declared in the DTD. The one Entity in the source document is being copied into the cloned document. > Jake Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
