Jeremias,
I think the three enclosed files demonstrate what I am
seeing. Please place them in the same directory and
run the following command:
fop -xml Test.xml -xsl Test.xsl -pdf Test.pdf
You will see the behavior that I described earlier (I
hope). Namely:
---------------------
|item-body (block 1)|
---------------------
------------
|item-label|
------------
---------------------
|item-body (block 2)|
---------------------
Interestingly, if you change the "change-me" variable
from '1.56in' to '1.57in', I think you will see the
following behavior:
---------------------
|item-body (block 1)|
---------------------
------------ ---------------------
|item-label| |item-body (block 2)|
------------ ---------------------
Is that what you would expect? I would expect the
following:
------------ ---------------------
|item-label| |item-body (block 1)|
------------ ---------------------
---------------------
|item-body (block 2)|
---------------------
Is there a way to get my expected behavior?
Thanks again for your assistance.
Regards,
Dave
--- Jeremias Maerki <[EMAIL PROTECTED]> wrote:
> It could, yes, especially since I can't reproduce
> it. Maybe if you have
> a full, scaled-down FO file that demonstrates it.
> Maybe your snippet is
> just not enough to demonstrate what's going on.
>
> On 06.06.2006 18:15:26 David P. Nesbitt wrote:
> > Jeremias,
> >
> > Thanks for the assistance. Would it help if I
> > provided the generated PDF?
> >
> > Regards,
> > Dave
> >
> > --- Jeremias Maerki <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hmm, I don't see the effect you describe. The
> > > snippet renders as I would
> > > expect.
> > >
> > > On 06.06.2006 04:38:52 David P. Nesbitt wrote:
> > > > The formatting of list-item has seemed to have
> > > changed
> > > > from 0.20.5 to 0.92. I have a list item (code
> > > > contained below) that is rending as follows in
> > > 0.92:
> > > >
> > > > ---------------------
> > > > |item-body (block 1)|
> > > > ---------------------
> > > > ------------
> > > > |item-label|
> > > > ------------
> > > > ---------------------
> > > > |item-body (block 2)|
> > > > ---------------------
> > > >
> > > > Here is what I am expecting and how 0.20.5
> seemed
> > > to
> > > > work (unless something else in the port is
> causing
> > > > this changed behavior):
> > > >
> > > > ------------ ---------------------
> > > > |item-label| |item-body (block 1)|
> > > > ------------ ---------------------
> > > > ---------------------
> > > > |item-body (block 2)|
> > > > ---------------------
> > > >
> > > > How can I get my desired behavior in 0.92?
> <snip/>
>
>
>
> Jeremias Maerki
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 
<?xml version="1.0" encoding="UTF-8"?>
<Test xmlns="http://www.yahoo.com/david_p_nesbitt"/>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:test="http://www.yahoo.com/david_p_nesbitt" exclude-result-prefixes="test">
<xsl:variable name="change-me" select="'1.56in'"/>
<xsl:variable name="ph1" select="'Header1'"/>
<xsl:variable name="ph2" select="'Header2'"/>
<xsl:template name="page-template">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin-right="0.5in" margin-left="0.5in" margin-bottom="0.5in" margin-top="0.5in" master-name="all" page-height="11in" page-width="8.5in">
<fo:region-body margin-top="" margin-bottom="0.5in" region-name="xsl-region-body">
<xsl:attribute name="margin-top"><xsl:value-of select="$change-me"/></xsl:attribute>
</fo:region-body>
<fo:region-before region-name="header">
<xsl:attribute name="extent"><xsl:value-of select="$change-me"/></xsl:attribute>
</fo:region-before>
<fo:region-after extent="0.5in" region-name="footer"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="all">
<fo:static-content flow-name="header">
<fo:list-block>
<fo:list-item>
<fo:list-item-label>
<fo:block>
<fo:block text-align="left" padding-before="0.15in">
<fo:external-graphic src="Test.gif" content-height="0.75in" content-width="3.0in"/>
</fo:block>
<fo:block/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>
<fo:block text-align="right" padding-before="0.15in" font-size="14pt" font-weight="bold" color="#0000C0" vertical-align="middle">Block 1</fo:block>
<fo:block text-align="right" padding-before="0.0675in" font-size="9pt" font-weight="bold" color="gray" vertical-align="top">Block 2</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<xsl:call-template name="page-header"/>
</fo:static-content>
<fo:static-content flow-name="footer">
<fo:block>
<fo:leader leader-length="100%" leader-pattern="rule" rule-style="solid" rule-thickness="1pt"/>
</fo:block>
<fo:block text-align="right" color="gray" font-size="9pt" font-weight="bold">
<fo:page-number/> of <fo:page-number-citation ref-id="end"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="region-body"/>
<fo:block id="end"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="test:Test">
<xsl:call-template name="page-template">
</xsl:call-template>
</xsl:template>
<xsl:template name="region-body"/>
<xsl:template name="page-header">
<fo:block text-align="left" padding-before="0.125in" font-family="Arial" font-size="10pt" font-weight="bold">
<xsl:value-of select="$ph1"/>
<fo:retrieve-marker retrieve-class-name="location" retrieve-position="first-including-carryover"/>
</fo:block>
<fo:block text-align="left" padding-before="0.125in" font-family="Arial" font-size="10pt" font-weight="bold">
<xsl:value-of select="$ph2"/>
<fo:retrieve-marker retrieve-class-name="category" retrieve-position="first-including-carryover"/>
</fo:block>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]