Re: [Moderator Action] Re: http://www.w3.org/TR/html4/loose.dtd fails being parsed correctly

On Mon, 2008-01-21 at 17:19 +0000, Rainer Pruy wrote:
> 
> Hi Ian,
> the "Exception" occurs with cocoon "html" serializer.
> That tries to serialize a stream of SAX events.
> It is not really obvious, what settings for the xml library (xalan here)
> are in effect.
> 
> So does it come down to the syntax of loose.dtd being valid?
> And thus the xalan exception is misguided?
> (And I should ask there...)

A DTD is neither XML nor HTML. It will not parse correctly with an
XML or HTML parser.

 _ Ian

> 
> Thanks for any clarifications....
> 
> Rainer
> 
> Ian B. Jacobs schrieb:
> > On Mon, 2008-01-21 at 10:35 -0600, Rainer Pruy wrote:
> >   
> >>
> >> The file served at the URL mentioned above causes parsing errors.
> >>     
> >
> > Hi Rainer,
> >
> > Parsing in what context?
> >
> > The file in question is a "DTD"; it is not XML or HTML. DTDs have their
> > own syntax (described in SGML).
> >
> >  _ Ian
> >
> >   
> >> The problem is the following sequence of lines (starting with line 30)
> >>
> >> ----------------------------------------------
> >> -->
> >> <!ENTITY % HTML.Version "-//W3C//DTD HTML 4.01 Transitional//EN"
> >>   -- Typical usage:
> >> ----------------------------------------------
> >> The second line is starting an entity definition that obviously is not terminated by a "<",
> >> while the the third line looks like there should start a comment (with a "<"missing)?
> >>
> >> Can this be fixed, or am I missing something here?
> >>
> >> Regards
> >> Rainer
> >>
> >>
> >>     
> 
-- 
Ian Jacobs (ij@w3.org)   http://www.w3.org/People/Jacobs/
Tel:                     +1 718 260-9447

Received on Monday, 21 January 2008 22:19:41 UTC