From: Pierrick B. <pie...@fr...> - 2008-04-04 05:50:27
|
Hi, Birnbaum, David J a écrit : >> let $verbs := ("cde", "bcd", "xyz") for $i at $pos in $verbs order >> by replace($verbs[$pos],'xyz','abc') return $i > > This returns the values in a chaotic order. Does it ? > I did some more experimentation and my first approach: > > for $i in $verbs order by replace($i,'xyz','abc') return ... > > works correctly Does it ? > as long as the characters in 'xyz' are all regular > Unicode (5.0) characters. When I insert one of the Unicode 5.1 > characters into the 'xyz' string, though, the replacement stops > functioning altogether, and the values come back sorted as if there > had been no replacement. Please provide a (short) real test case then. We indeed have (very) few problems with fn:replace(), see the XQTS results. You might be unlucky enough to fall into those bugs :-( Cheers, p.b. |