XslCompiledTransform Konstruktory

Definice

Inicializuje novou instanci XslCompiledTransform třídy.

Přetížení

XslCompiledTransform()

Inicializuje novou instanci XslCompiledTransform třídy.

XslCompiledTransform(Boolean)

Inicializuje novou instanci XslCompiledTransform třídy se zadaným nastavením ladění.

XslCompiledTransform()

Inicializuje novou instanci XslCompiledTransform třídy.

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

Viz také

Platí pro

XslCompiledTransform(Boolean)

Inicializuje novou instanci XslCompiledTransform třídy se zadaným nastavením ladění.

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

Parametry

enableDebug
Boolean

true k vygenerování informací o ladění; jinak false. true Toto nastavení vám umožní ladit šablonu stylů pomocí ladicího programu Microsoft Visual Studio.

Příklady

Následující příklad ukazuje, jak povolit ladění 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()

Poznámky

Aby bylo možné přejít do kódu a ladit šablonu stylů, musí být splněny následující podmínky:

Viz také

Platí pro