Subject: Re: [xsl] Forcing a blank page From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 09 Jul 2009 10:02:00 -0400 |
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.
The problem is that I can't get the formatter (Antenna House XSL Formatter V4.3 MR6a for Windows) to leave the page blank.
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"'.
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.
Any suggestions on how to convince the formatter that it should not try to place any flow content on this page?
<?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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Forcing a blank page, Brandon Ibach | Thread | Re: [xsl] Forcing a blank page, Brandon Ibach |
[xsl] Forcing a blank page, Brandon Ibach | Date | [xsl] processing following-siblings, charlieo0 |
Month |