I am passing parameter from C# to xsl in <xsl: for each>
but I am not getting the output.
Here is my code till now
<xsl:param name="xpath" select="sessions/session"/>
<xsl:template match="/">
<xsl:value-of select="$xpath"/>
<xsl:for-each select="exsl:node-set($xpath)">
And transformed whith
XslCompiledTransform xslt = new XslCompiledTransform();
XsltArgumentList xsArgs = new XsltArgumentList();
xslt.Load(strXstFile);
//creating xpath through some logic , it is working fine
xsArgs.AddParam("xpath", "", xpath);
MemoryStream ms = new MemoryStream();
XmlTextWriter writer = new XmlTextWriter(ms, Encoding.ASCII);
StreamReader rd = new StreamReader(ms);
xslt.Transform(doc, xsArgs, writer);
I am checking the values through and values are passing perfectly as I want but when I am using t hem in xsl:foreach it is not displaying the results I expected.Earlier when I was not using exsl:node-set it was throwing error so I used it but I guess it is making my string something else.
Any idea how to resolve this problem?