XsltCompiler.Compile Method

Namespace
Kampute.DocToolkit.Xslt
Assembly
  • Kampute.DocToolkit.dll
XsltCompiler.Compile(TextReader)Compiles the XSLT transformation from the provided text reader.
XsltCompiler.Compile(Stream)Compiles the XSLT transformation from the provided stream.
XsltCompiler.Compile(string)Compiles the XSLT transformation from the provided string.

XsltCompiler.Compile(TextReader)

Compiles the XSLT transformation from the provided text reader.
public static XslCompiledTransform Compile(TextReader textReader)

Parameters

textReader TextReader
The text reader containing the XSLT transform to compile.

Returns

XslCompiledTransform
The compiled XSLT transform.

Exceptions

ArgumentNullException
Thrown when textReader is null.

XsltCompiler.Compile(Stream)

Compiles the XSLT transformation from the provided stream.
public static XslCompiledTransform Compile(Stream stream)

Parameters

stream Stream
The stream containing the XSLT transform to compile.

Returns

XslCompiledTransform
The compiled XSLT transform.

Exceptions

ArgumentNullException
Thrown when stream is null.

XsltCompiler.Compile(string)

Compiles the XSLT transformation from the provided string.
public static XslCompiledTransform Compile(string styleSheet)

Parameters

styleSheet string
The XSLT transform to compile.

Returns

XslCompiledTransform
The compiled XSLT transform.

Exceptions

ArgumentNullException
Thrown when styleSheet is null.