Project

Profile

Help

Bug #4134 » collation-error.xquery

default collation and starts-with error example - Boris Lehečka, 2019-02-13 11:14

 
xquery version "3.1" encoding "utf-8";

(: removing this declaration ensures a flawless code call in toh cases :)
declare default collation "http://saxon.sf.net/collation?lang=cs-CZ";

let $text := "simple text"
(: throws error :)
return <result>{starts-with($text, 's')}</result>

(: this call works :)
(: return <result>{starts-with($text, 's', 'http://saxon.sf.net/collation?lang=cs-CZ')}</result>:)
    (1-1/1)