Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XsltContext::CompareDocument Method (String^, String^)

 

When overridden in a derived class, compares the base Uniform Resource Identifiers (URIs) of two documents based upon the order the documents were loaded by the XSLT processor (that is, the XslTransform class).

Namespace:   System.Xml.Xsl
Assembly:  System.Xml (in System.Xml.dll)

public:
virtual int CompareDocument(
	String^ baseUri,
	String^ nextbaseUri
) abstract

Parameters

baseUri
Type: System::String^

The base URI of the first document to compare.

nextbaseUri
Type: System::String^

The base URI of the second document to compare.

Return Value

Type: System::Int32

An integer value describing the relative order of the two base URIs: -1 if baseUri occurs before nextbaseUri; 0 if the two base URIs are identical; and 1 if baseUri occurs after nextbaseUri.

This method supports the XSLT document() function which specifies that nodes selected across multiple documents are always returned in the same order.

System_CAPS_noteNote

The order is implementation-specific.

.NET Framework
Available since 1.1
Silverlight
Available since 4.0
Return to top
Show:
© 2017 Microsoft