Hi guys/gals,
Can you help with this? I am trying to use an XSL tranform with the new
XslCompiledTranform class. I want it to output to a XmlDocument, but
the document is empty after .Transform(...) but i Know thethe xsl and
source xml are fine becasue if I output the Transform to a file it
works fine. Here's what i'm doing:
// Output doc
XmlDocument xmlReg = new XmlDocument();
//Sort with Xslt
XslCompiledTransform xsl = new XslCompiledTransform();
xsl.Load("DocSortByDate.xsl");
xsl.Transform("DocList.xml",
null,xmlReg.CreateNavigator().AppendChild());
Any suggestions??
Many thanks,
Peter