Compiles the style sheet contained in the XmlReader.
void System::Xml::Xsl::XslCompiledTransform::Load(const SharedPtr<XmlReader> &stylesheet)
Arguments
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | The stylesheet value is nullptr. |
| XsltException | The style sheet contains an error. |
Compiles the XSLT style sheet contained in the XmlReader. The XmlResolver resolves any XSLT import or include elements and the XSLT settings determine the permissions for the style sheet.
void System::Xml::Xsl::XslCompiledTransform::Load(const SharedPtr<XmlReader> &stylesheet, const SharedPtr<XsltSettings> &settings, const SharedPtr<XmlResolver> &stylesheetResolver)
Arguments
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | The stylesheet value is nullptr. |
| XsltException | The style sheet contains an error. |
Loads and compiles the style sheet located at the specified URI.
void System::Xml::Xsl::XslCompiledTransform::Load(const String &stylesheetUri)
Arguments
| Parameter | Type | Description |
|---|
| stylesheetUri | const String& | The URI of the style sheet. |
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | The stylesheetUri value is nullptr. |
| XsltException | The style sheet contains an error. |
| FileNotFoundException | The style sheet cannot be found. |
| DirectoryNotFoundException | The stylesheetUri value includes a filename or directory that cannot be found. |
| WebException | The stylesheetUri value cannot be resolved. or An error occurred while processing the request. |
| UriFormatException | stylesheetUri is not a valid URI. |
| XmlException | There was a parsing error loading the style sheet. |
Loads and compiles the XSLT style sheet specified by the URI. The XmlResolver resolves any XSLT import or include elements and the XSLT settings determine the permissions for the style sheet.
void System::Xml::Xsl::XslCompiledTransform::Load(const String &stylesheetUri, const SharedPtr<XsltSettings> &settings, const SharedPtr<XmlResolver> &stylesheetResolver)
Arguments
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | The stylesheetUri or stylesheetResolver value is nullptr. |
| XsltException | The style sheet contains an error. |
| FileNotFoundException | The style sheet cannot be found. |
| DirectoryNotFoundException | The stylesheetUri value includes a filename or directory that cannot be found. |
| WebException | The stylesheetUri value cannot be resolved. or An error occurred while processing the request. |
| UriFormatException | stylesheetUri is not a valid URI. |
| XmlException | There was a parsing error loading the style sheet. |
Compiles the style sheet contained in the IXPathNavigable object.
void System::Xml::Xsl::XslCompiledTransform::Load(const SharedPtr<System::Xml::XPath::IXPathNavigable> &stylesheet)
Arguments
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | The stylesheet value is nullptr. |
| XsltException | The style sheet contains an error. |
Compiles the XSLT style sheet contained in the IXPathNavigable. The XmlResolver resolves any XSLT import or include elements and the XSLT settings determine the permissions for the style sheet.
void System::Xml::Xsl::XslCompiledTransform::Load(const SharedPtr<System::Xml::XPath::IXPathNavigable> &stylesheet, SharedPtr<XsltSettings> settings, SharedPtr<XmlResolver> stylesheetResolver)
Arguments
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | The stylesheet value is nullptr. |
| XsltException | The style sheet contains an error. |
See Also