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

Subject: Re: FAQ (was Re: how to put images into my web page like <img src ....)
From: "Nikita Ogievetsky" <nogievet@xxxxxxxxxxxx>
Date: Wed, 13 Oct 1999 00:00:10 +0100
I do not know which parser are you using.

in parsers supporting post August XSLT (such as XT, SAXON ):

<a href="{MAINMENULINK}"><img src="{MAINMENU}" /></a>

in MSXML:
<a>
    <xsl:attribute name='HREF'><xsl:value-of
select='MAINMENULINK'/></xsl:attribute>
    <img>
        <xsl:attribute name="SRC"><xsl:value-of
select='MAINMENU'/></xsl:attribute>
    </img>
</a>

Nikita Ogievetsky
http://www.cogx.com

----- Original Message -----
From: Thuy Do <thuy@xxxxxxxxxxxxxx>


> this is my xml:
> <MAINMENU>/aimsimages/webback.gif </MAINMENU>
> <MAINMENULINK>/scripts/pbisa60.dll/aims/web/mainmenu?as_session_id=1704
> </MAINMENULINK>
>
> this is what i had try for my xsl:
> <a>
> <xsl:attribute name='HREF'><xsl:value-of
> select='MAINMENULINK'/></xsl:attribute>
> <img src="{@MAINMENU}" width='16' height='16' border='0'/>
> MAINMENU </a>
>
> and
> <a>
> <xsl:attribute name='HREF'><xsl:value-of
> select='MAINMENULINK'/></xsl:attribute>
> <img src="{@MAINMENU}" />
> MAINMENU </a>
>
> none of them give me what i want, the image MAINMENU doesnot seem to show
> as is.  Instead it shows up as a square with a dot in the middle , appear
> to me that it could not get the image or something not right
>
> However if i specify the path like this:
> <a>
> <xsl:attribute name='HREF'><xsl:value-of
> select='MAINMENULINK'/></xsl:attribute>
> <img src="/aimsimages/webback.gif" width='16' height='16' border='0'>
> </img>
> MAINMENU </a>
>
> then it works ok
>
> Could any one please know why? Thanks
> Thuy
>
> -----Original Message-----
> From: Tangi Vass [SMTP:tangivass@xxxxxxxxxxxxxx]
> Sent: Tuesday, October 12, 1999 6:50 PM
> To: Mulberrytech's XSL-list; thuy@xxxxxxxxxxxxxx
> Subject: FAQ (was Re: how to put images into my web page like <img src
> ....)
>
> The trick is to enclosed the IMG's SRC value with accolades : <img
> src="{@MAINMENU}"/>
>



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


Current Thread