public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Gentoo User Guide XML error
@ 2007-09-27  3:59 Philip Webb
  2007-09-27  4:10 ` [gentoo-user] Gentoo User Guide XML error : solved ? Philip Webb
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Webb @ 2007-09-27  3:59 UTC (permalink / raw
  To: Gentoo User

I downloaded the Gentoo User Guide to read the install section
prior to planning installation of Gentoo on my new machine.
Dillo has no problem opening the file (Lynx can't read XML),
but Epiphany, Firefox & Konqueror all refuse with an XML error :

  XML Parsing Error: mismatched tag. Expected: </link>.
  Location: file:///home/purslow/cr/gentoo/anb3/handbook-x86.xml
  Line Number 12, Column 226:
  <link rel="search" type="application/opensearchdescription+xml" href="http://www.gentoo.org/search/archives-gentoo-org.xml" title="Gentoo List Archives"><title>Gentoo Linux Documentation -- Gentoo Linux x86 Handbook</title></head><body bgcolor="#ffffff">
  ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^

The pointer is under the 'h' of 'head' on my screen.

I am amazed to find an error in a Gentoo doc, esp one like this.
Can anyone offer advice ?

-- 
========================,,============================================
SUPPORT     ___________//___,  Philip Webb : purslow@chass.utoronto.ca
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT    `-O----------O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Gentoo User Guide XML error : solved ?
  2007-09-27  3:59 [gentoo-user] Gentoo User Guide XML error Philip Webb
@ 2007-09-27  4:10 ` Philip Webb
  2007-09-29  7:47   ` Walter Dnes
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Webb @ 2007-09-27  4:10 UTC (permalink / raw
  To: Gentoo User

Following the usual procedure in such cases of trying simple changes,
I changed the file extension to '.html' & Epiphany now has no problem.
Does anyone have any comment on this strange sequence of events ?

-- 
========================,,============================================
SUPPORT     ___________//___,  Philip Webb : purslow@chass.utoronto.ca
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT    `-O----------O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Gentoo User Guide XML error : solved ?
  2007-09-27  4:10 ` [gentoo-user] Gentoo User Guide XML error : solved ? Philip Webb
@ 2007-09-29  7:47   ` Walter Dnes
  2007-09-29 20:34     ` Philip Webb
  0 siblings, 1 reply; 5+ messages in thread
From: Walter Dnes @ 2007-09-29  7:47 UTC (permalink / raw
  To: gentoo-user

On Thu, Sep 27, 2007 at 12:10:17AM -0400, Philip Webb wrote
> Following the usual procedure in such cases of trying simple changes,
> I changed the file extension to '.html' & Epiphany now has no problem.
> Does anyone have any comment on this strange sequence of events ?

  WAD (Working As Designed).  With HTML, the philosophy is that the
parser tries to carry on, even with lots of errors in the HTML code.
XML is much stricter, and an error is much more likely to be treated as
fatal... sorta like the gcc "pedantic" option.

> ========================,,============================================
> SUPPORT     ___________//___,  Philip Webb : purslow@chass.utoronto.ca
> ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
> TRANSIT    `-O----------O---'  University of Toronto

  Just don't complain about having to keep Nanticoke running to power
"clean electric transit".  TANSTAAFL

-- 
Walter Dnes <waltdnes@waltdnes.org> In linux /sbin/init is Job #1
Q. Mr. Ghandi, what do you think of Microsoft security?
A. I think it would be a good idea.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Gentoo User Guide XML error : solved ?
  2007-09-29  7:47   ` Walter Dnes
@ 2007-09-29 20:34     ` Philip Webb
  2007-09-30 20:30       ` Hans-Werner Hilse
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Webb @ 2007-09-29 20:34 UTC (permalink / raw
  To: gentoo-user

070929 Walter Dnes wrote:
> On Thu, Sep 27, 2007 at 12:10:17AM -0400, Philip Webb wrote
>> Following the usual procedure in such cases of trying simple changes,
>> I changed the file extension to '.html' & Epiphany now has no problem.
>> Does anyone have any comment on this strange sequence of events ?
> With HTML, the philosophy is that the parser tries to carry on,
> even with lots of errors in the HTML code.  XML is much stricter
> and an error is much more likely to be treated as fatal.

Well in that case (raises eyebrows), one has to ask
(1) why does Gentoo offer its docs in such a strict format
& (2) why there is a bug in the XML sufficient to stall the browsers.

-- 
========================,,============================================
SUPPORT     ___________//___,  Philip Webb : purslow@chass.utoronto.ca
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT    `-O----------O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Gentoo User Guide XML error : solved ?
  2007-09-29 20:34     ` Philip Webb
@ 2007-09-30 20:30       ` Hans-Werner Hilse
  0 siblings, 0 replies; 5+ messages in thread
From: Hans-Werner Hilse @ 2007-09-30 20:30 UTC (permalink / raw
  To: gentoo-user

Hi,

On Sat, 29 Sep 2007 16:34:19 -0400
Philip Webb <purslow@sympatico.ca> wrote:

> > On Thu, Sep 27, 2007 at 12:10:17AM -0400, Philip Webb wrote
> >> Following the usual procedure in such cases of trying simple changes,
> >> I changed the file extension to '.html' & Epiphany now has no problem.
> >> Does anyone have any comment on this strange sequence of events ?
> > With HTML, the philosophy is that the parser tries to carry on,
> > even with lots of errors in the HTML code.  XML is much stricter
> > and an error is much more likely to be treated as fatal.
> 
> Well in that case (raises eyebrows), one has to ask
> (1) why does Gentoo offer its docs in such a strict format

It offers it in text/html (MIME type as transmitted by the web server)

> & (2) why there is a bug in the XML sufficient to stall the browsers.

It's not XML (there's no real "file name extension" concept in URI-land).

You probably saved it under a file name resembling the URI, thus
leading your browser to the assumption it might be XML - and it has to
make assumptions for file:// requests, since there's no "Content-Type"
on plain file systems. The conceptual failure is the part that
circumvents this (unreliable) detection algorithm by saving that file
by a name ending in ".xml" (my browser doesn't even offer ".xml" as a
preset for the file format when trying to save the HTML page of the
user guide).

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-09-30 20:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-27  3:59 [gentoo-user] Gentoo User Guide XML error Philip Webb
2007-09-27  4:10 ` [gentoo-user] Gentoo User Guide XML error : solved ? Philip Webb
2007-09-29  7:47   ` Walter Dnes
2007-09-29 20:34     ` Philip Webb
2007-09-30 20:30       ` Hans-Werner Hilse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox