On Apr 22, 2008, at 12:24, javijava wrote:

Thanks  4 the reply!

"Not directly. If your source document still contains XHTML elements,
those can be transformed to FO by means of XSLT."

Then i can't have a xml with the content and a xslt with the format
(template tags)
and transform it to ->  .fo  -> pdf    without fo: tags .......

FO without 'fo: tags' is not FO, now is it?


I need translate by hand ALL the .html tags to  .fo tags then?
there is not  exist anything  to translate this more easy?

You definitely do not need to do that by hand. As I mentioned, there are already some stylesheets out there that transform XHTML to XSL- FO. The only thing you'd need to take care of, is as Robert hinted, tidying the HTML to XHTML, and for that part, there's also tools available, so no manual work.

What I meant is: FOP takes FO as input (as does every FO processor on the market). FO is not HTML, HTML is not FO, so you need some sort of transform/translation before the input is fed to FOP. This can be done by means of a stylesheet, but if your HTML depends on a lot of CSS, then there is a Java library that is probably more suitable, CSS2XSLFO (see: http://www.re.be/css2xslfo/)



Cheers

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to