|
From: Greg W. <gw...@me...> - 2002-10-08 16:27:19
|
I'm having problems validating HTML output by Docutils using nsgmls, my HTML/XHTML validator of choice. (It's from the James Clark's SP package -- installed on my Debian "unstable" box as sp_1.3.4-1.2.1-28.) I'm sure you're all familiar with the first two lines of Docutils HTML output: $ head -2 upload.html <?xml version="1.0" encoding="us-ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> If I ask nsgmls to parse this (I just use it for the errors and warnings it prints), it barfs almost immediately: $ nsgmls upload.html nsgmls:upload.html:2:63:E: name start character invalid: only delimiter ">", delimiter "[", system identifier and parameter separators are allowed nsgmls:upload.html:2:63:E: cannot continue because of previous errors ?xml version="1.0" encoding="us-ascii"? Line 2 column 63 is the word "SYSTEM". I don't know much about the hairy minutiae of (X)HTML DTD lines, so I can't tell offhand if this is valid -- I don't recall seeing other DTD lines with it, but that's not saying much. So what's up here -- is Docutils emitting bad HTML here? or is nsgmls barfing on valid HTML? Greg -- Greg Ward - software developer gw...@me... MEMS Exchange http://www.mems-exchange.org |