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

Re: Iteration

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Mon, 27 May 2002 12:16:21 -0400
Message-Id: <>
To: <www-xsl-fo@w3.org>
At 2002-05-27 08:42 -0400, Gianluca Gaiotto wrote:
>I'd like to generate multiple copies of the same PDF page, depending on the
>value of an attribute of an element in the XML document.

A common need.

>I haven't found any XSL-FO tags for expressing such an iteration;

Correct, XSLFO is a layout language, not a transformation language.

>anybody know how to implement this?

In your XSLT stylesheet.  It is up to you to detect the attribute desired 
and to repeat the page content as many times as you need by logic in your 

Your resulting XSLFO instance then contains all the content you need laid 
out on the pages (as many copies as your transformation created), and the 
XSLFO engine produces the result from that.

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,15,20,
-                    06-04,07,10,11,13,14,17,20,07-31,08-05,27,30
Received on Monday, 27 May 2002 12:16:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:26 UTC