[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: background in block container

Subject: Re: background in block container
From: Kobayashi <koba@xxxxxxxxxxxxx>
Date: Tue, 17 Feb 2004 22:30:56 +0900
fo block container samples
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:  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:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.