hi all.
i've been trying to pass a nodelist (!=nodeset??) from my c# application to
some xsl transform to use.
the xsl code is as follows:
<xsl:styleshe et version="1.0" exclude-result-prefixes="exter n msxsl local
xql" xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="ur n:schemas-microsoft-com:xslt" xmlns:local="#l ocal-functions"
xmlns:xql="#xql-functions" xmlns:extern="u rn:dottraffic:l nk">
<xsl:template match="/">
<span>1
<xsl:variable name="rrr" select="extern: GetRss(1, 'amit')//item"/>
c:<xsl:value-of select="count($ rrr)" /><br/>
</span>
</xsl:template>
</xsl:stylesheet>
the c# code is:
public XmlNodeList GetRss(long RssID, string Argument)
{
XmlDocument oDoc = new XmlDocument();
//oDoc.LoadXml(oR emote.Get(sTemp late, false));
oDoc.LoadXml("< root><item><tit le>amittitle</title></item></root>");
return oDoc.SelectNode s("//item");
}
when i debug and stop at the last line of the GetRss function i can see
that the SelectNodes functions does return one node. but the transform will
not go into the for-each.
any ideas anyone?
--
Message posted via http://www.dotnetmonster.com