Re: Handling lousy HTML

2002-09-06 Thread John Moylan
You probably need to preprocess your HTML with tidy before you introduce it to Cocoon. John Ola Berg wrote: At work I have to handle really bad written HTML (they used some really bad HTML generator): html body h1Hello, world!/H1 Hi there. p This is plain wrong. p But it works in certain

Re: Handling lousy HTML

2002-09-06 Thread Nicola Ken Barozzi
Ola Berg wrote: From: John Moylan [EMAIL PROTECTED] You probably need to preprocess your HTML with tidy before you introduce it to Cocoon. Well, according to the sitemap in the cocoon dist (2.0.2), jtidy is involved in the HTML generator. Yes, correct. Yes, preprocessing is a

Re: Handling lousy HTML

2002-09-06 Thread Ola Berg
From: Nicola Ken Barozzi [EMAIL PROTECTED] HTMLGenerator uses JTidy directly, without making assumptions itself. If you can use JTidy to work for you, it should work - or can be easily made to work - with HTMLGenerator too. What do you mean? I can use JTidy on my system, whether Cocoon

Re: Handling lousy HTML

2002-09-06 Thread Nicola Ken Barozzi
Ola Berg wrote: From: Nicola Ken Barozzi [EMAIL PROTECTED] HTMLGenerator uses JTidy directly, without making assumptions itself. If you can use JTidy to work for you, it should work - or can be easily made to work - with HTMLGenerator too. What do you mean? I can use JTidy on my system,

Re: Handling lousy HTML

2002-09-06 Thread Bertrand Delacretaz
On Friday 06 September 2002 16:30, Ola Berg wrote: . . . is it safe to believe that HTMLGenerator utilizes JTidy and that JTidy fails, As Nicola told you, HTMLGenerator *does* use JTidy, as is clearly visible from the source code. However, AFAIK JTidy offers many more options than what

Handling lousy HTML

2002-09-05 Thread Ola Berg
At work I have to handle really bad written HTML (they used some really bad HTML generator): html body h1Hello, world!/H1 Hi there. p This is plain wrong. p But it works in certain browsers /body /html I thought by using the HTMLGenerator, the Tidy-thing should take care of this. In my site