This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: html attributes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]