- From: G. Ken Holman <gkholman@CraneSoftwrights.com>
- Date: Mon, 07 Apr 2003 15:48:45 -0400
- To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
At 2003-04-07 17:56 +0100, Al-Dhahir, Haitham wrote: >I would like to know how to dynamically create page headings. There are two kinds of "dynamically changing headers" when using XSL: (1) dynamically changing headers at XSLT time when you are creating separate page sequences and the static content used in each page sequence (2) dynamically changing headers at XSL-FO time when you are in the middle of a page sequence and you want the header to reflect information retrieved from the content >I am receiving >an XML message of the form: You need the dynamic nature found in (1) at transformation time, and not the kind in (2) that users of XSL-FO usually refer to when talking about "dynamic content". >Each item needs to be displayed sequentially in a PDF document, with each >item starting a new page You can create a separate page sequence, then, for each item. >I want to put the "name" and "address" for the item at the top of >each page as a heading: You can create static content for each page sequence with the name and address information you require for those pages. >It seems to make sense to use a static content section at the top of each >page to achieve this Yes, defined at the beginning of each page sequence, with a page sequence created for every item. > - however, given that the static-content needs to >contain the item's specific name and address, read dynamically from the XML >message, is this possible? At transformation time when you create your XSL-FO from your XML. >Also, the number of items is not known in >advance, so I can't create a separate static-content for each item. Yes, you can, because the static content is defined separately for each page sequence. You are allowed to have "one or more" page sequences in a single XSL-FO instance ... each one will have the single header static content that you need. I hope this helps. ........................... Ken -- Upcoming hands-on courses: Europe (XSLT/XPath): May 5, 2003 - Europe (XSL-FO): May 16, 2003 - (XSLT/XPath and/or XSL-FO) North America: June 16-20, 2003 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 (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 Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
Received on Monday, 7 April 2003 15:48:55 UTC