wdg-html-validator and w3c-dtd-xhtml

Andrea Gasparini gaspa at yattaweb.it
Tue Jun 9 14:09:21 BST 2009

while reporting to its Debian maintainer the merge of ikiwiki, I found the 
real problem of ikiwiki really was a strange behavior of wdg-html-validator
( note that 'man validate' tells it is "an Offline validator" )
While in debian without a working net it works flawlessy: 
$ ping www.w3.org
ping: unknown host www.w3.org
$validate html/index.html 

In Ubuntu it's broken: 
 $ validate html/index.html
 *** Errors validating html/index.html: *** 
Error at line 2, character 53:  host "www.w3.org" not found
Error at line 2, character 53:  DTD did not contain element declaration for 
    document type name
...[lot of errors here] ...

That's the prologue. The fact it's that w3c-dtd-xhtml has a revision 
(here's the related patch[1]) different from debian.

And in fact, while searching for a dtd in Ubuntu fails
$ xmlcatalog /etc/sgml/w3c-dtd-xhtml.cat "-//W3C//DTD XHTML 1.0 Strict//EN"
No entry for PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
...instaling the package from debian, it works:
$ xmlcatalog /etc/sgml/w3c-dtd-xhtml.cat "-//W3C//DTD XHTML 1.0 Strict//EN"

( useless to say that both validate and ikiwiki work now correctly) 

Finally, the question: has anyone the clue to check why ubuntu had this 
delta, and could say if it can be dropped, or not?
And if not: how can we correct this?
If yes: it'll lead to a sync of a couple of packages.

-------- https://launchpad.net/~gaspa ---------
------ HomePage: iogaspa.altervista.org -------
-Il lunedi'dell'arrampicatore: www.lunedi.org -

More information about the Ubuntu-motu mailing list