[oXygen-user] oxygen says W3C html strict DTD has errors

Sorin Ristache
Fri Sep 21 01:56:41 CDT 2007


Hello,

oXygen validates a file only if a validation action is executed from a 
toolbar or from a menu. oXygen validates a file automatically when you 
open the file only if the option Validate as you type is enabled. oXygen 
is assuming HTML files are XML (XHTML) ones.


Regards,
Sorin


Lars Huttar wrote:
> I guess the question, then, is why is Oxygen attempting to validate 
> using this SGML DTD?
> When I open this HTML file, is Oxygen assuming it's XML for some reason?
> 
> I'm looking for some way to turn off validation, so I don't keep getting 
> spurious errors.
> 
> Thanks,
> Lars
> 
> 
> On 9/20/2007 3:38 AM, Sorin Ristache wrote:
>> Hello,
>>
>> Yes, the error is caused by a SGML DTD. The oXygen validator validates 
>> only XML DTDs and XML documents that are conformant with XML DTDs.
>>
>>
>> Regards,
>> Sorin
>>
>>
>> Lars Huttar wrote:
>>> Hello,
>>> I'm editing an HTML document in Oxygen. The document begins with
>>>    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
>>> "http://www.w3.org/TR/html4/strict.dtd">
>>>
>>> When I try to save, Oxygen shows an "error" in the DTD:
>>>    SystemID: http://www.w3.org/TR/html4/strict.dtd
>>>    Location: 81:5
>>>    Description: The declaration for the entity "ContentType" must end 
>>> with '>'.
>>>
>>> The offending location is the second of these three lines in strict.dtd:
>>> <!ENTITY % ContentType "CDATA"
>>>    -- media type, as per [RFC2045]
>>>    -->
>>>
>>> Maybe this is because the DTD is an SGML DTD rather than an XML one? 
>>> I don't know, but it seems strange for a W3C DTD to be called erroneous!
>>> Incidentally, I think this DOCTYPE declaration was added by HTML 
>>> Tidy, or possibly by an HTML editor program.
>>>
>>> Lars
>>
>> _______________________________________________
>> oXygen-user mailing list
>> 
>> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>>
>>
>>
> 
> 
> 
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user



More information about the oXygen-user mailing list