Hello,
When generating the aptitude guide in HTML, and trying to validate with
"validate":
$ dpkg -S /usr/bin/validate
wdg-html-validator: /usr/bin/validate
$ dpkg -l wdg-html-validator | grep ii
ii wdg-html-validator 1.6.2-8 all WDG HTML Validator
$ dpkg -l aptitude-doc-en | grep ii
ii aptitude-doc-en 0.7.1-1 all English manual for aptitude, a terminal-based package manager
$ validate /usr/share/doc/aptitude/html/en/*.html
The source document in question:
https://anonscm.debian.org/cgit/aptitude/aptitude.git/tree/doc/en/aptitude.xml
The results with HTML 4.01 Strict were:
===================
*** Errors validating /usr/share/doc/aptitude/html/en/ch01s02.html: ***
Error at line 19, character 30: document type does not allow element "DIV"
here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON"
start-tag
Error at line 25, character 30: document type does not allow element "DIV"
here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON"
start-tag
Error at line 35, character 30: document type does not allow element "DIV"
here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON"
start-tag
....
===================
Then I converted to XHTML 1.0, to use something from this decade/century (HTML
4.01 is from 1999), and to see if the issues were addressed with the translation
mechanism for this new standard. With this there are similar errors, but
slightly rephrased:
===================
*** Errors validating doc/en/output-html/ch01s02.html: ***
Error at line 19, character 30: document type does not allow element "div"
here; missing one of "object", "applet", "map", "iframe", "button",
"ins", "del" start-tag
Error at line 25, character 30: document type does not allow element "div"
here; missing one of "object", "applet", "map", "iframe", "button",
"ins", "del" start-tag
Error at line 35, character 30: document type does not allow element "div"
here; missing one of "object", "applet", "map", "iframe", "button",
"ins", "del" start-tag
....
===================
I was checking them and they seem to be related with commands/actions,
"<varlistentry><term><synopsis>" and the like. Looks like valid
docbook, so I assume that the translation to HTML is the one at fault
there.
Cheers.
--
Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>