Page 1 of 1
HTML to XHTML (ant or command line)
Posted: Tue Aug 19, 2008 3:26 am
by Nicolas
Hi,
I need to convert automatically a group of HTML files into XHTML 1.0 transitionnal. Using, the "Import HTML" as described here (
http://www.oxygenxml.com/doc/ug-oxygen/import-html.html) gives me an output I can easily use.
However, I need to make this task automatic. Is there a way for me to transform my files using ant or the command line or do I need to use an external tool?
Thanks.
Nicolas
Re: HTML to XHTML (ant or command line)
Posted: Tue Aug 19, 2008 12:43 pm
by sorin_ristache
Hello,
You cannot transform a HTML document with an Oxygen action like Import HTML File from command line. You can use
NekoHTML for transforming a HTML file to XHTML Transitional but if you want to use it from command line or from Ant you have to write a simple Java program that uses the API of NekoHTML.
Regards,
Sorin
Re: HTML to XHTML (ant or command line)
Posted: Wed Aug 20, 2008 9:34 am
by Nicolas
Thanks for the answer. I think we will use HTML Tidy as it does everything we want out of the box.
Cheers,
Re: HTML to XHTML (ant or command line)
Posted: Tue Dec 20, 2011 1:26 pm
by Hathi
Hi Sorin,
What's the current status of HTML Import with Author 13.1? I can't see an File > Import HTML command, and this is exactly what I want: import an old personal site written in unclean HTML and have Oxygen clean it to neat XHTML (to create an ePub doc) in one go.
Your answers to the similar, previous posts date back to 2008, so I imagine they may have change now

Thanks,
- Hathi
Re: HTML to XHTML (ant or command line)
Posted: Tue Dec 20, 2011 3:21 pm
by sorin_ristache
Hi Hathi,
The Import HTML feature is available in version 13.1 from menu
File -> Import -> HTML File, but it is a developer feature not an authoring (visual editing) one. Please install
the Oxygen XML Developer product or
the Oxygen XML Editor one for this feature. If you have the
Oxygen XML Editor product please start the Editor application, not the Author one.
Regards,
Sorin