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

XSL-FO and first/last item on page title extraction

From: Colin Mackenzie <colin@elecmc.com>
Date: Mon, 27 May 2002 11:16:46 -0400 (EDT)
To: <www-xsl-fo@w3.org>
Message-ID: <PJEOKNCGPHICMMDPMNAJIELGCDAA.colin@elecmc.com>

Hi,

does anyone know if there is a way with FO to extract e.g. a the first and
last title that occurs on a page into a heading area (a common pagination
requirement).

i.e.

<document>
	<advert>
		<subject>Apples</subject>
		......
	</advert>
	<advert>
		<subject>Bananas</subject>
		......
	</advert>
	.......

	<advert>
		<subject>Oranges</subject>
		......
	</advert>
</document>

In the header of the first page I would want to output "Apples" (the title
of the first entry on the page) and "Oranges" (the title of the last entry
on the page) depending on how the page broke during pagination (i.e. the
text is flowing not broken into pages based on XML structure).

Colin
Received on Monday, 27 May 2002 12:56:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT