XsltCompiler.Compile Method
- Namespace
- Kampute.DocToolkit.Xslt
- Assembly
- Kampute.DocToolkit.dll
| Compile(TextReader) | Compiles the XSLT transformation from the provided text reader. |
| Compile(Stream) | Compiles the XSLT transformation from the provided stream. |
| Compile(string) | Compiles the XSLT transformation from the provided string. |
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.
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.
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.
