[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: blank-or-not-blank attribute

Subject: Re: blank-or-not-blank attribute
From: "W. Eliot Kimber" <ekimber@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Aug 2004 07:53:59 -0500
blank or not blank
tsterlin@xxxxxxxxxxxxxxxxx wrote:
<fo:page-sequence-master master-name="image">
  <fo:repeatable-page-master-alternatives>
     <fo:conditional-page-master-reference master-reference="blankPage"
        blank-or-not-blank="blank"/>
     <fo:conditional-page-master-reference master-reference="theImage"/>
  </fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>

Essentially, what I'm trying to achieve here is an empty page and then the
contents of "theImage" on the following page.  I've also tried making a
fo:page-sequence-master all its own for the blank page with its fo:flow
containing no content, but that didn't seem to work either.  At this point my
output is the content of theImage page with no blank neighboring pages.  In
addition, I've confirmed the support of this feature since I'm using the
RenderX fo processor and its literature indicates this attribute is supported.

You've defined a page sequence master that will *accomodate* a blank page, not one that will force one.


That is, conditional-page-master-reference is used to associate page masters with particular types of pages: blank or not blank, odd or even, first or not first, last or not last.

To force a blank page, simply use an empty fo:block with a break-after="page" property--this will generate a blank page. You can then use the page master as you've defined it to define the characteristics of that blank page. E.g.:

<fo:block break-after="page">
 <fo:leader leader-pattern="space" leader-length="0pt"/>
</fo:block>

[This use of fo:leader is the most reliable way to ensure the block is actually processed as some processors will ignore blocks with no non-blank content. If you need an empty block that takes no vertical space, set the line-height to "0pt" for the block.]

Cheers,

Eliot
--
W. Eliot Kimber
Professional Services
Innodata Isogen
9390 Research Blvd, #410
Austin, TX 78759
(512) 372-8122

eliot@xxxxxxxxxxxxxxxxxxx
www.innodata-isogen.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.