This is a snapshot of the Cougar DTD. This is work in progress, subject to change at any time. It does not imply endorsement by, or the consensus of, either W3C or members of the HTML working group. Enclosed are six components which you can extract for use with tools such as James Clark's nsgmlsu which is available as part of the SP package from http://www.jclark.com/sp/index.htm You will need the Unicode version as Cougar uses Unicode for the document character set.
First create your HTML file which must start with the <!DOCTYPE> declaration, e.g.
<!DOCTYPE HTML SYSTEM "http://www.w3.org/pub/WWW/MarkUp/Cougar/Cougar.dtd"> <title>A title</title> <Para style="color: red">Hi Mom!
With the test file in the same directory as the six files named above, you can then validate your file as follows:
nsgmlsu -s -m Cougar.cat Cougar.decl test.html test.html:3:13:E: there is no attribute `STYLE' test.html:3:25:E: element `PARA' not allowed here test.html:3:25:E: element `PARA' undefined test.html:3:34:E: `HTML' not finished but document ended
This shows the output when you've absent mindedly typed "para" in place of "p" for a paragraph start tag. The "-s" option shows only the error messages, suppressing normal ouput. Correcting the above error then produces no output. Note that it is unnecessary to include the HTML, HEAD or BODY elements as these can be safely omitted. The <!DOCTYPE> and TITLE on the otherhand are essential.