What is the best way to write xslt -fo from xsl + xml

I have a complex xslt formatting xml to html now i need to create xsl fo from it what is the best way to do it?

+2


a source to share


2 answers


Here's some inappropriate article for you http://www-128.ibm.com/developerworks/library/x-xslfo2app/



Also you can try the following library (I don't remember, maybe it can create fo files from xslt + xml): http://www.codeproject.com/KB/dotnet/nfop.aspx

+1


a source


I had a similar requirement and did some research but couldn't find a reliable XHTML transformer for FO. There may be one, but in some web searches, there comes a point where you have to give up and give up.

Instead, I took the transformed XML I had already written and changed it to FO output.

This is a much simpler proposal for a full blown XHTML to FO transformer.



While your data will be different, most structures in HTML have FO counterparts, so you can usually decide which FO construct to use when replacing HTML in your transformation.

I did it gradually. If you start with a transform that creates an FO document outline and most of your XML is ignored in the transform, you can then increment the output.

0


a source







All Articles