On 08/27/2018 11:37 AM, HOCHHUTH Björn Enders wrote:

I have a .fo template as a template stylesheet to convert a docBook file
to PDF.

I read a lot of documentation now but I didn´t find a solution. In one
users guide I read FO is supported but there is no description how to
use a FO file as a conversation template.

Can I transform FO file to XSL? Thanks a lot!


I'm sorry but I don't understand what you mean by ".fo template".

A ".fo" file is very rarely used a *template*. It's almost always an intermediate file which represents a *single*, *specific*, page layout.

Notice my words: *single*, *specific*; *template* implies that a ".fo" file could be used to create multiple page layouts.

In order to convert a ".fo" file to PDF, simply:

1) Make sure that you have a recent Java runtime (e.g Java 8+) installed on your computer.

2) Download and install Apache FOP. See https://xmlgraphics.apache.org/fop/2.3/

3) Run:

fop -fo XXX.fo -pdf XXX.pdf

See https://xmlgraphics.apache.org/fop/2.3/running.html



***********************************************************************
Please note that your question is not related AT ALL to our product "XMLmind XSL-FO Converter", http://www.xmlmind.com/foconverter/

Your question seems to be related to

1) XSL. May be it's about "2.3 Literal Result Element as Stylesheet" -- https://www.w3.org/TR/1999/REC-xslt-19991116#result-element-stylesheet -- a rarely used XSLT feature.

2) DocBook. May be you should post your question to the public mailing list: [email protected]
***********************************************************************


--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to