[XSL-LIST Mailing List Archive Home]
Re: [xsl] Problem with image
Subject: Re: [xsl] Problem with image|
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Thu, 14 Mar 2002 19:45:08 -0800
On Thursday 14 March 2002 18:45, Alvaro Mujica wrote:
> I sent the mail called Process an element depending.. The solution of the
> physical space of the quadrants helped me. I still have a problem though. I
> want to be able to put an image and that although the image could be bigger
> than the space available in the cell it should only be as big as its space.
There is no XSLT solution to this, since XSLT doesn't know anything about
images or .jpg, .bmp, .gif, etc.. It's really an HTML issue.
If you know exactly how big the cells are going to be (and also use absolute
widths in the <td> elements instead of percentages), then you can do <img
Otherwise, since <img width="xx%"> is relative to the original width of the
image and not the surrounding <td>, you will have to use some dynamic HTML to
fetch the size of the surrounding <td> and set it to the image. Can't really
say off the top of my head how to do this.
"... the Mayo Clinic, named after its founder, Dr. Ted Clinic ..."
-- Dave Barry
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list