Xslt.Compile Method (Uri, XsltSettings)Xslt.Compile Method (Uri, XsltSettings)Xslt::Compile Method (Uri^, XsltSettings^)

Compiles the specified XSLT stylesheet and returns an XsltXsltXslt object that represents the transformation. The specified static context settings are used.

Syntax

Public Shared Function Compile( _
    stylesheetUri As Uri, _
    settings As XsltSettings _
) As Xslt
public static Xslt Compile(
    Uri stylesheetUri,
    XsltSettings settings
)
public:
static Xslt^ Compile(
    Uri^ stylesheetUri, 
    XsltSettings^ settings
)
 

Parameters

stylesheetUri

Type: System.UriSystem.UriSystem::Uri^

The URI of the XSLT stylesheet.

settings

Type: XmlPrime.XsltSettingsXmlPrime.XsltSettingsXmlPrime::XsltSettings^

The initial static context settings.

Return Value

Type: XmlPrime.XsltXmlPrime.XsltXmlPrime::Xslt^

An XsltXsltXslt object, or null a null reference (Nothing in Visual Basic) nullptr if an unrecoverable error was raised and handled by a subscriber to CompilationErrorCompilationErrorCompilationError

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException stylesheetUri or settings is null a null reference (Nothing in Visual Basic) nullptr.
LicenceExceptionLicenceExceptionLicenceExceptionThis version of XmlPrime has expired.
XdmExceptionXdmExceptionXdmExceptionAn error occurred compiling the transformation.

Remarks

Any errors or warnings encountered during compilation raise the CompilationErrorCompilationErrorCompilationError event. If nothing subscribes to this event then an XdmExceptionXdmExceptionXdmException is thrown if an unrecoverable error is encountered. If this event is subscribed to then the exception is not thrown, and this method returns null a null reference (Nothing in Visual Basic) nullptr instead.