I'm trying to do a case-insensitive, diacritic-insensitive comparison.
According to the rules for collations, I should get that with an 'S1'
strength attribute. This works as expected:

let $s := "Fén"
let $m := "fen"
return compare($s, $m, "http://marklogic.com/collation//S1";)

   ==> 0   [i.e., strings evaluate as identical]

but

let $s := "Fén"
let $m := "fen"
return starts-with($s, $m, "http://marklogic.com/collation//S1";)

   ==> false

(same result with fn:ends-with(), fn:contains())

Is there a reason for this? Or is it a bug?

Based on http://www.w3.org/TR/xpath-functions/#func-starts-with it seems
to me like a bug.

-- 
David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 801079, Charlottesville, VA 22904-4318 USA
Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
Email: [email protected]   Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to