Transforms XML data using an XSLT style sheet. More...
Inherits System::Object.
Public Types | |
using | Ptr = SharedPtr< XslCompiledTransform > |
An alias for shared pointer to an instance of this class. More... | |
Public Types inherited from System::Object | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
Public Member Functions | |
ASPOSECPP_SHARED_API SharedPtr< XmlWriterSettings > | get_OutputSettings () |
Returns an XmlWriterSettings object that contains the output information derived from the xsl:output element of the style sheet. More... | |
ASPOSECPP_SHARED_API | XslCompiledTransform () |
Initializes a new instance of the XslCompiledTransform class. More... | |
ASPOSECPP_SHARED_API void | Load (const SharedPtr< XmlReader > &stylesheet) |
Compiles the style sheet contained in the XmlReader. More... | |
ASPOSECPP_SHARED_API void | Load (const SharedPtr< XmlReader > &stylesheet, const SharedPtr< XsltSettings > &settings, const SharedPtr< XmlResolver > &stylesheetResolver) |
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. More... | |
ASPOSECPP_SHARED_API void | Load (const String &stylesheetUri) |
Loads and compiles the style sheet located at the specified URI. More... | |
ASPOSECPP_SHARED_API void | Load (const String &stylesheetUri, const SharedPtr< XsltSettings > &settings, const SharedPtr< XmlResolver > &stylesheetResolver) |
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. More... | |
ASPOSECPP_SHARED_API void | Load (const SharedPtr< System::Xml::XPath::IXPathNavigable > &stylesheet) |
Compiles the style sheet contained in the IXPathNavigable object. More... | |
ASPOSECPP_SHARED_API void | Load (const SharedPtr< System::Xml::XPath::IXPathNavigable > &stylesheet, SharedPtr< XsltSettings > settings, SharedPtr< XmlResolver > stylesheetResolver) |
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. More... | |
ASPOSECPP_SHARED_API void | Transform (const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XmlWriter > &results) |
Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to an XmlWriter. More... | |
ASPOSECPP_SHARED_API void | Transform (const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< XmlWriter > &results) |
Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments. More... | |
ASPOSECPP_SHARED_API void | Transform (const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::TextWriter > &results) |
Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to an TextWriter. The XsltArgumentList provides additional run-time arguments. More... | |
ASPOSECPP_SHARED_API void | Transform (const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::Stream > &results) |
Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to a stream. The XsltArgumentList provides additional runtime arguments. More... | |
ASPOSECPP_SHARED_API void | Transform (const SharedPtr< XmlReader > &input, const SharedPtr< XmlWriter > &results) |
Executes the transform using the input document specified by the XmlReader object and outputs the results to an XmlWriter. More... | |
ASPOSECPP_SHARED_API void | Transform (const SharedPtr< XmlReader > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< XmlWriter > &results) |
Executes the transform using the input document specified by the XmlReader object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments. More... | |
ASPOSECPP_SHARED_API void | Transform (const SharedPtr< XmlReader > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::TextWriter > &results) |
Executes the transform using the input document specified by the XmlReader object and outputs the results to a TextWriter. The XsltArgumentList provides additional run-time arguments. More... | |
ASPOSECPP_SHARED_API void | Transform (const SharedPtr< XmlReader > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::Stream > &results) |
Executes the transform using the input document specified by the XmlReader object and outputs the results to a stream. The XsltArgumentList provides additional run-time arguments. More... | |
ASPOSECPP_SHARED_API void | Transform (const String &inputUri, const SharedPtr< XmlWriter > &results) |
Executes the transform using the input document specified by the URI and outputs the results to an XmlWriter. More... | |
ASPOSECPP_SHARED_API void | Transform (const String &inputUri, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< XmlWriter > &results) |
Executes the transform using the input document specified by the URI and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments. More... | |
ASPOSECPP_SHARED_API void | Transform (const String &inputUri, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::TextWriter > &results) |
Executes the transform using the input document specified by the URI and outputs the results to a TextWriter. More... | |
ASPOSECPP_SHARED_API void | Transform (const String &inputUri, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::Stream > &results) |
Executes the transform using the input document specified by the URI and outputs the results to stream. The XsltArgumentList provides additional run-time arguments. More... | |
ASPOSECPP_SHARED_API void | Transform (const String &inputUri, const String &resultsFile) |
Executes the transform using the input document specified by the URI and outputs the results to a file. More... | |
ASPOSECPP_SHARED_API void | Transform (const SharedPtr< XmlReader > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< XmlWriter > &results, const SharedPtr< XmlResolver > &documentResolver) |
Executes the transform using the input document specified by the XmlReader object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments and the XmlResolver resolves the XSLT document() function. More... | |
ASPOSECPP_SHARED_API void | Transform (const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< XmlWriter > &results, const SharedPtr< XmlResolver > &documentResolver) |
Executes the transform by using the input document that is specified by the IXPathNavigable object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments and the XmlResolver resolves the XSLT document() function. More... | |
Public Member Functions inherited from System::Object | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared reference counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
For internal purposes only. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More... | |
template<> | |
bool | Equals (double const &objA, double const &objB) |
Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More... | |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
Specialization of Object::ReferenceEquals for case of string and nullptr. More... | |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Specialization of Object::ReferenceEquals for case of strings. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from System::Object | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Transforms XML data using an XSLT style sheet.
An alias for shared pointer to an instance of this class.
ASPOSECPP_SHARED_API System::Xml::Xsl::XslCompiledTransform::XslCompiledTransform | ( | ) |
Initializes a new instance of the XslCompiledTransform class.
ASPOSECPP_SHARED_API SharedPtr<XmlWriterSettings> System::Xml::Xsl::XslCompiledTransform::get_OutputSettings | ( | ) |
Returns an XmlWriterSettings object that contains the output information derived from the xsl:output
element of the style sheet.
xsl:output
element of the style sheet. This value can be nullptr
. ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Load | ( | const SharedPtr< XmlReader > & | stylesheet, |
const SharedPtr< XsltSettings > & | settings, | ||
const SharedPtr< XmlResolver > & | stylesheetResolver | ||
) |
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.
stylesheet | The XmlReader containing the style sheet. |
settings | The XsltSettings to apply to the style sheet. If this is nullptr , the XsltSettings::get_Default setting is applied. |
stylesheetResolver | The XmlResolver used to resolve any style sheets referenced in XSLT import and include elements. If this is nullptr , external resources are not resolved. |
ArgumentNullException | The stylesheet value is nullptr . |
XsltException | The style sheet contains an error. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Load | ( | const String & | stylesheetUri | ) |
Loads and compiles the style sheet located at the specified URI.
stylesheetUri | The URI of the style sheet. |
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. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Load | ( | const String & | stylesheetUri, |
const SharedPtr< XsltSettings > & | settings, | ||
const SharedPtr< XmlResolver > & | stylesheetResolver | ||
) |
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.
stylesheetUri | The URI of the style sheet. |
settings | The XsltSettings to apply to the style sheet. If this is nullptr , the XsltSettings::get_Default setting is applied. |
stylesheetResolver | The XmlResolver used to resolve the style sheet URI and any style sheets referenced in XSLT import and include elements. |
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. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Load | ( | const SharedPtr< System::Xml::XPath::IXPathNavigable > & | stylesheet | ) |
Compiles the style sheet contained in the IXPathNavigable object.
stylesheet | An object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the style sheet. |
ArgumentNullException | The stylesheet value is nullptr . |
XsltException | The style sheet contains an error. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Load | ( | const SharedPtr< System::Xml::XPath::IXPathNavigable > & | stylesheet, |
SharedPtr< XsltSettings > | settings, | ||
SharedPtr< XmlResolver > | stylesheetResolver | ||
) |
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.
stylesheet | An object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the style sheet. |
settings | The XsltSettings to apply to the style sheet. If this is nullptr , the XsltSettings::get_Default setting is applied. |
stylesheetResolver | The XmlResolver used to resolve any style sheets referenced in XSLT import and include elements. If this is nullptr , external resources are not resolved. |
ArgumentNullException | The stylesheet value is nullptr . |
XsltException | The style sheet contains an error. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const SharedPtr< System::Xml::XPath::IXPathNavigable > & | input, |
const SharedPtr< XmlWriter > & | results | ||
) |
Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to an XmlWriter.
input | An object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the data to be transformed. |
results | The XmlWriter to which you want to output. If the style sheet contains an xsl:output element, you should create the XmlWriter using the XmlWriterSettings object returned from the XslCompiledTransform::get_OutputSettings value. This ensures that the XmlWriter has the correct output settings. |
ArgumentNullException | The input or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const SharedPtr< System::Xml::XPath::IXPathNavigable > & | input, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< XmlWriter > & | results | ||
) |
Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments.
input | An object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the data to be transformed. |
arguments | An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr . |
results | The XmlWriter to which you want to output. If the style sheet contains an xsl:output element, you should create the XmlWriter using the XmlWriterSettings object returned from the XslCompiledTransform::get_OutputSettings value. This ensures that the XmlWriter has the correct output settings. |
ArgumentNullException | The input or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const SharedPtr< System::Xml::XPath::IXPathNavigable > & | input, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< IO::TextWriter > & | results | ||
) |
Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to an TextWriter. The XsltArgumentList provides additional run-time arguments.
input | An object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the data to be transformed. |
arguments | An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr . |
results | The TextWriter to which you want to output. |
ArgumentNullException | The input or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const SharedPtr< System::Xml::XPath::IXPathNavigable > & | input, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< IO::Stream > & | results | ||
) |
Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to a stream. The XsltArgumentList provides additional runtime arguments.
input | An object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the data to be transformed. |
arguments | An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr . |
results | The stream to which you want to output. |
ArgumentNullException | The input or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const SharedPtr< XmlReader > & | input, |
const SharedPtr< XmlWriter > & | results | ||
) |
Executes the transform using the input document specified by the XmlReader object and outputs the results to an XmlWriter.
input | The XmlReader containing the input document. |
results | The XmlWriter to which you want to output. If the style sheet contains an xsl:output element, you should create the XmlWriter using the XmlWriterSettings object returned from the XslCompiledTransform::get_OutputSettings value. This ensures that the XmlWriter has the correct output settings. |
ArgumentNullException | The input or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const SharedPtr< XmlReader > & | input, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< XmlWriter > & | results | ||
) |
Executes the transform using the input document specified by the XmlReader object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments.
input | An XmlReader containing the input document. |
arguments | An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr . |
results | The XmlWriter to which you want to output. If the style sheet contains an xsl:output element, you should create the XmlWriter using the XmlWriterSettings object returned from the XslCompiledTransform::get_OutputSettings value. This ensures that the XmlWriter has the correct output settings. |
ArgumentNullException | The input or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const SharedPtr< XmlReader > & | input, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< IO::TextWriter > & | results | ||
) |
Executes the transform using the input document specified by the XmlReader object and outputs the results to a TextWriter. The XsltArgumentList provides additional run-time arguments.
input | An XmlReader containing the input document. |
arguments | An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr . |
results | The TextWriter to which you want to output. |
ArgumentNullException | The input or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const SharedPtr< XmlReader > & | input, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< IO::Stream > & | results | ||
) |
Executes the transform using the input document specified by the XmlReader object and outputs the results to a stream. The XsltArgumentList provides additional run-time arguments.
input | An XmlReader containing the input document. |
arguments | An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr . |
results | The stream to which you want to output. |
ArgumentNullException | The input or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const String & | inputUri, |
const SharedPtr< XmlWriter > & | results | ||
) |
Executes the transform using the input document specified by the URI and outputs the results to an XmlWriter.
inputUri | The URI of the input document. |
results | The XmlWriter to which you want to output. If the style sheet contains an xsl:output element, you should create the XmlWriter using the XmlWriterSettings object returned from the XslCompiledTransform::get_OutputSettings value. This ensures that the XmlWriter has the correct output settings. |
ArgumentNullException | The inputUri or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
DirectoryNotFoundException | The inputUri value includes a filename or directory cannot be found. |
WebException | The inputUri value cannot be resolved. or An error occurred while processing the request. |
UriFormatException | inputUri is not a valid URI. |
XmlException | There was a parsing error loading the input document. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const String & | inputUri, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< XmlWriter > & | results | ||
) |
Executes the transform using the input document specified by the URI and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments.
inputUri | The URI of the input document. |
arguments | An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr . |
results | The XmlWriter to which you want to output. If the style sheet contains an xsl:output element, you should create the XmlWriter using the XmlWriterSettings object returned from the XslCompiledTransform::get_OutputSettings value. This ensures that the XmlWriter has the correct output settings. |
ArgumentNullException | The inputUri or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
DirectoryNotFoundException | The inputtUri value includes a filename or directory cannot be found. |
WebException | The inputUri value cannot be resolved. or An error occurred while processing the request. |
UriFormatException | inputUri is not a valid URI. |
XmlException | There was a parsing error loading the input document. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const String & | inputUri, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< IO::TextWriter > & | results | ||
) |
Executes the transform using the input document specified by the URI and outputs the results to a TextWriter.
inputUri | The URI of the input document. |
arguments | An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr . |
results | The TextWriter to which you want to output. |
ArgumentNullException | The inputUri or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
DirectoryNotFoundException | The inputUri value includes a filename or directory cannot be found. |
WebException | The inputUri value cannot be resolved. or An error occurred while processing the request. |
UriFormatException | inputUri is not a valid URI. |
XmlException | There was a parsing error loading the input document. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const String & | inputUri, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< IO::Stream > & | results | ||
) |
Executes the transform using the input document specified by the URI and outputs the results to stream. The XsltArgumentList provides additional run-time arguments.
inputUri | The URI of the input document. |
arguments | An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr . |
results | The stream to which you want to output. |
ArgumentNullException | The inputUri or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
DirectoryNotFoundException | The inputUri value includes a filename or directory cannot be found. |
WebException | The inputUri value cannot be resolved. or An error occurred while processing the request. |
UriFormatException | inputUri is not a valid URI. |
XmlException | There was a parsing error loading the input document. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const String & | inputUri, |
const String & | resultsFile | ||
) |
Executes the transform using the input document specified by the URI and outputs the results to a file.
inputUri | The URI of the input document. |
resultsFile | The URI of the output file. |
ArgumentNullException | The inputUri or resultsFile value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
FileNotFoundException | The input document cannot be found. |
DirectoryNotFoundException | The inputUri or resultsFile value includes a filename or directory cannot be found. |
WebException | The inputUri or resultsFile value cannot be resolved. or An error occurred while processing the request. |
UriFormatException | inputUri or resultsFile is not a valid URI. |
XmlException | There was a parsing error loading the input document. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const SharedPtr< XmlReader > & | input, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< XmlWriter > & | results, | ||
const SharedPtr< XmlResolver > & | documentResolver | ||
) |
Executes the transform using the input document specified by the XmlReader object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments and the XmlResolver resolves the XSLT document()
function.
input | An XmlReader containing the input document. |
arguments | An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr . |
results | The XmlWriter to which you want to output. If the style sheet contains an xsl:output element, you should create the XmlWriter using the XmlWriterSettings object returned from the XslCompiledTransform::get_OutputSettings value. This ensures that the XmlWriter has the correct output settings. |
documentResolver | The XmlResolver used to resolve the XSLT document() function. If this is nullptr , the document() function is not resolved. |
ArgumentNullException | The input or results value is nullptr . |
XsltException | There was an error executing the XSLT transform. |
ASPOSECPP_SHARED_API void System::Xml::Xsl::XslCompiledTransform::Transform | ( | const SharedPtr< System::Xml::XPath::IXPathNavigable > & | input, |
const SharedPtr< XsltArgumentList > & | arguments, | ||
const SharedPtr< XmlWriter > & | results, | ||
const SharedPtr< XmlResolver > & | documentResolver | ||
) |
Executes the transform by using the input document that is specified by the IXPathNavigable object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments and the XmlResolver resolves the XSLT document()
function.
input | The document to transform that is specified by the IXPathNavigable object. |
arguments | Argument list as XsltArgumentList. |
results | The XmlWriter to which you want to output. If the style sheet contains an xsl:output element, you should create the XmlWriter by using the XmlWriterSettings object that is returned from the XslCompiledTransform::get_OutputSettings value. This ensures that the XmlWriter has the correct output settings. |
documentResolver | The XmlResolver used to resolve the XSLT document() function. If this is nullptr , the document() function is not resolved. |