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
textReaderTextReader- The text reader containing the XSLT transform to compile.
Returns
- XslCompiledTransform
- The compiled XSLT transform.
Exceptions
- ArgumentNullException
- Thrown when
textReaderisnull.
XsltCompiler.Compile(Stream)
Compiles the XSLT transformation from the provided stream.
public static XslCompiledTransform Compile(Stream stream)Parameters
streamStream- The stream containing the XSLT transform to compile.
Returns
- XslCompiledTransform
- The compiled XSLT transform.
Exceptions
- ArgumentNullException
- Thrown when
streamisnull.
XsltCompiler.Compile(string)
Compiles the XSLT transformation from the provided string.
public static XslCompiledTransform Compile(string styleSheet)Parameters
styleSheetstring- The XSLT transform to compile.
Returns
- XslCompiledTransform
- The compiled XSLT transform.
Exceptions
- ArgumentNullException
- Thrown when
styleSheetisnull.
