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 David Wood <ob...@panix.com> on 2002/01/30 20:21:04 UTC
Re: AW: keep-with-next?
I am a Java coder and know my way around the standard. I volunteer to try
to fix this, if someone who is more familiar with FOP's internals can
tell me where to look...
-David
On Wed, 30 Jan 2002, Sam Prokop wrote:
> I found out it just works with table-rows, if you use keep-with-next and
> keep-with-previous.
> and you have to take care, that the table doesn�t exceeds the page,
> otherwise you�ll get a infinite-loop.
>
> that�s all i found out :-(
>
> Sam
>
> > -----Urspr�ngliche Nachricht-----
> > Von: Costantino Sertorio [mailto:costantino.sertorio@ams.com]
> > Gesendet: Montag, 28. Januar 2002 16:51
> > An: fop-user@xml.apache.org
> > Betreff: keep-with-next?
> >
> >
> > Hello,
> > Is the keep-with-next attribute supported by FOP?
> > If yes, can anybody explain to me what I am doing wrong?
> > I have a "heading" template which I would like to keep
> > together with the
> > following text, therefore I defined the following, but it
> > doesn't work (the
> > following paragraph ends up in the next page):
> >
> > <xsl:template match="heading">
> > <xsl:choose>
> > <xsl:when test="@level='1'">
> > <fo:block keep-with-next="always"
> > space-before="0.6cm" space-after
> > ="0.6cm" font-size="13pt" font-weight="bold">
> > <xsl:apply-templates/>
> > </fo:block>
> > </xsl:when>
> > <xsl:when test="@level='2'">
> > <fo:block keep-with-next="always" space-before="5mm"
> > font-size="
> > 10pt" font-weight="bold">
> > <xsl:apply-templates/>
> > </fo:block>
> > </xsl:when>
> >
> > Thank you,
> >
> > Costantino
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: AW: keep-with-next?
Posted by David Wood <ob...@panix.com>.
Thank you for your response!
I was afraid you would say this. :) I was hoping it might be a relatively
simple fix; I wonder if there isn't a kluge I can put in the existing
approach that would suffice for the heading/following paragraph problem...
So FOP is basically being redesigned/rewritten, eh? I wonder how far along
this is.
On Thu, 31 Jan 2002, Bertrand Delacretaz wrote:
> (by the way your message was crossposted to fop-user, please avoid this as it
> makes it very hard to follow discussions)
>
> On Wednesday 30 January 2002 20:21, David Wood wrote:
> > I am a Java coder and know my way around the standard. I volunteer to try
> > to fix this, if someone who is more familiar with FOP's internals can
> > tell me where to look...
>
> I cannot help you much, but here's at least a reply to your offer ;-)
>
> AFAIK getting keep-with... stuff to work requires serious redesign, which is
> currently going on (Keiron and Karen?), but apparently fairly slowly.
>
> Keiron would probably be the one to answer you, but in his last message
> (Jan.14th I think) he indicated that he'd be "away for some time". I have no
> idea when he will be back, maybe someone knows more?
>
> --
> -- Bertrand Delacr�taz, www.codeconsult.ch
> -- web technologies consultant - OO, Java, XML, C++
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: AW: keep-with-next?
Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
(by the way your message was crossposted to fop-user, please avoid this as it
makes it very hard to follow discussions)
On Wednesday 30 January 2002 20:21, David Wood wrote:
> I am a Java coder and know my way around the standard. I volunteer to try
> to fix this, if someone who is more familiar with FOP's internals can
> tell me where to look...
I cannot help you much, but here's at least a reply to your offer ;-)
AFAIK getting keep-with... stuff to work requires serious redesign, which is
currently going on (Keiron and Karen?), but apparently fairly slowly.
Keiron would probably be the one to answer you, but in his last message
(Jan.14th I think) he indicated that he'd be "away for some time". I have no
idea when he will be back, maybe someone knows more?
--
-- Bertrand Delacrétaz, www.codeconsult.ch
-- web technologies consultant - OO, Java, XML, C++
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: AW: keep-with-next?
Posted by David Wood <ob...@panix.com>.
I should be more specific - what I mean is; I would like to try to get
keep-with-next/previous working with fo:block elements.
On Wed, 30 Jan 2002, David Wood wrote:
> I am a Java coder and know my way around the standard. I volunteer to try
> to fix this, if someone who is more familiar with FOP's internals can
> tell me where to look...
>
> -David
>
> On Wed, 30 Jan 2002, Sam Prokop wrote:
>
> > I found out it just works with table-rows, if you use keep-with-next and
> > keep-with-previous.
> > and you have to take care, that the table doesn�t exceeds the page,
> > otherwise you�ll get a infinite-loop.
> >
> > that�s all i found out :-(
> >
> > Sam
> >
> > > -----Urspr�ngliche Nachricht-----
> > > Von: Costantino Sertorio [mailto:costantino.sertorio@ams.com]
> > > Gesendet: Montag, 28. Januar 2002 16:51
> > > An: fop-user@xml.apache.org
> > > Betreff: keep-with-next?
> > >
> > >
> > > Hello,
> > > Is the keep-with-next attribute supported by FOP?
> > > If yes, can anybody explain to me what I am doing wrong?
> > > I have a "heading" template which I would like to keep
> > > together with the
> > > following text, therefore I defined the following, but it
> > > doesn't work (the
> > > following paragraph ends up in the next page):
> > >
> > > <xsl:template match="heading">
> > > <xsl:choose>
> > > <xsl:when test="@level='1'">
> > > <fo:block keep-with-next="always"
> > > space-before="0.6cm" space-after
> > > ="0.6cm" font-size="13pt" font-weight="bold">
> > > <xsl:apply-templates/>
> > > </fo:block>
> > > </xsl:when>
> > > <xsl:when test="@level='2'">
> > > <fo:block keep-with-next="always" space-before="5mm"
> > > font-size="
> > > 10pt" font-weight="bold">
> > > <xsl:apply-templates/>
> > > </fo:block>
> > > </xsl:when>
> > >
> > > Thank you,
> > >
> > > Costantino
> > >
> > >
> > >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: AW: keep-with-next?
Posted by David Wood <ob...@panix.com>.
I should be more specific - what I mean is; I would like to try to get
keep-with-next/previous working with fo:block elements.
On Wed, 30 Jan 2002, David Wood wrote:
> I am a Java coder and know my way around the standard. I volunteer to try
> to fix this, if someone who is more familiar with FOP's internals can
> tell me where to look...
>
> -David
>
> On Wed, 30 Jan 2002, Sam Prokop wrote:
>
> > I found out it just works with table-rows, if you use keep-with-next and
> > keep-with-previous.
> > and you have to take care, that the table doesn�t exceeds the page,
> > otherwise you�ll get a infinite-loop.
> >
> > that�s all i found out :-(
> >
> > Sam
> >
> > > -----Urspr�ngliche Nachricht-----
> > > Von: Costantino Sertorio [mailto:costantino.sertorio@ams.com]
> > > Gesendet: Montag, 28. Januar 2002 16:51
> > > An: fop-user@xml.apache.org
> > > Betreff: keep-with-next?
> > >
> > >
> > > Hello,
> > > Is the keep-with-next attribute supported by FOP?
> > > If yes, can anybody explain to me what I am doing wrong?
> > > I have a "heading" template which I would like to keep
> > > together with the
> > > following text, therefore I defined the following, but it
> > > doesn't work (the
> > > following paragraph ends up in the next page):
> > >
> > > <xsl:template match="heading">
> > > <xsl:choose>
> > > <xsl:when test="@level='1'">
> > > <fo:block keep-with-next="always"
> > > space-before="0.6cm" space-after
> > > ="0.6cm" font-size="13pt" font-weight="bold">
> > > <xsl:apply-templates/>
> > > </fo:block>
> > > </xsl:when>
> > > <xsl:when test="@level='2'">
> > > <fo:block keep-with-next="always" space-before="5mm"
> > > font-size="
> > > 10pt" font-weight="bold">
> > > <xsl:apply-templates/>
> > > </fo:block>
> > > </xsl:when>
> > >
> > > Thank you,
> > >
> > > Costantino
> > >
> > >
> > >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>