This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Using Parameters for HTML Attributes
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: "Hellstern, Manny" <manny dot hellstern at mustangeng dot com>
- Cc: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Date: Wed, 6 Mar 2002 14:56:16 +0000
- Subject: Re: [xsl] Using Parameters for HTML Attributes
- Organization: Jeni Tennison Consulting Ltd
- References: <AFF2D32D2C84D311B3F000105A23152303D028D6@pony1.mustangeng.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Manny,
> What would the syntax in the style sheet be so that the img src
> attribute would be the concatenation of $baseURL and
> "images/somepic.gif"?
The simplest syntax would be:
<img src="{$baseURL}images/somepic.gif" />
Though you could also use:
<img src="{concat($baseURL, 'images/somepic.gif')" />
Or:
<img>
<xsl:attribute name="src">
<xsl:value-of select="$baseURL" />
<xsl:text>images/somepic.gif</xsl:text>
</xsl:attribute>
</img>
if you really wanted to.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list