Creating a master page template in XSL for rendering using Apache FOP
I need all my ren开发者_运维百科dered pages conform to a specific template.
So I want to create a master page template in XSL. Initially i thought i shall make use of
flow-maps but however flowmaps are not supported by FOP (XSL 1.0). Kindly suggest an
alternative to create a master page template for my output files.
Regards
what about implementing a preprocessing of the fo-files? So you have your master-template stored in a file. And then you have your fo-files with your custom page-masters containg a placeholder like $insertmasterhere$.
The preprocessing will insert the master-template in all custom page-masters. You could do it with java and String replace functions.
- yourfofile --preprocessing--> yourfofile2 --fop--> pdf
Greetings Johannes Perlet
精彩评论