[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] "
Re: [xsl] "
Subject: Re: [xsl] "<fo:" and "<xsl:when" test for page numbers
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Nov 2002 11:55:53 -0500
At 2002-11-19 17:42 +0100, Johannes.Becker@xxxxxx wrote:
I'm creating pdf with xsl:fo.
I have a loop that is creating thousands of rows. On page 4, for example, I
want something more written in the cells.
How do I check for page numbers?
Something like:
<xsl:choose>
<xsl:when test="pagenumber=4"> <!-- How do I test this???????
This cannot be tested.
You are missing the issue that XSLT happens and ends long before XSL-FO is
interpreted. There is no feedback loop and your transformation process has
no knowledge of the results of the anticipated formatted process.
The way XSL-FO works is you supply contingencies for those kinds of
situations the formatter finds itself in where having a contingency for a
testable activity can be chosen instead of the default process.
The only contingency you could supply for being on page 4 is a sequence of
page geometries that might trigger different static content for that page
... but you cannot, say, conditionally add content to the middle of a
stream of blocks being formatted.
Perhaps you can describe what you need as your result, because you have
gotten off on a tangent asking about an approach that doesn't exist.
I hope this helps.
................ Ken
--
Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO:
- North America: Feb 3 - Feb 7,2003
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6 Definitive XSLT and XPath
ISBN 0-13-140374-5 Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1 Practical Formatting Using XSL-FO
Next conference training: 2002-12-08,03-03,06
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread
- [xsl] "<fo:" and "<xsl:when" test for page numbers
- Johannes . Becker - Tue, 19 Nov 2002 17:42:44 +0100
- G. Ken Holman - Tue, 19 Nov 2002 11:55:53 -0500 <=
<- Previous Index Next ->
[xsl] "<fo:" and "<xsl:when" test f, Johannes . Becker
Thread
[xsl] placing XML inside node attri, lpmlabs9
Re: [xsl] Page Break in XSLT?, David Carlisle
Date
RE: [xsl] placing XML inside node a, Ben Robb
Month
Subject: Re: [xsl] "<fo:" and "<xsl:when" test for page numbers From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 19 Nov 2002 11:55:53 -0500 |
At 2002-11-19 17:42 +0100, Johannes.Becker@xxxxxx wrote:
I'm creating pdf with xsl:fo. I have a loop that is creating thousands of rows. On page 4, for example, I want something more written in the cells. How do I check for page numbers?
Something like: <xsl:choose> <xsl:when test="pagenumber=4"> <!-- How do I test this???????
This cannot be tested.
You are missing the issue that XSLT happens and ends long before XSL-FO is interpreted. There is no feedback loop and your transformation process has no knowledge of the results of the anticipated formatted process.
The way XSL-FO works is you supply contingencies for those kinds of situations the formatter finds itself in where having a contingency for a testable activity can be chosen instead of the default process.
The only contingency you could supply for being on page 4 is a sequence of page geometries that might trigger different static content for that page ... but you cannot, say, conditionally add content to the middle of a stream of blocks being formatted.
Perhaps you can describe what you need as your result, because you have gotten off on a tangent asking about an approach that doesn't exist.
I hope this helps.
................ Ken
-- Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO: - North America: Feb 3 - Feb 7,2003
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-10-1 Practical Formatting Using XSL-FO Next conference training: 2002-12-08,03-03,06
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] "<fo:" and "<xsl:when" test f, Johannes . Becker | Thread | [xsl] placing XML inside node attri, lpmlabs9 |
Re: [xsl] Page Break in XSLT?, David Carlisle | Date | RE: [xsl] placing XML inside node a, Ben Robb |
Month |