If I'm reading this right, you're suggesting I hard code any margins I might want into different
________________________________ From: Rob Sargent [mailto:[email protected]] Sent: Friday, May 13, 2011 2:47 PM To: [email protected] Subject: Re: How do I set page margins? On 05/13/2011 12:20 PM, Eric Douglas wrote: The basic page margin is in the page setup. <fo:simple-page-master> <xsl:attribute name="margin-top"><xsl:value-of select="MT"/></xsl:attribute> This works at the top level but sets the same margin for all pages. What if I want each page to be different? I can assign this attribute from an xsl:variable if I create that variable above the <fo:layout-master-set> section. If I assign a value for it down below within the <fo:page-sequence> it doesn't seem to have an effect. I generate the XML myself to calculate what goes on each page, so the page processing looks like this. <fo:page-sequence> <fo:flow> <xsl:for-each select="PD"> <fo:block> <xsl:attribute name="break-before">page</xsl:attribute> I tried moving that margin-top attribute to that fo:block and it doesn't look like it's having any effect, though it does indent my text blocks if I add a margin-left to that block. I suspect you have to define your simple-page-masters, filling in the margin values, then lay out their order of appearance(s) in a page-sequence-master.
