Name
[2.0]
normalize-unicode()
Given a string, this function returns that string with its characters converted to a particular Unicode normalization form.
Syntax
xs:stringnormalize-unicode(xs:string?)xs:stringnormalize-unicode(xs:string?,$normalizationForm as xs:string)
Inputs
The string to be normalized. You can optionally specify a
second string naming a normalization form. The Unicode
normalization forms are NFC,
NFD, NFKC, NFKD, and FULLY-NORMALIZED.
In general, the Unicode normalization forms deal with how
combining characters are processed. As an example, the A-ring
character (Å) can be a single
character (Å) or an
uppercase A (A) followed by a
combining ring above character (̊). These two representations
are semantically equivalent, but different at a character level.
Unicode normalization converts the different representations to
the same form so they can be compared.
All conforming processors must support the NFC format. They are also free to
support any or all of the other formats defined by Unicode, and
they can support their own formats if they want.
If you’d like to know more, see Unicode Standard Annex #15, Unicode Normalization Forms, available at http://www.unicode.org/unicode/reports/tr15/.
Outputs
The input string, with its characters converted to the
appropriate Unicode normalization form. If the value of the first
argument is the empty sequence, normalize-unicode() returns a zero-length
string.
Defined in
XQuery 1.0 and XPath 2.0 Functions and Operators section ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access