- From: G. Ken Holman <gkholman@CraneSoftwrights.com>
- Date: Thu, 25 Apr 2002 19:51:56 -0400
- To: <www-xsl-fo@w3.org>
- Cc: Pekka Kilpelainen <kilpelai@cs.uku.fi>
At 2002-04-25 09:27 -0400, Pekka Kilpelainen wrote: >I have a question about producing "varying static content" for pages, >based on the position of the page or (the parity of) the page number. (I >hope this is not a FAQ; I browsed only the 2002 archive of this list but >did not find anything relevant.) An example of this is the convention of >displaying, say, the names of authors at the top of even-numbered >pages and the title of the chapter at the top of odd-numbered pages. Also, >even page numbers are often aligned at the start (left) edge, and odd page >numbers at the end (right) edge of a page. > >My question is: > >(1) is it possible to desrcibe such alternating or conditional >static-content with the current XSL page model (simple-page-master). Yes, by creating a <page-sequence-master> whose <repeatable-page-master-alternatives> child includes two <conditional-page-master-reference> children testing odd-or-even="odd" and odd-or-even="even", each pointing to different <simple-page-master> page geometries naming their respective <region-before> or <region-after> master names differently. You would in each <page-sequence> point to the one <page-sequence-master> and supply as many definitions for <static-content> as you have differently defined perimeter regions. The block region named in the page geometry tested for "odd" would use text-align-last="end". >(2) is it possible to create such alternating or conditional >static-content with some current XSL formatter (like FOP or >Passive TeX or XEP)? Yes for XEP and AntennaHouse ... I don't know for FOP or PassiveTeX. 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 Thursday, 25 April 2002 19:52:02 UTC