This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE:
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] RE:
- From: "Keith" <keith at brooksweb dot com>
- Date: Wed, 23 May 2001 12:33:09 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
If the 'name' you are wanting to use is the value of the current node:
<img src="arrow.gig">
<xsl:attribute name="name"><xsl:value-of select="."/></xsl:attribute>
</img>
you could also put the src as an attribute
<img>
<xsl:attribute name="src">arrow.gif</xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="."/></xsl:attribute>
</img>
but either way this should work
Keith Brooks
Software Developer
Global eTelecom
Keith@GlobaleTelecom.com
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Howard Lim
Sent: Wednesday, May 23, 2001 12:30 PM
To: XSL-List@lists.mulberrytech.com
Subject:
I have the following code in my XSL file.
<img name="<xsl:value-of select="."/>" src="arrow.gif"/>
I have problems getting the value of <xsl:value-of select="."/> for the name
attribute in the image tag, can somebody please help me? thank you.
Howard (Kian-How) Lim
howard.lim@us.net56.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list