You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by ek...@pg.ebx.com on 2001/10/11 12:33:59 UTC
provisional-distance-between-starts and provisional-label-separation
doesn't work
hi all,
I'm using FOP-0.20.1 and I have used the above attributes for the
list-block, but it doesn't work. So, anyone has any ideas about this
problem?
Anyway, in order to perform this task, I have used text-indent in the
list-block, and it worked.
But, there is a text-alignment problem in the list (please refer the
attachment), so, how can I solve it?
Thanks.
The following is my xsl and tne pdf files:
<xsl:template match="//list/item">
<fo:list-block provisional-distance-between-starts="2cm"
provisional-label-separation.maximum="2cm"
provisional-label-separation.minimum="0.5cm"
provisional-label-separation.optimum="1cm">
<fo:list-item>
<fo:list-item-label>
<fo:block> *
</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block text-indent="15pt">
<xsl:apply-templates/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</xsl:template>
(See attached file: my.pdf)
best rgds,
ektan
Re: provisional-distance-between-starts and provisional-label-separation doesn't work
Posted by "Peter S. Housel" <ho...@acm.org>.
At Thu, 11 Oct 2001 10:33:59 GMT, ektan@pg.ebx.com wrote:
> hi all,
> I'm using FOP-0.20.1 and I have used the above attributes for the
> list-block, but it doesn't work. So, anyone has any ideas about this
> problem?
>
> Anyway, in order to perform this task, I have used text-indent in the
> list-block, and it worked.
>
> But, there is a text-alignment problem in the list (please refer the
> attachment), so, how can I solve it?
As it says in the XSL spec, you're supposed to use
end-indent="label-end()" in the fo:list-item-label element and
start-indent="body-start()" in the fo:list-item-body element. See
docs/examples/fo/list.fo for an example.
-Peter-
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org