Re: last page and first page at the same time
"G. Ken Holman" <[email protected]> Thu, 05 Dec 2002 14:00:29 -0500
| Newsgroups | gmane.text.xml.xsl.general |
|---|---|
| Message-ID | <[email protected]> |
At 2002-12-05 21:48 +0300, Nikolai Grigoriev wrote: >Just a suggestion: you can take the master for the first page >out of the first fo:repeatable-page-master-alternatives, >like this: >... >The first subsequence will match if and only if there is exactly >one page in the sequence. If there are two pages or more, the >processing finds no suitable page-masters in the first subsequence, >and moves to the second subsequence, skipping the first one. > >This is equivalent to your solution, but has a benefit of better >logical separation between masters applicable to single-page >sequences, and those applicable to multi-page ones. I agree! Thank you Nikolai; I had not considered the behaviour when no alternatives are found. ................ Ken -- Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO: - North America: Feb 3 - Feb 7,2003 G. Ken Holman mailto:[email protected] Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/ 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