Package: w3c-sgml-lib
Version: 1.3-1
Severity: normal
Tags: patch

Dear Maintainer,

I had issues resolving the DTD for "-//W3C//DTD HTML 4.01 Transitional//EN".

Demonstration and fix:

~/tmp$ wget http://www.w3.org/QA/2002/04/valid-dtd-list.html

~/tmp$ cat valid-dtd-list.html | tr '\r\n\t' ' ' | elinks -dump | grep
"DOCTYP.*W3C" | cut -d\" -f 2 | sort -u | sed "s|\(.*\)|xmlcatalog
/etc/xml/catalog '\1'|" | sh -

No entry for PUBLIC -//W3C//DTD HTML 3.2 Final//EN
No entry for PUBLIC -//W3C//DTD HTML 4.01//EN
No entry for PUBLIC -//W3C//DTD HTML 4.01 Frameset//EN
No entry for PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

I got past this by editing 2 xml-catalog files:

/etc/xml/catalog
-----------------------
        <!-- added these next 2 lines -->
        <delegatePublic publicIdStartString="-//W3C//DTD HTML 4.01
Transitional//EN" catalog="file:///usr/share/xml/w3c-sgml-
lib/schema/dtd/catalog.xml"/>
        <delegateSystem
systemIdStartString="http://www.w3.org/TR/html4/loose.dtd";
catalog="file:///usr/share/xml/w3c-sgml-lib/schema/dtd/catalog.xml"/>
    </catalog>
-----------------------

/usr/share/xml/w3c-sgml-lib/schema/dtd/catalog.xml
-----------------------
        <!-- added these next 2 lines -->
        <public publicId="-//W3C//DTD HTML 4.01 Transitional//EN"
uri="/usr/share/xml/w3c-sgml-lib/schema/dtd/REC-
xhtml1-20020801/xhtml1-transitional.dtd" />
        <system systemId="http://www.w3.org/TR/html4/loose.dtd";
uri="/usr/share/xml/w3c-sgml-lib/schema/dtd/REC-
xhtml1-20020801/xhtml1-transitional.dtd" />
    </catalog>
-----------------------



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

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

Versions of packages w3c-sgml-lib depends on:
ii  xml-core  0.13+nmu2

w3c-sgml-lib recommends no packages.

w3c-sgml-lib suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/xml/w3c-sgml-lib/schema/dtd/catalog.xml (from 
w3c-sgml-lib package)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to