Loads the XSLT style sheet contained in the XmlReader.
void System::Xml::Xsl::XslTransform::Load(const SharedPtr<XmlReader> &stylesheet)
Arguments
Exceptions
| Exception | Description |
|---|
| XsltCompileException | The current node does not conform to a valid style sheet. |
Loads the XSLT style sheet contained in the XmlReader.
void System::Xml::Xsl::XslTransform::Load(const SharedPtr<XmlReader> &stylesheet, const SharedPtr<System::Xml::XmlResolver> &resolver)
Arguments
Exceptions
| Exception | Description |
|---|
| XsltCompileException | The current node does not conform to a valid style sheet. |
Loads the XSLT style sheet contained in the IXPathNavigable.
void System::Xml::Xsl::XslTransform::Load(const SharedPtr<System::Xml::XPath::IXPathNavigable> &stylesheet)
Arguments
Exceptions
| Exception | Description |
|---|
| XsltCompileException | The loaded resource is not a valid style sheet. |
Loads the XSLT style sheet contained in the IXPathNavigable.
void System::Xml::Xsl::XslTransform::Load(const SharedPtr<System::Xml::XPath::IXPathNavigable> &stylesheet, const SharedPtr<System::Xml::XmlResolver> &resolver)
Arguments
Exceptions
| Exception | Description |
|---|
| XsltCompileException | The loaded resource is not a valid style sheet. |
Loads the XSLT style sheet contained in the XPathNavigator.
void System::Xml::Xsl::XslTransform::Load(const SharedPtr<System::Xml::XPath::XPathNavigator> &stylesheet)
Arguments
Exceptions
| Exception | Description |
|---|
| XsltCompileException | The current node does not conform to a valid style sheet. |
Loads the XSLT style sheet contained in the XPathNavigator.
void System::Xml::Xsl::XslTransform::Load(const SharedPtr<System::Xml::XPath::XPathNavigator> &stylesheet, const SharedPtr<System::Xml::XmlResolver> &resolver)
Arguments
Exceptions
| Exception | Description |
|---|
| XsltCompileException | The current node does not conform to a valid style sheet. |
Loads the XSLT style sheet specified by a URL.
void System::Xml::Xsl::XslTransform::Load(const String &url)
Arguments
| Parameter | Type | Description |
|---|
| url | const String& | The URL that specifies the XSLT style sheet to load. |
Exceptions
| Exception | Description |
|---|
| XsltCompileException | The loaded resource is not a valid style sheet. |
Loads the XSLT style sheet specified by a URL.
void System::Xml::Xsl::XslTransform::Load(const String &url, const SharedPtr<System::Xml::XmlResolver> &resolver)
Arguments
| Parameter | Type | Description |
|---|
| url | const String& | The URL that specifies the XSLT style sheet to load. |
| resolver | const SharedPtr<System::Xml::XmlResolver>& | The XmlResolver to use to load the style sheet and any style sheet(s) referenced in xsl:import and xsl:include elements. If this is nullptr, a default XmlUrlResolver with no user credentials is used to open the style sheet. The default XmlUrlResolver is not used to resolve any external resources in the style sheet, so xsl:import and xsl:include elements are not resolved. The XmlResolver is not cached after this method completes. |
Exceptions
| Exception | Description |
|---|
| XsltCompileException | The loaded resource is not a valid style sheet. |
See Also