Author: mrglavas
Date: Mon Aug 28 11:19:26 2006
New Revision: 437770
URL: http://svn.apache.org/viewvc?rev=437770&view=rev
Log:
Fixing JIRA Bug #1181:
http://issues.apache.org/jira/browse/XERCESJ-1181
When an entire Document is cloned the internal subset from the DocumentType
node was not being copied into the cloned DocumentType. This is fixed thanks
to the patch from Jacob Kjome.
Modified:
xerces/java/trunk/src/org/apache/xerces/dom/CoreDocumentImpl.java
Modified: xerces/java/trunk/src/org/apache/xerces/dom/CoreDocumentImpl.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/dom/CoreDocumentImpl.java?rev=437770&r1=437769&r2=437770&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/dom/CoreDocumentImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/dom/CoreDocumentImpl.java Mon Aug
28 11:19:26 2006
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2002,2004,2005 The Apache Software Foundation.
+ * Copyright 1999-2002,2004-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1672,6 +1672,7 @@
createDocumentType(srcdoctype.getNodeName(),
srcdoctype.getPublicId(),
srcdoctype.getSystemId());
+ newdoctype.setInternalSubset(srcdoctype.getInternalSubset());
// Values are on NamedNodeMaps
NamedNodeMap smap = srcdoctype.getEntities();
NamedNodeMap tmap = newdoctype.getEntities();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]