fn:collation-key

Returns a value that can be used for matching strings under a given collation. If two strings are equal under a given collation, then collation-key() when applied to these two strings returns values that compare equal.

collation-key($key as xs:string) ➔ xs:base64Binary

Arguments

 

$key

xs:string

A string whose collation key is required

Result

xs:base64Binary

collation-key($key as xs:string, $collation as xs:string) ➔ xs:base64Binary

Arguments

 

$key

xs:string

A string whose collation key is required

 

$collation

xs:string

A collation URI

Result

xs:base64Binary

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XPath 3.1 Functions and Operators

XSLT 3.0 Specification

Notes on the Saxon implementation

Fully available since Saxon 9.7. Available since Saxon 9.6 for use with XSLT 3.0 enabled.

Since 9.7.0.10, the implementation always returns the collation key as a value of type xs:base64Binary.