Xslt.Compile Method (string, XmlNameTable)Xslt.Compile Method (String, XmlNameTable)Xslt::Compile Method (String^, XmlNameTable^)
Compiles the specified XSLT stylesheet and returns an XsltXsltXslt object that represents the transformation.
Default static context settings are used.
Syntax
Public Shared Function Compile( _ stylesheetUri As String, _ nameTable As System.Xml.XmlNameTable _ ) As Xslt
public static Xslt Compile( string stylesheetUri, System.Xml.XmlNameTable nameTable )
public: static Xslt^ Compile( String^ stylesheetUri, System.Xml::XmlNameTable^ nameTable )
Parameters
- stylesheetUri
Type: System.StringSystem.StringSystem::String^
The URI of the XSLT stylesheet.
- nameTable
Type: System.Xml.XmlNameTableSystem.Xml.XmlNameTableSystem.Xml::XmlNameTable^
The name table for documents used with this transformation.
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
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
stylesheetUri or nameTable is null
a null reference (Nothing in Visual Basic)
nullptr .
|
LicenceExceptionLicenceExceptionLicenceException | This version of XmlPrime has expired. |
UriFormatExceptionUriFormatExceptionUriFormatException | stylesheetUri is not a valid URI. |
XdmExceptionXdmExceptionXdmException | An 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 returnsnull
a null reference (Nothing
in Visual Basic)
nullptr
instead.