List Info

Thread: DTD Validation




DTD Validation
user name
2006-07-14 09:22:00

Hi,

 

can anybody tell me how to validate a document against a dtd that is written in sgml?

I try to validate an html document. But all the dtds from w3c for html are written in sgml.

Validation of an xhtml document works fine with xmlValidateDtd, because the dtds are xml.

Thanks,
Anne

 

DTD Validation
user name
2006-07-18 11:15:05

Hi,

 

is it possible to convert this sgml-dtd in a xml-dtd? If yes, how?

 

Thanks,

Anne

 


Von: xml-bouncesgnome.org [mailtoml-bouncesgnome.org] Im Auftrag von Anne Müller
Gesendet: Freitag, 14. Juli 2006 11:22
An: xmlgnome.org
Betreff: [xml] DTD Validation

 

Hi,

 

can anybody tell me how to validate a document against a dtd that is written in sgml?

I try to validate an html document. But all the dtds from w3c for html are written in sgml.

Validation of an xhtml document works fine with xmlValidateDtd, because the dtds are xml.

Thanks,
Anne

 

DTD Validation
user name
2006-07-19 13:24:12
On Tue, Jul 18, 2006 at 01:15:05PM +0200, Anne Müller wrote:
> Hi,
> 
>  
> 
> is it possible to convert this sgml-dtd in a xml-dtd?
If yes, how?

  In general no, as XML DTD syntax is a tiny subset of SGML
DTD syntax,
and as you discovered an XML parser will fail with a
well-formedness 
error when hitting something outside of that subset.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )