Thanks Rick. I'll bear your suggestion in mind for the future. At the
moment this would be difficult to do because of how I am generating
the XSL:FO.
Jason
On 22 Jun 2006, at 12:09, Rick Roen wrote:
Jason,
I have done this for tables that need either landscape or portrait
orientation based on the width of the table.
I setup two simple-page-masters:
<fo:layout-master-set>
<fo:simple-page-master
master-name="landscape" margin="1cm 1cm 1cm 1cm" page-height="8.5in"
page-width="11in">
<fo:region-body/>
<fo:region-after extent=".5cm"
region-name="footer"/>
</fo:simple-page-master>
<fo:simple-page-master
master-name="portrait" margin="1cm 1cm 1cm 1cm" page-height="11in"
page-width="8.5in">
<fo:region-body/>
<fo:region-after extent=".5cm"
region-name="footer"/>
</fo:simple-page-master>
</fo:layout-master-set>
Then I make my decision like this:
<fo:page-sequence>
<xsl:attribute
name="master-reference" select="if ($max-pocket gt 6) then
'landscape' else
'portrait' "/>
Perhaps you can adapt this to your use?
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]