XslCompiledTransform Constructor (Boolean)
Initializes a new instance of the XslCompiledTransform class with the specified debug setting.
Assembly: System.Xml (in System.Xml.dll)
The following conditions must be met in order to step into the code and debug the style sheet:
The enableDebug parameter is set to true.
The style sheet is passed to the Load method either as a URI, or an implementation of the XmlReader class that implements the IXmlLineInfo interface. The IXmlLineInfo interface is implemented on all text-parsing XmlReader objects.
In other words, if the style sheet is loaded using an IXPathNavigable object, such as an XmlDocument or XPathDocument, or an XmlReader implementation that does not implement the IXmlLineInfo interface, you cannot debug the style sheet.
The style sheet is located on the local machine or on the intranet.
The following example shows how to enable XSLT debugging.
// Enable XSLT debugging. XslCompiledTransform xslt = new XslCompiledTransform(true); // Load the style sheet. xslt.Load("output.xsl"); // Create the writer. XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent=true; XmlWriter writer = XmlWriter.Create("output.xml", settings); // Execute the transformation. xslt.Transform("books.xml", writer); writer.Close();
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.