Package: rxp
Version: 1.5.0-1

Hi,

I tried to use rxp to validate an XHTML file, but it gets stuck
trying to read the DTD from the www consortium:

        sendto(5, "!\325\1\0\0\1\0\0\0\0\0\0\3www\2w3\3org\0\0\1\0\1", 28, 
MSG_NOSIGNAL, NULL, 0) = 28
        poll([{fd=5, events=POLLIN}], 1, 5000)  = 1 ([{fd=5, revents=POLLIN}])
        ioctl(5, FIONREAD, [44])                = 0
        recvfrom(5, 
"!\325\201\0\0\1\0\1\0\0\0\0\3www\2w3\3org\0\0\1\0\1\300\f\0\1"..., 1024, 0, 
{sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("172.16.0.1")}, 
[16]) = 44
        close(5)                                = 0
        connect(4, {sa_family=AF_INET, sin_port=htons(80), 
sin_addr=inet_addr("128.30.52.37")}, 16) = 0
        write(4, "GET /TR/xhtml1/DTD/xhtml1-strict"..., 66) = 66
        write(4, "Accept: text/xml, application/xm"..., 40) = 40
        write(4, "Host: www.w3.org\r\n", 18)    = 18
        write(4, "User-Agent: RXP/1.5.0\r\n", 23) = 23
        write(4, "\r\n", 2)                     = 2
        read(4, 

That seems silly, since the XHTML DTD is installed locally.  Checking
the manual, my worst suspicions are confirmed:

        If the environment variable XML_CATALOG_FILES is set, XML
        catalog processing is enabled.  A catalog can be used to map
        system and public identifiers to local files.  In particular,
        this allows copies of common DTDs to be kept locally, so that
        rxp does not have to fetch them over the internet.

It would be better (better for the user and better for the health of
the Internet) to use the standard XML catalog by default and only
disable that when requested explicitly.  Setting an environment
variable should not be necessary before the program behaves sanely.

Thanks for maintaining rxp --- it seems useful.

Thoughts?
Jonathan



-- 
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