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@xxxxxxxxxxxxxxxxxx
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Howard Lim
Sent: Wednesday, May 23, 2001 12:30 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|