W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2002

Re: XSL-FO : Visibility of Images in xsl-region-bodies

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Tue, 23 Apr 2002 09:00:06 -0400
Message-Id: <5.1.0.14.0.20020423085305.02439118@pop1.attglobal.net>
To: <www-xsl-fo@w3.org>
At 2002-04-23 03:47 -0400, Mirko Sertic wrote:
>I want to place an image or some text within a fo:block block in the
>xsl-region-body region.
>The problem is that i want to make this part visible only on specific pages,
>let me say page
>one, four and ten. How do i do this and how would my fo document look like?

 From your brief description, I am unsure of what exactly you are looking 
for ... it sounds like you need a background on pages 1, 4, and 10, rather 
than a simple <block>.

Backgrounds can only be images, not text.

Perhaps you can put what you want in static content and then create a page 
sequence where the region named by that static content only appears on 
pages 1, 4, and 10:

   <page-sequence-master master-name="do-1-4-10">
     <single-page-paster-reference master-reference="special"/>
     <repeatable-page-master-reference master-reference="normal"
                                       maximum-repeats="2"/>
     <single-page-paster-reference master-reference="special"/>
     <repeatable-page-master-reference master-reference="normal"
                                       maximum-repeats="5"/>
     <single-page-paster-reference master-reference="special"/>
     <repeatable-page-master-reference master-reference="normal"/>
   </page-sequence-master>

But this assumes your body region is made up entirely of that static 
content and not any flow (it is acceptable to include in a page 
sub-sequence a page geometry where none of the regions will accept 
paginated flow).

>Can i also place this block within any other region and control its
>visibility the same way?

If I understand your requirement correctly, yes you can.

I hope this helps.

..................... Ken


--
Upcoming: 3-days XSLT/XPath and/or 2-days XSLFO: June 17-21, 2002
-       : 3-days XML Information Modeling: July 31-August 2, 2002

G. Ken Holman                mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
ISBN 0-13-065196-6                      Definitive XSLT and XPath
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-07-1               Practical Formatting Using XSLFO
XSL/XML/DSSSL/SGML/OmniMark services, books(electronic, printed),
articles, training(instructor-live,Internet-live,web/CD,licensed)
Next public training:                  2002-05-06,07,09,10,13,20,
-                          06-04,07,10,11,13,14,17,20,07-31,08-05
Received on Tuesday, 23 April 2002 09:01:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT