Click to See Complete Forum and Search --> : DOCTYPE removal


PatentJoe
December 11th, 2003, 11:02 AM
I'm new to the game, so any info can help me out.

From what I understand, the DOCTYPE tag declares the DTD for the page to be validated against. Without it, no validation occurs.

I need to know if there are parsers out there that after confirming validation remove the DOCTYPE, so that any application they pass to later don't have to waste time confirming again.

Any literature is helpful. Also, please feel free to corret me if I have the whole thing wrong, as per when a parser does and does not perform validation checking.

Also, any info anyone has on parsers caching DTDs would be cool.

TIA

khp
December 12th, 2003, 01:35 AM
Originally posted by PatentJoe
I need to know if there are parsers out there that after confirming validation remove the DOCTYPE, so that any application they pass to later don't have to waste time confirming again.


If we are only talking about parsers (not doing any kind of processing), No, a parser that alters the contents of a file would obviously be very very bad. But of course it's quite easy to write an xslt that will rid you of this DTD sillyness.

Perhaps you could tell us about what you are trying to do, and what tools you are working with ?.

Of course if you ask me, DTD is entirely antiquated, and utterly useless. The only advice I can give about DTD is to not use it, unless someone is holding a gun to your head.