how to send node-set to c# code file

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Im calling a template which returns node set and i tried to send it to c# code file but in method Im getting tree fragment result set.
<pre class="prettyprint <MaxData>
<xsl:variable name="maxP
<xsl:call-template name="MaxPeaks"/>
</xsl:variable>
</MaxData>
<xsl:template name="MaxPeaks
<DailyPeakDmds>
<xsl:text>Test1</xsl:text>
</DailyPeakDmds>
<DailyPeakDmds>
<xsl:text>Test2</xsl:text>
</DailyPeakDmds>
</xsl:template>[/code]
Sending node set to c# code file
<pre class="prettyprint <xsl:value-of select="code:GetMax($maxP)"/>[/code]
<pre class="prettyprint public object GetMax(object val)
{
//Here Im getting val as "Test1 Test2"
//Need like //<DailyPeakDmds>Test1</DailyPeakDmds>
//<DailyPeakDmds>Test2</DailyPeakDmds>
object value = val;
return value;
} [/code]
Also tried with
<pre style="font-family:Consolas; background:white; color:black; font-size:13px <span style="color:blue <<span style="color:#2b91af xsl:value-of<span style="color:blue <span style="color:red select<span style="color:blue ="<span style="color:blue gv:GetDDD(msxsl:node-set($maxP))"<span style="color:blue /> <span style="color:blue
[/code]
still getting same result any one help me.

Thanks,
nag
<br/>

View the full article
 
Back
Top