DTD parser?

Nic Gibson nicg at noslogan.org
Fri Jun 1 19:48:00 BST 2007


On Jun 1, 2007, at 18:39, Andy Armstrong wrote:

> Heh. So it turns out that
>
>  http://www.w3.org/TR/html4/strict.dtd
>
> doesn't actually validate.
>
> Might do something less bang-head-off-brick-wall for a bit :)
>
> --  
> Andy Armstrong, hexten.net
>


My usual approach (writing docbook customisations) is to use nsgmls -  
create a tiny document using the DTD (so you have the declaration)  
and do something like:

	nsgmls -sv -wall myfile.sgml

There's another flag[1] to nsgmls to tell it that you are dealing  
with xml not sgml if that's the case.
That's only going to check that the dtd is valid of course. What did  
you actually mean by 'parse'?

nic

[1] which I forget


More information about the london.pm mailing list