> Unfortunately, I don't understand any of that syntax or the use of the
> Readers/Writers. I read the Online VS2005 help doc for this class - and I
[quoted text clipped - 4 lines]
> external files. If so, a concrete example replacing mine would help me to
> understand. I seem to have some mental block.
Here is an example creating an IXPathNavigable using CreateNavigator,
assuming you have an XmlDocument variable named yourXmlDocumentInstance:
Dim xsltProcessor As New XslCompiledTransform()
xsltProcessor.Load("sheet.xslt")
xsltProcessor.Transform(_
yourXmlDocumentInstance.CreateNavigator(), _
Nothing, _
File.Open("result.html", FileMode.Create))
I posted the wrong link somehow, the link to the method overload should be
<http://msdn2.microsoft.com/en-us/library/ms163434.aspx>

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jeff - 26 Jun 2007 22:30 GMT
Hi Martin,
One step closer it appears. But aren't you still using a File for the
translated XML? e.g. "result.html"
Can't I get it back in a String?
Thanks
> > Unfortunately, I don't understand any of that syntax or the use of the
> > Readers/Writers. I read the Online VS2005 help doc for this class - and I
[quoted text clipped - 17 lines]
> I posted the wrong link somehow, the link to the method overload should be
> <http://msdn2.microsoft.com/en-us/library/ms163434.aspx>
Jeff - 26 Jun 2007 22:55 GMT
Thanks Martin.
With your example, I was able to get my base understanding of readers/writers.
Here is what worked for me.
StringWriter sw = new StringWriter();
xslt.Load("MyXSLfile.xslt");
xslt.Transform(XmlDoc.CreateNavigator(), null, sw);
// now sw.ToString() has the contents of the translated XML