Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
XsltContext Class
 CompareDocument Method
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
XsltContext..::.CompareDocument Method

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)
Visual Basic (Declaration)
Public MustOverride Function CompareDocument ( _
    baseUri As String, _
    nextbaseUri As String _
) As Integer
Visual Basic (Usage)
Dim instance As XsltContext
Dim baseUri As String
Dim nextbaseUri As String
Dim returnValue As Integer

returnValue = instance.CompareDocument(baseUri, _
    nextbaseUri)
C#
public abstract int CompareDocument(
    string baseUri,
    string nextbaseUri
)
Visual C++
public:
virtual int CompareDocument(
    String^ baseUri, 
    String^ nextbaseUri
) abstract
JScript
public abstract function CompareDocument(
    baseUri : String, 
    nextbaseUri : String
) : int

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.

NoteNote:

The order is implementation-specific.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker