I’m calling a template which returns node set and i tried to store it on a variable but it returning only values not node names
<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>
Sending node set to c# code file:
<xsl:value-of select="code:GetMax($maxP)"/>
But in c# method it giving result “Test1 Test2” but i need like:
<DailyPeakDmds>
Test1
</DailyPeakDmds>
<DailyPeakDmds>
Test2
</DailyPeakDmds>
when i test the variable ‘maxP’ it contains “Test1 Test2” values, and it doesn’t contain node names any one help me how to get node set and store it.
Found answer my self by giving path to node set like below