Categories:
Audio (13)
Biotech (29)
Bytecode (22)
Database (79)
Framework (7)
Game (7)
General (454)
Graphics (53)
I/O (28)
IDE (2)
JAR Tools (45)
JavaBeans (16)
JDBC (86)
JDK (33)
JSP (20)
Logging (89)
Mail (54)
Messaging (8)
Network (103)
PDF (82)
Report (7)
Scripting (75)
Security (67)
Server (112)
Servlet (11)
SOAP (24)
Testing (55)
Web (24)
XML (287)
Other Resources:
Convert XML to FO with FOP
How to convert my data in XML to XSL-FO format with FOP? I have the XSLT file to define my data should be formatted.
✍: FYIcenter.com
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 FOP
to convert the XML file to an XSL-FO file as shown below:
\fyicenter>cd \local\fop-2.2\fop \local\fop-2.2\fop>java -cp .\lib\xalan-2.7.2.jar;.\lib\serializer-2.7.2.jar org.apache.xalan.xslt.Process -IN examples\embedding\xml\xml\projectteam.xml -XSL examples\embedding\xml\xslt\projectteam2fo.xsl -OUT \temp\projectteam.fo \local\fop-2.2\fop>dir \temp\projectteam.fo 2,176 projectteam.fo
The same example is provided in FOP 2.2, 2.1, and 2.0. But you need to change dependent JAR file versions accordingly.
2016-07-05, 919👍, 0💬
Popular Posts:
What Is jtds-1.2.2.jar? jtds-1.2.2.jar is the JAR files of jTDS Java library 1.2.2, which is a JDBC ...
AXIOM stands for AXis Object Model (also known as OM - Object Model) and refers to the XML infoset m...
The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solut...
What Is jtds-1.2.2.jar? jtds-1.2.2.jar is the JAR files of jTDS Java library 1.2.2, which is a JDBC ...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...