Hi Eric, After a page-break, there is a new reference-area. For a block at the beginning of the reference-area, the space-before is taken into account if the space-before.conditionality property is set to 'retain' (see XSL REC 1.1, $4.3 at [1]). And this property default to 'discard' (see $7.11.5 at [2]).
[1] http://www.w3.org/TR/xsl/#spacecond [2] http://www.w3.org/TR/xsl/#space-before Le 13/05/2011 20:20, Eric Douglas a écrit : > 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. > -- Pascal --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
