
Hi Lars, That should be an SGML DTD, thus the errors when you validate it as an XML DTD. Solutions: * use a catalog to map that to a local copy and edit the local copy to make it a valid XML DTD * use the XHTML DTD, for example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> This is also mapped by oXygen catalogs into a local copy. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Lars Huttar wrote:
Hello, Often when I copy and paste HTML code from somewhere, and edit the resulting page in Oxygen, I get a validation error in http://www.w3.org/TR/html4/strict.dtd
For example, when the DOCTYPE at the beginning says <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> I get the validation error: F [Xerces] The declaration for the entity "ContentType" must end with '>'.
If I click on this error message, it takes me not to my html document, but to http://www.w3.org/TR/html4/strict.dtd, to the following declaration:
<!ENTITY % ContentType "CDATA" -- media type, as per [RFC2045] -->
The middle of those three lines is highlighted.
I could understand if something in my own HTML were invalid; but this appears to be saying that the standard DTD provided by W3C is not well-formed. I'm not a DTD guru, but I would be very surprised if that were the case.
Is this a Xalan bug, then?
This is not a showstopper for me, but it does make it more complicated for me to do validation on the html I'm writing.
Thanks, Lars _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user