FAQ (was Re: how to put images into my web page like <img src ....)

Subject: FAQ (was Re: how to put images into my web page like <img src ....)
From: "Tangi Vass" <tangivass@xxxxxxxxxxxxxx>
Date: Tue, 12 Oct 1999 10:50:16 +0200
This question has been answered many times in this mailing list (I'm sure
because I allready asked it here ;-).

Go to http://www.mulberrytech.com/xsl/xsl-list and look for mails entitled
"How to generate HTML with dynamic attibutes?" or "Simple question - links"
(especially David Carlisle's ones). The XSL-List web site has a useful
search form.

There is also a FAQ which answers such questions (this one is #2.25) at
http://freespace.virgin.net/ben.pawson.

A word to the XSL-List mainteners :
I think it would be convenient to add this link to every mail of the list to
help newbies and prevent them from asking such basic questions.

Tangi

The trick is to enclosed the IMG's SRC value with accolades : <img
src="{@MAINMENU}"/>

----- Original Message -----
From: Thuy Do <thuy@xxxxxxxxxxxxxx>
To: Xsllist (E-mail) <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Tuesday, 12 October, 1999 08:46
Subject: how to put images into my web page like <img src ....


>
> I am trying to create a link back to the main menu and I like to represent
> the link by an image.  The full path and name for this image have been
> passed when i run my program, it means that this path will be different at
> every end users' computer , say it might be c:\icon\mainmenu.gif or
> c:\image\main.gif .
>
> I could create a link to the page I want but I can't put the image there.
>
>
> This is what i got
> <A>
> <xsl:attribute name='HREF'><xsl:value-of
> select='MAINMENULINK'/></xsl:attribute>
> -----------this is where i like to have my image to seat on
> MAINMENU
> </A>
>
> I have try, 'MAINMENU' is the name of the attribute
> <A>
> <xsl:attribute name='HREF'><xsl:value-of
> select='MAINMENULINK'/></xsl:attribute>
> <img src="@MAINMENU" width='16' height='16' border='0'> </img>
> MAINMENU
> </A>
>
> this doesnot seem to work.
>
> Could anyone help me with this, please?
>
> Thanks in advance.
> Thuy Do  thuy@xxxxxxxxxxxxxx
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


Current Thread