Mikhail T. - 2008-10-13

Hello!

It took me some time to figure out, how to change the page margins in the paper-related output formats, when generating my resume.

When producing the .fo file (resume.fo) from the .xml source (resume.xml), one needs to overwrite the margins prescribed in the style-sheet. For example, when using us-letter.xsl, this is how I reduce the generous margins to fit my resume into two pages:

java -cp /opt/share/java/classes/xalan.jar org.apache.xalan.xslt.Process -in resume.xml -xsl http://xmlresume.sourceforge.net/xsl/output/us-letter.xsl -param margin.top 0.3in -param margin.right 0.5in -param body.indent 0.2in -out resume.fo

Look at the source of the us-letter.xsl for other parameters you may wish to alter.