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

Re: Conditionally displaying a horizontal line

From: David Carlisle <davidc@nag.co.uk>
Date: Wed, 18 Sep 2002 15:59:27 +0100
Message-Id: <200209181459.PAA27088@penguin.nag.co.uk>
To: Haitham.Al-Dhahir@gs.com
CC: www-xsl-fo@w3c.org

It's easier to always have the line in the text flow and only
conditionally insert the line in the header than to do what you ask,
which is to have conditional line in the text flow.

If the former is acceptable then the following might work if your
document structure is suitable:

place a marker containing a line at the start of the flow. each time you
place a horizontal line into the flow first place an empty marker, then
a line then re-insert the marker with a line (with a suitable
keep-property so these three items stay together).

In your header you can use the first marker on the page to draw your
"line" which will be a visible line unless the page has broken just
before the marker-line-marker combination.


This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
Received on Wednesday, 18 September 2002 10:59:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:26 UTC