[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Forcing a blank page
At 2009-07-09 09:53 -0400, Brandon Ibach wrote:
I'm attempting to force a certain page in a page-sequence (say, the third), to be blank. This is not dependent on the content, so the break-before and break-after properties will not be useful. The technique I've chosen is to create a page-sequence-master with 3 single-page-master-reference elements, referencing my right-hand, left-hand and blank page masters, respectively, followed by a repeatable-page-master-alternatives to cover remaining pages in the sequence. That is how I would do it! The problem is that I can't get the formatter (Antenna House XSL Formatter V4.3 MR6a for Windows) to leave the page blank. The example below appears to leave the page blank in Antenna House 4.3MR8. I've tried having no region-body in the simple-page-master, but it fails with "fo:region-body is not given" (which I expected, since the spec requires a region-body). Giving the region-body a different region-name fails with 'Unassigned flow: flow-name="xsl-region-body"'. Something else must be wrong in combination. Note that I tell my students I find it better for maintenance to name all regions and not to rely on the assumed region names. Adjusting the margins on either the region-body or the simple-page-master to have zero available space still causes at least some content to be placed on the page, whether overflow is left at "auto" or set to "hidden" or "repeat", though setting it to "error-if-overflow" does cause an error, as it should. Ouch! Not an approach I would have thought of. Any suggestions on how to convince the formatter that it should not try to place any flow content on this page? Please review the working example below and see what may be different in your code. I hope this helps. . . . . . . . . . . Ken <?xml version="1.0" encoding="US-ASCII"?><!--brandon.fo--> <root xmlns="http://www.w3.org/1999/XSL/Format" font-family="Times" font-size="20pt"> <layout-master-set> <simple-page-master master-name="right" page-height="297mm" page-width="210mm" margin-top="15mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm"> <region-body region-name="frame-body"/> </simple-page-master> <simple-page-master master-name="left" page-height="297mm" page-width="210mm" margin-top="15mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm"> <region-body region-name="frame-body"/> </simple-page-master> <simple-page-master master-name="blank" page-height="297mm" page-width="210mm" margin-top="15mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm"> <region-body region-name="blank"/> </simple-page-master> <page-sequence-master master-name="frame"> <single-page-master-reference master-reference="right"/> <single-page-master-reference master-reference="left"/> <single-page-master-reference master-reference="blank"/> <repeatable-page-master-alternatives> <conditional-page-master-reference master-reference="right" odd-or-even="odd"/> <conditional-page-master-reference master-reference="left"/> </repeatable-page-master-alternatives> </page-sequence-master> </layout-master-set> <page-sequence master-reference="frame"> <flow flow-name="frame-body" xmlns="http://www.w3.org/1999/XSL/Format"> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> <block>This is a test</block> </flow> </page-sequence> </root> -- Possible July/August XSLT/XQuery/XSL-FO training in Oakland/CA/USA Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
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
|