CodePorting.Translator.Cs2Cpp.Framework
System::Xml::Xsl::XslCompiledTransform Class Referencefinal

Transforms XML data using an XSLT style sheet. More...

#include <xsl_compiled_transform.h>

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< Objectptr
 Alias for smart pointer type. More...
 

Public Member Functions

SharedPtr< XmlWriterSettingsget_OutputSettings ()
 Returns an XmlWriterSettings object that contains the output information derived from the xsl:output element of the style sheet. More...
 
 XslCompiledTransform ()
 Initializes a new instance of the XslCompiledTransform class. More...
 
void Load (const SharedPtr< XmlReader > &stylesheet)
 Compiles the style sheet contained in the XmlReader. More...
 
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...
 
void Load (const String &stylesheetUri)
 Loads and compiles the style sheet located at the specified URI. More...
 
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...
 
void Load (const SharedPtr< System::Xml::XPath::IXPathNavigable > &stylesheet)
 Compiles the style sheet contained in the IXPathNavigable object. More...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 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...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual 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 bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. 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 TypeInfoType ()
 Implements C# typeof(System.Object) construct. 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...
 

Detailed Description

Transforms XML data using an XSLT style sheet.

Attention
Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

Member Typedef Documentation

◆ Ptr

An alias for shared pointer to an instance of this class.

Constructor & Destructor Documentation

◆ XslCompiledTransform()

System::Xml::Xsl::XslCompiledTransform::XslCompiledTransform ( )

Initializes a new instance of the XslCompiledTransform class.

Member Function Documentation

◆ get_OutputSettings()

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.

Returns
A read-only XmlWriterSettings object that contains the output information derived from the xsl:output element of the style sheet. This value can be nullptr.

◆ Load() [1/6]

void System::Xml::Xsl::XslCompiledTransform::Load ( const SharedPtr< System::Xml::XPath::IXPathNavigable > &  stylesheet)

Compiles the style sheet contained in the IXPathNavigable object.

Parameters
stylesheetAn object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the style sheet.
Exceptions
ArgumentNullExceptionThe stylesheet value is nullptr.
XsltExceptionThe style sheet contains an error.

◆ Load() [2/6]

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.

Parameters
stylesheetAn object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the style sheet.
settingsThe XsltSettings to apply to the style sheet. If this is nullptr, the XsltSettings::get_Default setting is applied.
stylesheetResolverThe XmlResolver used to resolve any style sheets referenced in XSLT import and include elements. If this is nullptr, external resources are not resolved.
Exceptions
ArgumentNullExceptionThe stylesheet value is nullptr.
XsltExceptionThe style sheet contains an error.

◆ Load() [3/6]

void System::Xml::Xsl::XslCompiledTransform::Load ( const SharedPtr< XmlReader > &  stylesheet)

Compiles the style sheet contained in the XmlReader.

Parameters
stylesheetAn XmlReader containing the style sheet.
Exceptions
ArgumentNullExceptionThe stylesheet value is nullptr.
XsltExceptionThe style sheet contains an error.

◆ Load() [4/6]

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.

Parameters
stylesheetThe XmlReader containing the style sheet.
settingsThe XsltSettings to apply to the style sheet. If this is nullptr, the XsltSettings::get_Default setting is applied.
stylesheetResolverThe XmlResolver used to resolve any style sheets referenced in XSLT import and include elements. If this is nullptr, external resources are not resolved.
Exceptions
ArgumentNullExceptionThe stylesheet value is nullptr.
XsltExceptionThe style sheet contains an error.

◆ Load() [5/6]

void System::Xml::Xsl::XslCompiledTransform::Load ( const String stylesheetUri)

Loads and compiles the style sheet located at the specified URI.

Parameters
stylesheetUriThe URI of the style sheet.
Exceptions
ArgumentNullExceptionThe stylesheetUri value is nullptr.
XsltExceptionThe style sheet contains an error.
FileNotFoundExceptionThe style sheet cannot be found.
DirectoryNotFoundExceptionThe stylesheetUri value includes a filename or directory that cannot be found.
WebExceptionThe stylesheetUri value cannot be resolved. or An error occurred while processing the request.
UriFormatExceptionstylesheetUri is not a valid URI.
XmlExceptionThere was a parsing error loading the style sheet.

◆ Load() [6/6]

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.

Parameters
stylesheetUriThe URI of the style sheet.
settingsThe XsltSettings to apply to the style sheet. If this is nullptr, the XsltSettings::get_Default setting is applied.
stylesheetResolverThe XmlResolver used to resolve the style sheet URI and any style sheets referenced in XSLT import and include elements.
Exceptions
ArgumentNullExceptionThe stylesheetUri or stylesheetResolver value is nullptr.
XsltExceptionThe style sheet contains an error.
FileNotFoundExceptionThe style sheet cannot be found.
DirectoryNotFoundExceptionThe stylesheetUri value includes a filename or directory that cannot be found.
WebExceptionThe stylesheetUri value cannot be resolved. or An error occurred while processing the request.
UriFormatExceptionstylesheetUri is not a valid URI.
XmlExceptionThere was a parsing error loading the style sheet.

