xsl-list
[Top] [All Lists]

RE: Insert a node into an attribute...

2002-10-15 23:47:24
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>'{(_at_)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>'{(_at_)tooltip}'&lt;b>)">
    <xsl:value-of select="."/>
  </A>

Cheers,

Jarno

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



<Prev in Thread] Current Thread [Next in Thread>