Changes

Jump to navigation Jump to search
407 bytes removed ,  03:53, 24 November 2014
=Collations=
Another {{Version|8.0}}: See [[XQuery feature related to natural language processing are '''3.1#Collations'''|XQuery 3.1] for new official collation features.  By default, string comparisons in XQuery are based on the Unicode codepoint order. The default namespace URI {{Code|http://www.w3.org/2003/05/xpath-functions/collation/codepoint}} specifies this ordering. In BaseX, the following URI syntax is supported to specify collations:
<nowiki>http://basex.org/collation?lang=...;strength=...;decomposition=...</nowiki>
index-of(("a", "á", "à"), "a", "?lang=it-IT;strength=primary")
</nowiki></pre>
 
==Case-Insensitive Collation==
 
{{Mark|Introduced with BaseX 8.0}}:
 
XQuery 3.1 provides another default collation, which allows for a case-insensitive comparison of ASCII characters (<code>A-Z</code> = <code>a-z</code>). This query returns <code>true</code>:
 
<pre class="brush:xquery">
declare default collation 'http://www.w3.org/2005/xpath-functions/collation/html-ascii-case-insensitive';
'HTML' = 'html'
</pre>
=Changelog=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu