Homework 18: Desktop Publishing with FOP

Use XSTL to produce paged medium from the given XML content.
Add some extra functions to an XSLT transform publishing Formatted Objects (FO) and Adobe PDF via Apache FOP tool. Take an input format being an XHTML file (potentially containing some non-ASCII characters, e.g. Latvian or Russian letters) and produce *.fo and *.pdf output by using FOP.


To see how XSLT transform can produce FO, consider this example - rainis.xml, rainis.jpg, rainis_style.xsl and the output rainis.pdf.

Make it run and generalize it to work on a subset of XHTML and for various fonts. Your output should enable PDF linking and bookmarks.