cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Re: [Bug] default reader depends on JTidy!!!
Date Tue, 22 Apr 2003 12:34:49 GMT
Peter Royal wrote:
> On Tuesday, April 22, 2003, at 07:37  AM, Stefano Mazzocchi wrote:
>> In this case, transparent XMLizing is *very bad* because it is hidden
>> underneath *TONS* of code and nobody will ever find out (I personally
>> found out because of the missing class, otherwise, I would not have 
>> noticed)
>> the source resolver should not try to outsmart its users. If i ask for a
>> stream of chars, give me what I ask for nothing more nothing less.
> Correct me if I'm wrong here, but I believe the XMLizer only kicks in if 
> you want to call toSAX on a source. (or if a source is not XMLizable)
> So for your example of HTML files, in order to successfully convert them 
> into valid XML, JTidy is used. If you just want to serve static HTML, 
> you probably want to use a reader, and not a generator.
> -pete

I think the problem is that the XMLIzer is used even when the HTML is
called by a Reader.

"You know the world is going crazy when the best
rapper is a white guy, the best golfer is a black guy,
The Swiss hold the America's Cup, France is
accusing the US of arrogance, and Germany doesn't want
to go to war. And the 3 most powerful men in America
are named 'Bush', 'Dick', and 'Colon' (sic)".

-----Chris Rock

View raw message