Hai all,

Thanks Jeremias.Tahnk you for your reply.I tried with your code
snippet.Again it showing the same problem.Because I have the same problem
with table also.Suppose the html table contains tbody or thead,the table
will show with column width correspond to the table content.But the table
border drawn up to the end of the page width.Suppose the html table does not
contain any thead or tbody,the table will be displayed on the entire page
width.That means whenever I create a table,it will shown in the entire page
width irrespective of whether it contain one column or two column.Please
tell me how can I solve this problem...where I made mistake


Cheers
THANKS IN ADVANCE
GEORGE


-----Original Message-----
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 09, 2004 1:52 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with image border

Please don't repost after waiting just a few hours. Sometimes you're
lucky to have a quick answer, sometimes it'll take a little longer. You
can always repost if you really think you have been overlooked. Thanks.

In theory you'd have to specify the border on the external-graphic, not
on the block. But unfortunately, borders around external-graphics are
not implemented in FOP 0.20.5.

The closest thing to a work-around is this:

      <fo:table table-layout="fixed">
        <fo:table-column column-width="5cm"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell>
              <fo:block border="solid 1pt">
                <fo:external-graphic width="5cm" src="mybitmap.bmp"/>
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>

I made the column the same width as the image. This way you get a border
around the image. The other work-around is to include the border in the
image directly.

On 09.09.2004 09:13:44 Eldho George wrote:
> I have some problem with image border.If border attribute is present in
> image; the PDF will show the image border on the entire page width. 
> That means, at the right hand side of the image, the image border drawn up
> to the end of the page width. How can I solve this problem...please help
> me..Following is the template for image
>  
> <xsl:attribute-set name="img">
> <xsl:attribute name="border-style">solid</xsl:attribute>
> <xsl:attribute name="border-color">black</xsl:attribute>
> <xsl:attribute name="border-width">1pt</xsl:attribute>
> </xsl:attribute-set>
>  
> <fo:block xsl:use-attribute-sets="img">
> <fo:external-graphic>      
> </fo:external graphic>
> </fo:block>



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to