xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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:
> 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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor