fn:compare

fn:codepoint-equal(string? $comparand1, string? $comparand2) → boolean?

Function signature

$comparand1

xs:string ?

$comparand2

xs:string ?

Result

xs:boolean ?

Compares two strings using the Unicode codepoint collation

XPath 2.0 Specification

Implemented in Saxon 8.4

fn:compare(string? $comparand1, string? $comparand2) → integer?

Function signature

$comparand1

xs:string ?

$comparand2

xs:string ?

Result

xs:integer ?

Compares two strings using the default collation

XPath 2.0 Specification

fn:compare(string? $comparand1, string? $comparand2, string $collation) → integer?

Function signature

$comparand1

xs:string ?

$comparand2

xs:string ?

$collation

xs:string

Result

xs:integer ?

Compares two strings using a specified collation

XPath 2.0 Specification

Expand

Up  Next