home contribute faq download

FunctX XSLT Functions

fn:string-to-codepoints

Creates a sequence of Unicode code points from a string

Google
Webxsltfunctions.com

Description

The fn:string-to-codepoints function returns a sequence of xs:integer values representing the Unicode code points.

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

NameType
$arg xs:string?
return value xs:integer*

Examples

XPath ExampleResults
string-to-codepoints('abc')
(97, 98, 99)
string-to-codepoints('a')
97
string-to-codepoints('')
()

See Also

fn:codepoints-to-stringCreates a string from a sequence of Unicode code points

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