[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] FO: Blank Pages at End of Page Sequence
Hey list,
Through assistance from this list I was able to get my page-sequences being applied to each individual chapter. My next hurdle is getting a blank page to display to ensure the new chapter starts on the right side page. (See code below) I got it sort of working, however, instead of being truly blank, like I want, it is including the header and footer like the rest of the pages. I suspect what's happening is it's not using the blank page, but instead is just continuing on with the Left/Right pages. However, oddly enough, when FOP (0.20.5) completes the PDF generation, it does label the appropriate pages as "(blank)" in its output....but they'll still contain a header and footer, just no flow. So, my question is...how can I retain the same behaviour (insert blank were needed), but also make it strip off the static-content that it seems to want to retain. It seems it never calls the Blank simple-page-master...and I don't know why. Any ideas? Thanks a lot in advance, Jordan ----------------------- My page-sequence-master is as follows: <fo:page-sequence-master master-name="chapter"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-reference="ChapterFirst" page-position="first"/> <fo:conditional-page-master-reference master-reference="BodyLeft" odd-or-even="even"/> <fo:conditional-page-master-reference master-reference="BodyRight" odd-or-even="odd"/> <fo:conditional-page-master-reference master-reference="Blank" blank-or-not-blank="blank" /> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> ----------------------- The relevant simple-page-masters are as follows...fairly simple: <fo:simple-page-master master-name="BodyLeft" xsl:use-attribute-sets="page-leftbody"> <fo:region-body xsl:use-attribute-sets="region-body" /> <fo:region-before xsl:use-attribute-sets="region-head" /> <fo:region-after xsl:use-attribute-sets="region-foot" region-name="leftfooter"/> </fo:simple-page-master> <fo:simple-page-master master-name="BodyRight" xsl:use-attribute-sets="page-rightbody"> <fo:region-body xsl:use-attribute-sets="region-body" /> <fo:region-before xsl:use-attribute-sets="region-head" /> <fo:region-after xsl:use-attribute-sets="region-foot" region-name="rightfooter"/> </fo:simple-page-master> <fo:simple-page-master master-name="Blank" xsl:use-attribute-sets="page-title"> <fo:region-body/> </fo:simple-page-master> ----------------------- Relevant portions of my page-sequence are: <xsl:for-each select="/div1/div2"> <fo:page-sequence master-reference="chapter" initial-page-number="auto-odd" force-page-count="auto"> <fo:static-content flow-name="xsl-region-before"> <!-- Header material --> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <!-- Body material --> </fo:flow> </fo:page-sequence> </xsl:for-each>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|