i've tried and tried and tried but i cannot manage to step into the XslCompiledTransform without having to load the stylesheet from disk (by passing a URI into the XslCompiledTransform.Load() method).
I am fully aware that you can only step into the XslCompiledTransform.Transform() method if you loaded the stylesheet from disk via URI (as mentioned) or by loading the stylesheet from an XmlReader that implements the IXmlLineInfo interface.
I have loaded the stylesheet as follows:
XslCompiledTransform xslt = new XslCompiledTransform(true);
//grab string from textbox
XmlReader reader = XmlReader.Create(new StringReader(XsltBox.Text));
// Compile the style sheet.
xslt.Load(reader);
This seems to be, from the various literature i have read, the way in which debugging can be enabled. However when i try to step into the XslCompiledTransform.Transform() method i get the message: "There is no source code available for the current location"
as mentioned i can step into the transformation if i do the following:
string stylesheet = @"C:\PathToMy\Stylesheet.xsl";
// Enable XSLT debugging.
XslCompiledTransform xslt = new XslCompiledTransform(true);
//compile stylesheet
xslt.Load(stylesheet);
the above method is not possible as i do not wish to be reading to and from disk constantly.
any ideas?