Namespace:
System.Xml.Xsl
Assembly:
System.Xml (in System.Xml.dll)
Visual Basic (Declaration)
Public Sub New ( _
enableDebug As Boolean _
)
Dim enableDebug As Boolean
Dim instance As New XslCompiledTransform(enableDebug)
public XslCompiledTransform(
bool enableDebug
)
public:
XslCompiledTransform(
bool enableDebug
)
public function XslCompiledTransform(
enableDebug : boolean
)
Parameters
- enableDebug
- Type: System..::.Boolean
true to generate debug information; otherwise false. Setting this to true enables you to debug the style sheet with the Microsoft Visual Studio Debugger.
The following conditions must be met in order to step into the code and debug the style sheet:
The following example shows how to enable XSLT debugging.
' Enable XSLT debugging.
Dim xslt As New XslCompiledTransform(true)
' Load the style sheet.
xslt.Load("output.xsl")
' Create the writer.
Dim settings As New XmlWriterSettings()
settings.Indent=true
Dim writer As XmlWriter = XmlWriter.Create("output.xml", settings)
' Execute the transformation.
xslt.Transform("books.xml", writer)
writer.Close()
// 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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5, 3.0, 2.0
Reference
Other Resources