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 Wolle <wg...@cip.physik.uni-wuerzburg.de> on 2002/11/18 13:24:53 UTC
static-content/odd/even
hi group!
i developp a fo:stylesheet with different heads for odd and even pages
inside a static content.
although i used the same logic of presentation, the spaces between a rule
and some text are different.
has anybody else made this experinence?
here are some code-snippets:
<fo:static-content flow-name="head-even">
<!-- table start -->
<fo:table>
<fo:table-column column-width="42mm"/>
<fo:table-column column-width="42mm"/>
<fo:table-column column-width="42mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell ><fo:block text-align="start"></fo:block></fo:table-cell>
<fo:table-cell ><fo:block text-align="center"></fo:block></fo:table-cell>
<fo:table-cell ><fo:block text-align="end"><xsl:value-of select="channel/title"/></fo:block></fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<!-- table end -->
<fo:block text-align="center"
space-before.optimum="1pt"
space-after.optimum="5pt"
line-height="9pt">
<fo:leader leader-pattern="space"
rule-thickness="1pt"
leader-length="1%"/>
<fo:page-number/>
<fo:leader leader-pattern="space"
rule-thickness="1pt"
leader-length="2%"/>
<fo:leader leader-pattern="rule"
rule-style="dotted"
rule-thickness="1pt"
leader-length="97%"/>
</fo:block>
<!-- head odd -->
<fo:static-content flow-name="head-odd">
<!-- table start -->
<fo:table>
<fo:table-column column-width="42mm"/>
<fo:table-column column-width="42mm"/>
<fo:table-column column-width="42mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell ><fo:block text-align="start">
<xsl:value-of select="channel/title"/></fo:block></fo:table-cell>
<fo:table-cell ><fo:block
text-align="center"></fo:block></fo:table-cell>
<fo:table-cell ><fo:block
text-align="end"></fo:block></fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<!-- table end -->
<fo:block text-align="center"
space-before.optimum="1pt"
space-after.optimum="5pt"
line-height="9pt">
<fo:leader leader-pattern="rule"
rule-style="dotted"
rule-thickness="1pt"
leader-length="97%"/>
<fo:leader leader-pattern="space"
rule-thickness="1pt"
leader-length="2%"/>
<fo:page-number/>
<fo:leader leader-pattern="space"
rule-thickness="1pt"
leader-length="1%"/>
</fo:block>
</fo:static-content>
regards
wolfgang
Re: static-content/odd/even
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Wolle wrote:
> you're guess is pretty proper. do i have make a new announcement at
> bugzilla?
As you wish.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
Re: static-content/odd/even
Posted by Wolle <wg...@cip.physik.uni-wuerzburg.de>.
hi oleg!
you're guess is pretty proper. do i have make a new announcement at
bugzilla?
bye
wolfgang
*
*> thanks for the response. i want to state more precisely. the output i get
*> from the xsl looks like that:
*>
*> AnyName
*> page-number --------------------------
*>
*> for odd sides.
*> but for even sides the result looks like that:
*>
*> AnyName
*>
*> ------------------------------ page-number
*>
*> The space between the rule and "AnyName" is not desired but it is there?
*>
*> Does anybody know why the output looks differnt? are there any solutions?
*
*Looks like reincarnation of the bug #7490, see
*http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7490
*
*--
*Oleg Tkachenko
*eXperanto team
*Multiconn Technologies, Israel
*
Re: static-content/odd/even
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Wolle wrote:
> thanks for the response. i want to state more precisely. the output i get
> from the xsl looks like that:
>
> AnyName
> page-number --------------------------
>
> for odd sides.
> but for even sides the result looks like that:
>
> AnyName
>
> ------------------------------ page-number
>
> The space between the rule and "AnyName" is not desired but it is there?
>
> Does anybody know why the output looks differnt? are there any solutions?
Looks like reincarnation of the bug #7490, see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7490
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
Re: static-content/odd/even
Posted by Wolle <wg...@cip.physik.uni-wuerzburg.de>.
hi!
thanks for the response. i want to state more precisely. the output i get
from the xsl looks like that:
AnyName
page-number --------------------------
for odd sides.
but for even sides the result looks like that:
AnyName
------------------------------ page-number
The space between the rule and "AnyName" is not desired but it is there?
Does anybody know why the output looks differnt? are there any solutions?
bye for now
wolfgang
btw: if I start with an odd initial-page-number the coming up even side
has also the odd-layout. there is no problem if starting with an
even-page?!
*Wolle wrote:
*
*> i developp a fo:stylesheet with different heads for odd and even pages
*> inside a static content.
*>
*> although i used the same logic of presentation, the spaces between a rule
*> and some text are different.
*
*Could you be more specific what's wrong? I see at least one problem:
*
*> <fo:leader leader-pattern="rule"
*> rule-style="dotted"
*> rule-thickness="1pt"
*> leader-length="97%"/>
*> <fo:leader leader-pattern="space"
*> rule-thickness="1pt"
*> leader-length="2%"/>
*> <fo:page-number/>
*> <fo:leader leader-pattern="space"
*> rule-thickness="1pt"
*> leader-length="1%"/>
*
*97+2+1 = 100%, but where is a place for a page-number itself?
*
*--
*Oleg Tkachenko
*eXperanto team
*Multiconn Technologies, Israel
*
Re: static-content/odd/even
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Wolle wrote:
> i developp a fo:stylesheet with different heads for odd and even pages
> inside a static content.
>
> although i used the same logic of presentation, the spaces between a rule
> and some text are different.
Could you be more specific what's wrong? I see at least one problem:
> <fo:leader leader-pattern="rule"
> rule-style="dotted"
> rule-thickness="1pt"
> leader-length="97%"/>
> <fo:leader leader-pattern="space"
> rule-thickness="1pt"
> leader-length="2%"/>
> <fo:page-number/>
> <fo:leader leader-pattern="space"
> rule-thickness="1pt"
> leader-length="1%"/>
97+2+1 = 100%, but where is a place for a page-number itself?
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel