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]