I have a XSL:FO file which is used to create PDF and it uses XML for data population. I want to know that is there any way to use the same XSL:FO file to create HTML pages. I need to have the HTML pages with same formatting as my PDFs have and I don't want to waste time creating new HTML pages.
I have tried creating HTML using the FopFactory which I use for creating PDF but it takes MimeConstants as input and is not working for text/html MimeType.
Any help would be highly appreciated.