Re: Convert string from html to xhtml

2007-01-15 Thread Torsten Curdt
On 15.01.2007, at 07:38, Bertrand Delacretaz wrote: On 1/14/07, philguillard [EMAIL PROTECTED] wrote: ... Anybody any idea? Is there a way to call jtidy to convert a string in java?... You could also use the (Neko)HtmlTransformer, see the samples at

Re: Convert string from html to xhtml

2007-01-15 Thread philguillard
I use (jtidy)HtmlTransformer. I had XSP (XML file in utf-8, database tables and jdbc connection in utf-8) -- html or XML Serializer in UTF-8 this was ok, and i get character encoding troubles in my language after inserting the HTMLTransformer, confusion between ISO-8859-1 and UTF-8 ?... I

Re: Convert string from html to xhtml

2007-01-15 Thread Abbas Mousavi
I had this problem also , this change in org.apache.cocoon.transformation.HTMLTransformer solved the problem, the change is near line 173 new ByteArrayInputStream(text.getBytes(UTF-8)); --- .cPA8 {

Convert string from html to xhtml

2007-01-14 Thread philguillard
Hi, I'd like to convert html code to xhtml, but that code is coming from database, i know to use html generator -thus jtidy-, but this time it is not a html file that i download, and i can't call a generator for each database field. Anybody any idea? Is there a way to call jtidy to convert

Re: Convert string from html to xhtml

2007-01-14 Thread Steven D. Majewski
On Jan 14, 2007, at 2:45 PM, philguillard wrote: Hi, I'd like to convert html code to xhtml, but that code is coming from database, i know to use html generator -thus jtidy-, but this time it is not a html file that i download, and i can't call a generator for each database field.

Re: Convert string from html to xhtml

2007-01-14 Thread philguillard
Thanks a lot for this quick response. Phil Steven D. Majewski wrote: On Jan 14, 2007, at 2:45 PM, philguillard wrote: Hi, I'd like to convert html code to xhtml, but that code is coming from database, i know to use html generator -thus jtidy-, but this time it is not a html file that i

Re: Convert string from html to xhtml

2007-01-14 Thread Bertrand Delacretaz
On 1/14/07, philguillard [EMAIL PROTECTED] wrote: ... Anybody any idea? Is there a way to call jtidy to convert a string in java?... You could also use the (Neko)HtmlTransformer, see the samples at http://cocoon.zones.apache.org/demos/release/samples/blocks/html/welcome. This allows you to