This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: html attributes
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] html attributes
- From: "alex reuter" <areuter at monsterdaata dot com>
- Date: Thu, 23 Aug 2001 15:07:40 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
I use
<img>
<xsl:attribute name="SRC"><xsl:value-of select="//myValue"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of
select="//otherValue"/></xsl:attribute>
</img>
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
Kevin_Gutch@mapinfo.com
Sent: Thursday, August 23, 2001 2:59 PM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] html attributes
Does anyone have an example of inserting an <xsl:value-of select
="//myValue"> into an HTML attribute.
For instance, I want to populate an image SRC tag with an <xsl:value-of
select="//myValue">. I can do this but I then want to populate the ALT
attribute with a value from the same XML.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list