> string createStatement(XPathNodeIterator root){
> return "<test>this is a test</test>";
Well you pass back a string and not any data types the XSLT engine
recognizes as nodes to be processed (like XPathNavigator,
XPathNodeIterator).
> <xsl:value-of select="user:createStatement(.)"
> disable-output-escaping="yes"/>
> //Create an XmlTextWriter to output to the console.
> XmlTextWriter writer = new XmlTextWriter(Console.Out);
> writer.Formatting = Formatting.Indented;
> //Transform the file.
>
> xslt.Transform(doc, null, writer, null);
disable-output-escaping is not supported when transforming to an
Xml(Text)Writer.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/