Convert XML to FO with


How to convert my data in XML to XSL-FO format with I have the XSLT file to define my data should be formatted.



If your data stored in XML format and you have an XSLT file that defines how data should be formatted, you can use the XSLT process provided in to convert the XML file to an XSL-FO file as shown below:

\fyicenter>cd \local\fop-2.0

java version "1.7.0_45"

\local\fop-2.0>java -cp .\lib\xalan-2.7.0.jar;.\lib\serializer-2.7.0.jar 
   -IN examples\embedding\xml\xml\projectteam.xml 
   -XSL examples\embedding\xml\xslt\projectteam2fo.xsl 
   -OUT \temp\   

\local\fop-2.0>dir \temp\

Back to FAQ on FOP (Formatting Objects Processor).

2016-07-05, 781👍, 0💬