This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In Section 4.7.7 math:sqrt of the XPath30 and XQuery functions and operators spec: See the Example sub-section for math:sqrt, the last three are showing examples for the math:log10 function instead of math:sqrt. Example for math:sqrt: The expression math:sqrt(()) returns (). The expression math:sqrt(0.0e0) returns 0.0e0. The expression math:sqrt(-0.0e0) returns -0.0e0. The expression math:sqrt(1.0e6) returns 1.0e3. The expression math:sqrt(2.0e0) returns 1.4142135623730951e0. The expression math:sqrt(-2.0e0) returns xs:double('NaN'). The expression math:log10(xs:double('NaN')) returns xs:double('NaN'). The expression math:log10(xs:double('INF')) returns xs:double('INF'). The expression math:log10(xs:double('-INF')) returns xs:double('NaN').
Thanks for reporting this. Fixed at source.
Closing since the problem is now fixed.