Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Generating a nodeset via code. Generating a nodeset via code.To: NULL Date: 10/7/2005 2:50:00 PM Ok, maybe this isn't possible, but I'm hoping someone will show me that = it is. I've got an ASPX page that takes several parameters. Those are then = passed into an XSL as parameters using asp:Xml In the XSL page, I have some C# code which takes the numerous parameters = and builds and XPath. I attempt to use that code-built XPath in = xsl:variable to select a nodeset. The XPath is good, because if I take the return string and stuff it into = the select=3D"" I get the expected results. However, I get: "The expression passed to this method should result in a = NodeSet." if I attempt to use the variable set up as: <xsl:variable name=3D"XPATH" select=3D"cs:GenerateXPath($PARAM1, = $PARAM2, $PARAM3, $PARAM4)"/> I tried using msxsl:node-set($XPATH)/* on it, but that didn't help. I = then get: "Cannot convert the operand to 'Result tree fragment'."=20 If I attempt to use the following, I get no errors, but no selection = either: <xsl:variable name=3D"XPATH" select=3D"cs:GenerateXPath($SECTION, = $AREA, $GROUP1, $GROUP2)/*"/> Is there any way to do this? Is it even possible? I'm pretty sure I can = probably convert this all over to standard XSL, but it will probably be = pretty complex--so I'd rather not if I don't have to. Thanx! --=20 Greg Collins [InfoPath MVP] Please visit: http://www.InfoPathDev.com | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
