xsl-list
[Top] [All Lists]

Re: How to assign a nodelist to a variable

2004-01-08 10:00:50
Hello People,

I have something like this:
<xsl:for-each select="/sg/contents/menu/actions/action">
   <tr><td style="padding-top:4px;">
   idx: <xsl:value-of select="@idx" />
   <input 
   class="button" 
   language="javascript" 
   onfocus="this.blur()" 
   onclick="lgotoent('report.php?view=<xsl:value-of select="@idx" />');" 
   type="button" 
   value="report" /></td></tr>
</xsl:for-each>

on:
       <action idx="1" flag="browse">
         <breakdown sort="page" data="index.php" />
         <breakdown sort="param" name="entity" type="fixed" data="User" />
         <breakdown sort="param" name="action" type="fixed" data="View" />
       </action>

so as u can see I want to put a value from XML through XSL in a XHTML 
attribute. What I am doing doesn't work ofcourse, what will?
writing a function?

regards. Robert

GIF image

image/pjpeg