RE: [xsl] Insert a node into an attribute...

Subject: RE: [xsl] Insert a node into an attribute...
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 16 Oct 2002 09:47:24 +0300
Hi,

> I want insert into attribute of a node another node but
> the xsl don't allow this operation....
> I have this code:
> 
> <A onmouseout="doTip(event,0,' ')" href="javascript:void(0)">
> <xsl:attribute name="onmouseover">doTi
> (event,1,<b>'{@tooltip}'<b>)</xsl:attribute>
> <xsl:value-of select="."/>
> </A>
> 

I take it you want

  <A onmouseout="doTip(event,0,' ')" href="javascript:void(0)">
    <xsl:attribute name="onmouseover">doTi(event,1,&lt;b>'<xsl:value-of select="@tooltip" />'&lt;b>)</xsl:attribute>
    <xsl:value-of select="."/>
  </A>

or using an AVT

  <A onmouseout="doTip(event,0,' ')" href="javascript:void(0)" onmouseover="doTi(event,1,&lt;b>'{@tooltip}'&lt;b>)">
    <xsl:value-of select="."/>
  </A>

Cheers,

Jarno

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread