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

Re: Problem with image

Subject: Re: Problem with image
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Thu, 14 Mar 2002 19:45:08 -0800
dr ted clinic
On Thursday 14 March 2002 18:45, Alvaro Mujica   wrote:
> Hi,
> 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 
width="theWidth" height="theHeight".../>.

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.

Peter Davis
"... the Mayo Clinic, named after its founder, Dr. Ted Clinic ..."
		-- Dave Barry

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.