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($arg as xs:string) ➔ xs:anyAtomicType

Arguments

 

$arg

xs:string

A string whose collation key is required

Result

xs:anyAtomicType

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

Arguments

 

$arg

xs:string

A string whose collation key is required

 

$collation

xs:string

A collation URI

Result

xs:anyAtomicType

Namespace

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

Links to W3C specifications

XSLT 3.0 Specification

Notes on the Saxon implementation

Implemented in Saxon 9.6. The implementation generally returns the collation key as a value of type xs:base64Binary. Requires XSLT 3.0 to be enabled.