home contribute faq download

FunctX XSLT Functions

fn:codepoint-equal

Whether two strings have the same Unicode code points

Google
Webxsltfunctions.com

Description

The fn:codepoint-equal function determines whether the two string arguments have the same Unicode code points, in the same order. This is similar to calling the fn:compare function with the simple collation http://www.w3.org/2005/xpath-functions/collation/codepoint.

This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book.

Arguments and Return Type

NameTypeDescription
$comparand1 xs:string? the first string to compare
$comparand2 xs:string? the second string to compare
return value xs:boolean?

Examples

XPath ExampleResults
codepoint-equal('abc', 'abc')
true
codepoint-equal('abc', 'ab c')
false
codepoint-equal('abc', ())
()

See Also

fn:compareCompares two strings

History

Published OnLast UpdatedContributor(s)
2006-06-272007-02-26W3C, XQuery 1.0 and XPath 2.0 Functions and Operators, http://www.w3.org/TR/xpath-functions/
Datypic XSLT Services

Recommended Reading:

XQuery