This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Inserting URL info from XML element into XSL template
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Inserting URL info from XML element into XSL template
- From: "cutlass" <cutlass at secure0 dot com>
- Date: Thu, 2 Aug 2001 13:41:05 +0100
- References: <3B6A17E8@parakeet>
- Reply-To: xsl-list at lists dot mulberrytech dot com
<img scr="images/<xsl:value-of select="img" />" />
is not valid
use shorthand
<img scr="images/{img}" />
cheers,jim fuller
----- Original Message -----
From: "Armin Fabritius" <ghostrider@advalvas.be>
To: <xsl-list@lists.mulberrytech.com>
Sent: Thursday, August 02, 2001 1:43 PM
Subject: [xsl] Inserting URL info from XML element into XSL template
> Hi all,
>
> I have the following problem concerning variable URLs in XSL:
>
> I have an XML file which contains:
>
> <product>
> <description></description>
> <img>easyrider.jpg</img>
> </product>
>
> The <img> element's content is the filename of the image for the product.
> I want the image to show in the HTML output, so my HTML code has to look
like
> this:
>
> <img scr="images/easyrider.jpg">
>
> I tried to this within the template for each product:
>
> <img scr="images/<xsl:value-of select="img" />" />
>
> but of course this is bad syntax. How can I get this to work?
> All help is appreciated here, so...
>
> Thanks in advance,
>
> Armin
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list