Re: [xsl] How to assign a nodelist to a variable

Subject: Re: [xsl] How to assign a nodelist to a variable
From: "Robert A. van Ginkel" <robert@xxxxxxxxxxxxx>
Date: Thu, 8 Jan 2004 18:00:50 +0100

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_" 
  
   @idx" />');" 
   type="button"
   value="report" /></td></tr>
</xsl:for-each>
 
on:
       <action idx="1" flag="browse">
         <breakdown sort="page" data="" />
         <breakdown sort="param" name="entity" type="fixed" data="" />
         <breakdown sort="param" name="action" type="fixed" data="" />
       </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

Robert van Ginkel
StyleGate bv
Verspronckweg 63 SG,
2023 BB Haarlem
[ T ] +31 (0) 23 52 51 262
[ F ] +31 (0) 23 54 23 999
[ I ] www.stylegate.com
[ E ] robert@xxxxxxxxxxxxx
Disclaimer
Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen.

This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents.

©StyleGate

Current Thread