[Bug 344795] New: xmllint fails to parse XHTML 1.1
https://bugzilla.novell.com/show_bug.cgi?id=344795 Summary: xmllint fails to parse XHTML 1.1 Product: openSUSE 10.3 Version: Final Platform: PC OS/Version: openSUSE 10.3 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: novell@ostkamp.fastmail.fm QAContact: qa@suse.de Found By: --- Hello, xmllint fails to parse XHTML 1.1 code despite the fact that package xhtml-dtd-2002.8.9-143 is installed and the DTD thus should be available for local use. Example: $ /usr/bin/xmllint --nonet --noout --valid xxx.html I/O error : Attempt to load network entity http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd xxx.html:2: warning: failed to load external entity "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> ^ xxx.html:3: validity error : Validation failed: no DTD found ! <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> $ cat xxx.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="generator" content="AsciiDoc 8.2.5" /> <title>AsciiDoc User Guide</title> </head> <body> <h1>AsciiDoc User Guide</h1> </body> </html> The check should find xhtml11 DTD as follows: /etc/xml/catalog -> suse-catalog.xml suse-catalog.xml -> file:///etc/xml/xhtml.xml xhtml.xml -> file:///usr/share/xml/xhtml/schema/dtd/1.1/xhtml11-flat.dtd However strace shows this does not happen (see below). After opening xhtml.xml file it tries to stat(!) a 'http://...' address which is of course nonsense cause this is a URL and not a filename, then it fails. 6643 stat64("/etc/xml/xhtml.xml", {st_mode=S_IFREG|0644, st_size=18489, ...}) = 0 6643 open("/etc/xml/xhtml.xml", O_RDONLY) = 4 6643 fstat64(4, {st_mode=S_IFREG|0644, st_size=18489, ...}) = 0 6643 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eed000 6643 read(4, "<?xml version=\"1.0\"?>\n<!DOCTYPE "..., 16384) = 16384 6643 _llseek(4, 0, [16384], SEEK_CUR) = 0 6643 _llseek(4, 0, [0], SEEK_SET) = 0 6643 read(4, "<?xml version=\"1.0\"?>\n<!DOCTYPE "..., 4096) = 4096 6643 read(4, "i=\"file:///usr/share/xml/xhtml/s"..., 4096) = 4096 6643 read(4, "-//W3C//ENTITIES XHTML Modular F"..., 4096) = 4096 6643 brk(0x80a4000) = 0x80a4000 6643 read(4, "Id=\"http://www.w3.org/TR/xhtml-m"..., 4096) = 4096 6643 read(4, "l-modularization/DTD/xhtml-speci"..., 4096) = 2105 6643 read(4, "", 4096) = 0 6643 read(4, "", 4096) = 0 6643 close(4) = 0 6643 munmap(0xb7eed000, 4096) = 0 6643 stat64("http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd", 0xbfdb0d84) = -1 ENOENT (No such file or directory) 6643 write(2, "I/O ", 4) = 4 6643 write(2, "error : ", 8) = 8 6643 write(2, "Attempt to load network entity h"..., 76) = 76 6643 write(2, "xxx.html:2: ", 12) = 12 6643 write(2, "warning: ", 9) = 9 6643 write(2, "failed to load external entity \""..., 78) = 78 6643 write(2, " \"http://www.w3.org/TR/xhtml1"..., 52) = 52 6643 write(2, " "..., 53) = 53 .. Omitting the '--nonet' option and using real Web access shows the document is ok: $ /usr/bin/xmllint --noout --valid xxx.html Please check what's wrong here, either in 'xmllint' or the XML catalogs. Regards Guido -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=344795 Mark Gordon <mtgordon@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtgordon@novell.com AssignedTo|bnc-team-screening@forge.provo.novell.com |prusnak@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=344795#c1 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Pavol Rusnak <prusnak@novell.com> 2007-11-30 07:41:13 MST --- Verified, exists also in Factory - libxml2 2.6.30 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=344795 User prusnak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=344795#c2 --- Comment #2 from Pavol Rusnak <prusnak@novell.com> 2007-12-05 06:32:21 MST --- Reported upstream: http://bugzilla.gnome.org/show_bug.cgi?id=501735 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=344795 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|xmllint fails to parse XHTML 1.1 |libxml2: xmllint fails to parse XHTML 1.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=344795 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|libxml2: xmllint fails to parse XHTML 1.1 |[upstream] libxml2: xmllint fails to parse XHTML | |1.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=344795 User prusnak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=344795#c3 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |Future/Later for Fix| | --- Comment #3 from Pavol Rusnak <prusnak@novell.com> 2008-07-23 08:01:53 MDT --- Closing here. Tracked in upstream bugzilla. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=344795 User prusnak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=344795#c4 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://bugzilla.gnome.org/show_bug.cgi?id=501735 Resolution|FIXED |UPSTREAM Summary|[upstream] libxml2: xmllint fails to parse XHTML|libxml2: xmllint fails to parse XHTML 1.1 |1.1 | --- Comment #4 from Pavol Rusnak <prusnak@novell.com> 2008-08-19 02:23:47 MDT --- Changed resolution to upstream and added URL -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com