◆ Transform() [1/15]

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.

Parameters
inputAn object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the data to be transformed.
resultsThe 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.
Exceptions
ArgumentNullExceptionThe input or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.

◆ Transform() [2/15]

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.

Parameters
inputAn object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the data to be transformed.
argumentsAn XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr.
resultsThe stream to which you want to output.
Exceptions
ArgumentNullExceptionThe input or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.

◆ Transform() [3/15]

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.

Parameters
inputAn object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the data to be transformed.
argumentsAn XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr.
resultsThe TextWriter to which you want to output.
Exceptions
ArgumentNullExceptionThe input or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.

◆ Transform() [4/15]

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.

Parameters
inputAn object implementing the IXPathNavigable interface. It can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the data to be transformed.
argumentsAn XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr.
resultsThe 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.
Exceptions
ArgumentNullExceptionThe input or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.

◆ Transform() [5/15]

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.

Parameters
inputThe document to transform that is specified by the IXPathNavigable object.
argumentsArgument list as XsltArgumentList.
resultsThe 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.
documentResolverThe XmlResolver used to resolve the XSLT document() function. If this is nullptr, the document() function is not resolved.

◆ Transform() [6/15]

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.

Parameters
inputThe XmlReader containing the input document.
resultsThe 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.
Exceptions
ArgumentNullExceptionThe input or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.

◆ Transform() [7/15]

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.

Parameters
inputAn XmlReader containing the input document.
argumentsAn XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr.
resultsThe stream to which you want to output.
Exceptions
ArgumentNullExceptionThe input or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.

◆ Transform() [8/15]

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.

Parameters
inputAn XmlReader containing the input document.
argumentsAn XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr.
resultsThe TextWriter to which you want to output.
Exceptions
ArgumentNullExceptionThe input or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.

◆ Transform() [9/15]

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.

Parameters
inputAn XmlReader containing the input document.
argumentsAn XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr.
resultsThe 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.
Exceptions
ArgumentNullExceptionThe input or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.

◆ Transform() [10/15]

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.

Parameters
inputAn XmlReader containing the input document.
argumentsAn XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr.
resultsThe 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.
documentResolverThe XmlResolver used to resolve the XSLT document() function. If this is nullptr, the document() function is not resolved.
Exceptions
ArgumentNullExceptionThe input or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.

◆ Transform() [11/15]

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.

Parameters
inputUriThe URI of the input document.
resultsThe 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.
Exceptions
ArgumentNullExceptionThe inputUri or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.
DirectoryNotFoundExceptionThe inputUri value includes a filename or directory cannot be found.
WebExceptionThe inputUri value cannot be resolved. or An error occurred while processing the request.
UriFormatExceptioninputUri is not a valid URI.
XmlExceptionThere was a parsing error loading the input document.

◆ Transform() [12/15]

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.

Parameters
inputUriThe URI of the input document.
argumentsAn XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr.
resultsThe stream to which you want to output.
Exceptions
ArgumentNullExceptionThe inputUri or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.
DirectoryNotFoundExceptionThe inputUri value includes a filename or directory cannot be found.
WebExceptionThe inputUri value cannot be resolved. or An error occurred while processing the request.
UriFormatExceptioninputUri is not a valid URI.
XmlExceptionThere was a parsing error loading the input document.

◆ Transform() [13/15]

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.

Parameters
inputUriThe URI of the input document.
argumentsAn XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr.
resultsThe TextWriter to which you want to output.
Exceptions
ArgumentNullExceptionThe inputUri or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.
DirectoryNotFoundExceptionThe inputUri value includes a filename or directory cannot be found.
WebExceptionThe inputUri value cannot be resolved. or An error occurred while processing the request.
UriFormatExceptioninputUri is not a valid URI.
XmlExceptionThere was a parsing error loading the input document.

◆ Transform() [14/15]

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.

Parameters
inputUriThe URI of the input document.
argumentsAn XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be nullptr.
resultsThe 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.
Exceptions
ArgumentNullExceptionThe inputUri or results value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.
DirectoryNotFoundExceptionThe inputtUri value includes a filename or directory cannot be found.
WebExceptionThe inputUri value cannot be resolved. or An error occurred while processing the request.
UriFormatExceptioninputUri is not a valid URI.
XmlExceptionThere was a parsing error loading the input document.

◆ Transform() [15/15]

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.

Parameters
inputUriThe URI of the input document.
resultsFileThe URI of the output file.
Exceptions
ArgumentNullExceptionThe inputUri or resultsFile value is nullptr.
XsltExceptionThere was an error executing the XSLT transform.
FileNotFoundExceptionThe input document cannot be found.
DirectoryNotFoundExceptionThe inputUri or resultsFile value includes a filename or directory cannot be found.
WebExceptionThe inputUri or resultsFile value cannot be resolved. or An error occurred while processing the request.
UriFormatExceptioninputUri or resultsFile is not a valid URI.
XmlExceptionThere was a parsing error loading the input document.