thanks for ur reply
but unfortunately it is also not working. i have to fixed the images height and width to show them. for ur help i am sending both the xml part and the template in xsl . pls let me know where is the problem?
 
xml part:
 
<images top="0" left="0" width="500" height="110">
<image>
<url>C:/Programme/data/I00/I00/I00/tmb_0000002A.jpg</url>
<imagename>IM0000000C.jpg</imagename>
</image>
<image>
<url>C:/Programme/data/I00/I00/I00/tmb_0000002B.jpg</url>
<imagename>IM00000003.jpg</imagename>
</image>
<image>
<url>C:/Programme/data/I00/I00/I00/tmb_0000002C.jpg</url>
<imagename>IM00000006.jpg</imagename>
</image>
<image>
<url>C:/Programme/data/I00/I00/I00/tmb_0000002D.jpg</url>
<imagename>IM00000006.jpg</imagename>
</image>
<image>
<url>C:/Programme/data/I00/I00/I00/tmb_0000002E.jpg</url>
<imagename>IM0000000E.jpg</imagename>
</image>
</images>
 
 
xsl part:
 
 
<xsl:template match="images">
<fo:block-container>
<xsl:attribute name="top"><xsl:value-of select="./@top"/>px</xsl:attribute>
<xsl:attribute name="left"><xsl:value-of select="./@left"/>px</xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="./@width"/>px</xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="./@height"/>px</xsl:attribute>
<fo:block> 
<fo:table table-layout="fixed" inline-progression-dimension.optimum="100%">
<fo:table-column column-width="105px"/>
<fo:table-column column-width="105px"/>
<fo:table-column column-width="105px"/>
<fo:table-column column-width="105px"/>
<fo:table-column column-width="105px"/>   
<fo:table-body>
<fo:table-row>
<xsl:for-each select="child::image">
<fo:table-cell height="120px" width="105px" border-style="solid" border-width="0px" keep-together.within-column="always" hyphenate="true">
<fo:table>
<fo:table-column column-width="105px"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell height="100px" width="100px" border-style="solid" border-width="0px" keep-together.within-column="always" hyphenate="true">
<fo:external-graphic src="" /> <!-- But here if i include <fo:external-graphic src="" content-height="100px" content-width="100px" height="100px" width="100px"/> then it works fine . But i dont want to fix the size of images-->
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell keep-together.within-column="always" hyphenate="true" border-width="0px" >
<fo:block padding-top="2pt" text-align="center" font-size="8pt">
<xsl:value-of select="child::imagename"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-cell>
</xsl:for-each>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:block-container>
</xsl:template>


Torsten Erler <[EMAIL PROTECTED]> wrote:
I don't understand the problem.

AFAIK 'content-width'/'content-height' isn't imlemented but 'width'/'height'
isn't required to show an image!
FOP tries to render the image in its original size except it overflows your
imageable area.
In this case the image will be scaled down to fit at least one whole page.

copy and paste the sample and insert your URL -- it must work!!!

inline-progression-dimension.optimum="100%">












cu Torsten


-----Original Message-----
From: Zahidul Islam [mailto:[EMAIL PROTECTED]
Sent: Montag, 16. Juni 2003 14:28
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Pls help: Showing images of their own size


hello
i am facing a problem for a long time and asked for help from forum 2
times but unfortunately
i didnt get the solution yet. pls help me...
in my case i want to show some images in a row. but i dont want to fix the
sizes of the images, i mean
the images will be shown at their original size..
how can i do that?
i can show the images by using
content-width="100px" height="100px" width="100px"/>.
but in this case the width and height is made fixed. To show the images if i
use
then no image is shown..
pls give me a solution..



Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


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


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Reply via email to