[xml/sgml-pkgs] Bug#798759: docbook-xsl: Errors validating HTML documents

Manuel A. Fernandez Montecelo mafm at debian.org
Sat Sep 12 11:12:13 UTC 2015


Package: docbook-xsl
Version: 1.78.1+dfsg-1
Severity: normal

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 at gmail.com>


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages docbook-xsl depends on:
ii  xml-core  0.13+nmu2

Versions of packages docbook-xsl recommends:
ii  docbook-xml  4.5-7.3

Versions of packages docbook-xsl suggests:
pn  dbtoepub                                                             <none>
pn  docbook-xsl-doc-html | docbook-xsl-doc-pdf | docbook-xsl-doc-text |  <none>
pn  docbook-xsl-saxon                                                    <none>
pn  fop                                                                  <none>
pn  libsaxon-java                                                        <none>
pn  libxalan2-java                                                       <none>
pn  libxslthl-java                                                       <none>
pn  xalan                                                                <none>

-- no debconf information



More information about the debian-xml-sgml-pkgs mailing list