[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL-FO discarding space before

Subject: Re: XSL-FO discarding space before
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sat, 08 Jun 2002 23:26:10 +0200
space before.conditionality
Sandy McArthur wrote:
I'm customizing the DocBook to xsl-fo stylesheets to look more like existing documentation that has existed for many years. I'm having trouble with too much white space being before a fo:block. It would simplify my customizations a lot if there is someway to nullify a space-before attribute in a child fo:block. I'm looking for something that is effectively this:

<fo:block space-inside="discard">
  <fo:block space-before="1em">
    FOO.
  </fo:block>
</fo:block>

I'm aware of space-before.conditionality="discard" but don't fully understand it. Any help would be appreciated.

The relevant part of the spec is http://www.w3.org/TR/xsl/slice4.html#spacecond It is not exactly easy to read, not to mention to understand.

The space-before.conditionality property has already
a value of "discard".
It then comes down to precedences and stacking constraints.
Just after a short glance, I'd say that if you have
 <fo:block space-before="1pt">
   <fo:block space-before="3pt">
The 3pt space-before is discarded and the space-before the
actual content is 1pt. This may be wrong, read and interpret
the spec yourself.
The other point is whether does FOP implement it. A short
peek into the code revealed no attempts at implementing
anything looking like the stuff mentioned in the spec, so
if you are using FOP, you probably have to solve the problem
at the XSLT level.
Perhaps one of the code writers can comment on the state
of the current implementation and how this will be handled
in the new design?

J.Pietschmann


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.