Share via


XslCompiledTransform 생성자

정의

XslCompiledTransform 클래스의 새 인스턴스를 초기화합니다.

오버로드

XslCompiledTransform()

XslCompiledTransform 클래스의 새 인스턴스를 초기화합니다.

XslCompiledTransform(Boolean)

지정된 디버그 설정을 사용하여 XslCompiledTransform 클래스의 새 인스턴스를 초기화합니다.

XslCompiledTransform()

XslCompiledTransform 클래스의 새 인스턴스를 초기화합니다.

public:
 XslCompiledTransform();
public XslCompiledTransform ();
Public Sub New ()

추가 정보

적용 대상

XslCompiledTransform(Boolean)

지정된 디버그 설정을 사용하여 XslCompiledTransform 클래스의 새 인스턴스를 초기화합니다.

public:
 XslCompiledTransform(bool enableDebug);
public XslCompiledTransform (bool enableDebug);
new System.Xml.Xsl.XslCompiledTransform : bool -> System.Xml.Xsl.XslCompiledTransform
Public Sub New (enableDebug As Boolean)

매개 변수

enableDebug
Boolean

디버그 정보를 생성하려면 true이고, 그렇지 않으면 false입니다. 값을 true로 설정하면 Microsoft Visual Studio Debugger를 사용하여 스타일시트를 디버깅할 수 있습니다.

예제

다음 예제에서는 XSLT 디버깅을 사용하도록 설정하는 방법을 보여 줍니다.

// 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();
' 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()

설명

코드를 한 단계씩 실행하고 스타일시트를 디버그하려면 다음 조건을 충족해야 합니다.

추가 정보

적용 대상