This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] too many block-elements in xsl-fo ouput
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Ulrich Kilian" <uk at science-and-more dot de>, <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 16 Jun 2004 12:01:43 -0700
- Subject: Re: [docbook-apps] too many block-elements in xsl-fo ouput
- References: <40D04BEA.9040809@science-and-more.de>
First, the property you are trying to use is not keep-together, which just
keeps the title block together. You want:
keep-with-next.within-column="always"
And the stylesheets do insert this property in the FO. But as you say,
XSL-FO processors that are strict must have it working on sibling elements.
Changing this would require some significant changes to the architecture of
the stylesheets, I think. The DocBook stylesheets use a lot of nested blocks
to handle the various opportunities for customization. Norm is starting to
look at stylesheets for XSL 2, so perhaps this should be a design
consideration.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Ulrich Kilian" <uk@science-and-more.de>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, June 16, 2004 6:32 AM
Subject: [docbook-apps] too many block-elements in xsl-fo ouput
> Hello,
>
> I want to use the attribute keep-together="always" to keep together
> section title and the first para. Antenna house supports this feature.
>
> My problem:
>
> The fo output using the docbook xsl stylesheets (newest version)
> contains too many fo:block-elements which means that the block
> containing the paragraph content is not the block following the block
> with the section title.
>
> The transformation produces:
> <fo:block id="...">
> <fo:block>
> <fo:block>
> <fo:block keep-together=always">
> <fo:block font-familiy=....>
> <fo:block>title</fo:block>
> </fo:block>
> </fo:block>
> </fo:block>
> </fo:block>
> <fo:block>first paragraph of section</fo:block>
> </fo:block>
>
> It should produce something like this:
> <fo:block id="...">
> <fo:block keep-together=always">
> <fo:block font-familiy=....>
> <fo:block>title</fo:block>
> </fo:block>
> </fo:block>
> <fo:block>first paragraph of section</fo:block>
> </fo:block>
>
> Can somebody help to arrive at this?
>
> Best regards
> Ulrich
>
>
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>
>
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.