I'm committing the attached patch which adds in the missing 'DOCTYPE' keyword in the serialization of XML DocumentType nodes.
Changelog:
2005-05-26 Andrew John Hughes <[EMAIL PROTECTED]>
* gnu/xml/transform/StreamSerializer.java:
(serialize(org.w3c.dom.Node,java.io.OutputStream,
boolean)): Add missing 'DOCTYPE' keyword to
DocumentType node output.
--
Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
No software patents in Europe -- http://nosoftwarepatents.com
"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: gnu/xml/transform/StreamSerializer.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/xml/transform/StreamSerializer.java,v
retrieving revision 1.2
diff -u -3 -p -u -r1.2 StreamSerializer.java
--- gnu/xml/transform/StreamSerializer.java 5 May 2005 20:09:07 -0000
1.2
+++ gnu/xml/transform/StreamSerializer.java 26 May 2005 17:27:54 -0000
@@ -421,6 +421,7 @@ public class StreamSerializer
DocumentType doctype = (DocumentType) node;
out.write(BRA);
out.write(BANG);
+ out.write(encodeText("DOCTYPE "));
value = doctype.getNodeName();
out.write(encodeText(value));
String publicId = doctype.getPublicId();
signature.asc
Description: Digital signature
_______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
