<xml></xml>

Saxon API for .NET |

# XsltCompiler.Compile Method

Compile a stylesheet, located at an XdmNode. This may be a document node whose child is an `xsl:stylesheet` or `xsl:transform` element, or it may be the `xsl:stylesheet` or `xsl:transform` element itself.

#### Overload List

Compile a stylesheet, located at an XdmNode. This may be a document node whose child is an `xsl:stylesheet` or `xsl:transform` element, or it may be the `xsl:stylesheet` or `xsl:transform` element itself.

> public XsltExecutable Compile(XdmNode);

Compile a stylesheet supplied as a Stream.

> public XsltExecutable Compile(Stream);

Compile a stylesheet, retrieving the source using a URI.

> public XsltExecutable Compile(Uri);

Compile a stylesheet, delivered using an XmlReader.

> public XsltExecutable Compile(XmlReader);

#### See Also

XsltCompiler Class | Saxon.Api Namespace