You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Moataz Omar <mo...@i12.com> on 2002/09/10 15:33:38 UTC
space-after simple question
Dear All,
How could I make space-after proberty in some tag added to the space-after proberty of the parent tag ?
<fo:block space-after="10pt">
<fo:block space-after="20pt">
MY TEXT
</fo:block>
</fo:block>
I want the space after proberty of MY TEXT equals 30pt .
Best regards
Moataz
Re: space-after simple question
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Moataz Omar wrote:
> How could I make space-after proberty in some tag added to the space-after proberty of the parent tag ?
>
> <fo:block space-after="10pt">
> <fo:block space-after="20pt">
> MY TEXT
> </fo:block>
> </fo:block>
>
> I want the space after proberty of MY TEXT equals 30pt .
You can go to
http://www.w3.org/TR/xsl/slice4.html#spacecond
and check whether your problem can be solved in general
within XSLFO (I don't think so, it seems the space-after
will ressolved to 20pt in your case).
Even so, FOP doesn;t curently implement the algorithm from
the spec.
I'd try kludges like
<fo:block space-after="10pt">
<fo:block space-after="20pt">
MY TEXT
</fo:block>
 
</fo:block>
or solve the problem with XSLT (if you use XSLT to generate
the FO)
<xsl:template match="p">
<fo:block space-after="20pt">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="p[not(following-sibling::p)]">
<fo:block space-after="30pt">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
J.Pietschmann
Re: space-after simple question
Posted by Moataz Omar <mo...@i12.com>.
the problem is that formatting of MY TEXT is the same formatting for all the
paragraphs in the file and changing this property will affect all the
paragraphs which is unwanted behavior .
Moataz
----- Original Message -----
From: "Antonio Fiol Bonni'n" <fi...@terra.es>
To: <fo...@xml.apache.org>
Sent: Tuesday, September 10, 2002 4:37 PM
Subject: Re: space-after simple question
> Moataz Omar wrote:
>
> > Dear All,
> >
> > How could I make space-after proberty in some tag added to the
> > space-after proberty of the parent tag ?
> >
> > <fo:block space-after="10pt">
> > <fo:block space-after="20pt">
> > MY TEXT
> > </fo:block>
> > </fo:block>
> >
> > I want the space after proberty of MY TEXT equals 30pt .
> >
> > Best regards
> > Moataz
>
> <fo:block space-after="10pt">
> <fo:block space-after="20pt">
> MY TEXT
> </fo:block>
> <!-- Maybe inserting an empty block will help you. -->
> <fo:block/>
> </fo:block>
>
> However, if what you actually want is a block with a space-after of
> 30pt, why don't you
> <fo:block space-after="30pt">MY TEXT</fo:block>
>
> Did I understand your problem at all?
>
> Antonio
>
>
Re: space-after simple question
Posted by Antonio Fiol Bonni'n <fi...@terra.es>.
Moataz Omar wrote:
> Dear All,
>
> How could I make space-after proberty in some tag added to the
> space-after proberty of the parent tag ?
>
> <fo:block space-after="10pt">
> <fo:block space-after="20pt">
> MY TEXT
> </fo:block>
> </fo:block>
>
> I want the space after proberty of MY TEXT equals 30pt .
>
> Best regards
> Moataz
<fo:block space-after="10pt">
<fo:block space-after="20pt">
MY TEXT
</fo:block>
<!-- Maybe inserting an empty block will help you. -->
<fo:block/>
</fo:block>
However, if what you actually want is a block with a space-after of
30pt, why don't you
<fo:block space-after="30pt">MY TEXT</fo:block>
Did I understand your problem at all?
Antonio
Re: space-after simple question
Posted by "Ivan A." <ia...@gfi-info.com>.
I wanted to write down:
space-after="inherited-property-value(space-after) + 20pt"
----- Original Message -----
From: Ivan A.
To: fop-user@xml.apache.org
Sent: Tuesday, September 10, 2002 3:42 PM
Subject: Re: space-after simple question
Maybe trying
space-after="inherited-property-value() + 20pt"
I have not used it, then it will probably have to be writen sligthly different.
I hope it will help.
Ivan
----- Original Message -----
From: Moataz Omar
To: fop-user@xml.apache.org
Sent: Tuesday, September 10, 2002 3:33 PM
Subject: space-after simple question
Dear All,
How could I make space-after proberty in some tag added to the space-after proberty of the parent tag ?
<fo:block space-after="10pt">
<fo:block space-after="20pt">
MY TEXT
</fo:block>
</fo:block>
I want the space after proberty of MY TEXT equals 30pt .
Best regards
Moataz
Re: space-after simple question
Posted by "Ivan A." <ia...@gfi-info.com>.
Maybe trying
space-after="inherited-property-value() + 20pt"
I have not used it, then it will probably have to be writen sligthly different.
I hope it will help.
Ivan
----- Original Message -----
From: Moataz Omar
To: fop-user@xml.apache.org
Sent: Tuesday, September 10, 2002 3:33 PM
Subject: space-after simple question
Dear All,
How could I make space-after proberty in some tag added to the space-after proberty of the parent tag ?
<fo:block space-after="10pt">
<fo:block space-after="20pt">
MY TEXT
</fo:block>
</fo:block>
I want the space after proberty of MY TEXT equals 30pt .
Best regards
Moataz