Re: [xsl] background in block container

Subject: Re: [xsl] background in block container
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Wed, 18 Feb 2004 09:52:06 -0000
Hi Koybashi,

I looked at your example and as far as I can see it sets the container
position by left, top, width and height coordinates.  This works ok in FOP.
The problem is with left, top, right and bottom.

Regards,

Mark

----- Original Message -----
From: "Kobayashi" <koba@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, February 17, 2004 1:30 PM
Subject: Re: [xsl] background in block container


> Hello,
>
> Hello,
>
> You are correct. It should work. I made a sample here:
>
> http://www.antennahouse.com/XSLsample/pdf/sample-block-container_2.pdf
> http://www.antennahouse.com/XSLsample/fo/sample-block-container_2.fo
>
> But block-container will not be the solution for your case.
> The reason is texts in the block container will not flow to the
> next block-container in next page.
>
>
> BTW: XSL Formatter V2.5 and V3.x implements extensions of border
> for region-x. Following are examples:
>
> http://www.antennahouse.com/XSLsample/pdf/ext-region-border_1.pdf
> http://www.antennahouse.com/www/XSLsample/fo/ext-region-border_1.fo
>
> It would be easier to use these extensions than other tricks for
> your purpose.
>
> Best regards,
>
> Toksuhige Kobayashi
>
> > Reply to the original mail from:
> >  xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >
>
> Hi,
>
> Still having problems with backgrounds in block-containers.
>
> The following works as I would expect it to, placing the border on the
> region-body's left and top margins and at the require width and height:
>
> <fo:flow flow-name="xsl-region-body">
>  <fo:block-container position="absolute" left="0cm" top="0cm" width="19cm"
> height="27cm" background-color="rgb(192, 192, 192)" border-color="rgb(0,
0,
> 0)" border-style="solid" border-width="1pt">
>   <fo:block>&#160; </fo:block>
>   </fo:block-container>
>
>
> However, if instead of width and height I specify right and bottom
> coordinates of 0cms, I thought that, in accordanc with the spec I would
get
> a borders that would correspond precisely with all of the region-body's
> margins (Eg the spec says of the right property: "This property specifies
> how far a box's right margin edge is offset to the left of the right edge
of
> the box's containing block").
>
> Instead I get a miniscule block in the top left corner.
>
> Can anyone please tell me why?  How do I draw a block-container with
> reference to the bottom and right margins?
>
> Unfortunately, it is impracticable for me to use width and height settings
> because the page-sequence may contain repeating-alternatives for first,
odd
> and even pages, any of which can have different margin settings.
>
> TIA for any help.
>
> Regards,
>
> Mark Williams
>
> ----- Original Message -----
> From: "Mark Williams" <mark@xxxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Monday, February 16, 2004 7:47 PM
> Subject: Re: [xsl] background in block container
>
>
> > Thanks everyone.
> >
> > I now have a better idea of what to do and will have a fiddle.
> >
> > Regards,
> >
> > Mark
> >
> > ----- Original Message -----
> > From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
> > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> > Sent: Monday, February 16, 2004 7:45 PM
> > Subject: RE: [xsl] background in block container
> >
> >
> > > > -----Original Message-----
> > > > From: G. Ken Holman
> > > > >
> > > >
> > > > The specification says there are no borders on regions.
> > > >
> > >
> > > Thanks for pointing this, I almost thought it was a FOP-deficiency :)
> > >
> > >
> > > Cheers,
> > >
> > > Andreas
> > >
> > >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> > >
> > >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> >
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>
>
>
> Tokushige Kobayashi
> Antenna House, Inc.
> E-mail koba@xxxxxxxxxxxxx
> WWW    http://www.antenna.co.jp/XML/xml-top.htm
> WWW    http://www.antennahouse.com/ (English)
> TEL    +81-3-3234-1361(direct call)
> FAX    +81-3-3221-9975
>
> Antenna House XSL School
> http://www.antenna.co.jp/XML/school/xslday.htm
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread