in order to get my xul files to load with external dtd files I had to remove the xml version line from each of the external dtd files. See rev 1.17 of mozilla/ editor/ui/dialogs/content/EdHLineProps.xul and rev 1.1 of mozilla/editor/ui/ dialogs/locale/en-US/EditorHLineProps.dtd. Revision 1.18 should work with rev 1.1 of its dtd file. It should be ok to have <?xml version="1.0"?> in the external dtd file.
Accepting bug and setting milestone to M12...
James, it seems like this is a bug in expat. The attached .xml/.dtd file should work, but we end up getting an "error in processing external entity reference" error from expat. Please take a look into this. Thanks a lot.
This is not a bug. A TextDecl has to include an EncodingDecl. See production 77 of the XML Recommendation.
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID
James is right. Kathy, according to the XML spec., you have to specify the encoding in the text declaration as follows: <?xml version="1.0" encoding="ISO-8859-1"?>. Or, you can leave the text decl out. Marking this bug invalid.
Why "ISO-8859-1" instead of "UTF-8"?
Actually, I picked ISO-8859-1 out of a hat. UTF-8 works equally well. I was just using that as an example.
You need to log in before you can comment on or make changes to this bug.